Re: [CentOS] php55w-fpm on CentOS 7: settings location
On Thu, August 4, 2016 8:52 am, James B. Byrne wrote: > > On Wed, August 3, 2016 14:19, Always Learning wrote: >> >> On Wed, 2016-08-03 at 13:55 -0400, Jason Welsh wrote: >> >>> What I do is create a php.php file on the root of my fileserver >>> with >>> the following >>> >>> >> >> I use a text command: php -i >> >> >> > > php -i > php-i.txt > echo '' | php > php-echo.txt > > diff php-i.txt php-echo.txt > 709,710c709,710 > < _SERVER["PHP_SELF"] => > < _SERVER["SCRIPT_NAME"] => > --- >> _SERVER["PHP_SELF"] => - >> _SERVER["SCRIPT_NAME"] => - > 714c714 > < _SERVER["REQUEST_TIME"] => 1470317489 > --- >> _SERVER["REQUEST_TIME"] => 1470317531 > 716a717 >> [0] => - > 719c720 > < _SERVER["argc"] => 0 > --- >> _SERVER["argc"] => 1 > > > I do not see much to choose between them in terms of output and 'php > -i' is certainly handier when in a terminal session on the host. > You are right as far as your particular case is concerned. Showing something true in one particular case doesn't prove it is always so. (As opposed to showing just one case when it is not true which will be a proof of wrong statement). I'm not going to make weird example when apache at start changes to custom php config just to support a point I tried to make. Still, when I troubleshooting a problem, I like to test something under as close to reality as possible. Just to avoid potential differences that may affect what I see in the test. This is sort of philosophy they taught me in programming classes waaay back. And this is what potentially saved me the length of troubleshooting in quite a few cases over my life. Again, it is not I who is this clever, it is just that I had great teachers. And as softly as I mentioned it ("I like more the way to see it as web server shows") hopefully didn't hurt anybody's feelings, but those who decide to give it their own thought might benefit from it. Hopefully. But if this doesn't make sense to, whoever reads it, please, just ignore it. Valeri Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] php55w-fpm on CentOS 7: settings location
On Wed, August 3, 2016 14:19, Always Learning wrote: > > On Wed, 2016-08-03 at 13:55 -0400, Jason Welsh wrote: > >> What I do is create a php.php file on the root of my fileserver >> with >> the following >> >> > > I use a text command: php -i > > > php -i > php-i.txt echo '' | php > php-echo.txt diff php-i.txt php-echo.txt 709,710c709,710 < _SERVER["PHP_SELF"] => < _SERVER["SCRIPT_NAME"] => --- > _SERVER["PHP_SELF"] => - > _SERVER["SCRIPT_NAME"] => - 714c714 < _SERVER["REQUEST_TIME"] => 1470317489 --- > _SERVER["REQUEST_TIME"] => 1470317531 716a717 > [0] => - 719c720 < _SERVER["argc"] => 0 --- > _SERVER["argc"] => 1 I do not see much to choose between them in terms of output and 'php -i' is certainly handier when in a terminal session on the host. -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrnemailto:byrn...@harte-lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3 ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] php55w-fpm on CentOS 7: settings location
OK, here's the PHP info: http://borisepstein.info/php.php Looks like it got the right php.ini but that is still not happening. Is there any chance something overwrote the variable settings after php.ini was read in? Boris. On Wed, Aug 3, 2016 at 2:27 PM, Valeri Galtsev wrote: > > On Wed, August 3, 2016 1:19 pm, Always Learning wrote: > > > > On Wed, 2016-08-03 at 13:55 -0400, Jason Welsh wrote: > > > >> What I do is create a php.php file on the root of my fileserver with > >> the following > >> > >> > > > > I use a text command: php -i > > > > I like more the way Jason pointed to: this is one step closer to what is > actually used by web server as opposed to command line. > > Just my $0.02 > > Valeri > > > Valeri Galtsev > Sr System Administrator > Department of Astronomy and Astrophysics > Kavli Institute for Cosmological Physics > University of Chicago > Phone: 773-702-4247 > > ___ > CentOS mailing list > CentOS@centos.org > https://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] php55w-fpm on CentOS 7: settings location
On Wed, August 3, 2016 1:19 pm, Always Learning wrote: > > On Wed, 2016-08-03 at 13:55 -0400, Jason Welsh wrote: > >> What I do is create a php.php file on the root of my fileserver with >> the following >> >> > > I use a text command: php -i > I like more the way Jason pointed to: this is one step closer to what is actually used by web server as opposed to command line. Just my $0.02 Valeri Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] php55w-fpm on CentOS 7: settings location
On Wed, 2016-08-03 at 13:55 -0400, Jason Welsh wrote: > What I do is create a php.php file on the root of my fileserver with > the following > > I use a text command: php -i -- Regards, Paul. England, EU. England's place is in the European Union. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] php55w-fpm on CentOS 7: settings location
What I do is create a php.php file on the root of my fileserver with the following then when I browse to that file http://servername/php.php I get all the php information I can stand, including the line "Loaded Configuration File" which is where the running php server loaded php.ini from. Jason ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] php55w-fpm on CentOS 7: settings location
2016-08-03 13:42 GMT-04:00 Boris Epstein : > Does anybody know where to enter settings for php-fpm? I have tried a > number of things, including starting it with "-c /etc/php.ini" but that > seemed to have any effect. Any idea on how to control it? What am I doing > wrong? :) > In my servers (for shared hosting) there's /etc/php-fpm.conf and the /etc/php-fpm.d/ directory. I make minor modifications to the first file, while put the bulk of settings in .conf files under the second directory. HTH, Carlos. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] php55w-fpm on CentOS 7: settings location
Hello all, Does anybody know where to enter settings for php-fpm? I have tried a number of things, including starting it with "-c /etc/php.ini" but that seemed to have any effect. Any idea on how to control it? What am I doing wrong? :) Thanks in advance. Cheers, Boris. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos