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.
2016-08-03 13:42 GMT-04:00 Boris Epstein borepstein@gmail.com:
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.
What I do is create a php.php file on the root of my fileserver with the following
<?php phpinfo() ?>
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
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
<?php phpinfo() ?>
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 ++++++++++++++++++++++++++++++++++++++++
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 galtsev@kicp.uchicago.edu 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
<?php phpinfo() ?>
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