Php55w-fpm On CentOS 7: Settings Location

Home » CentOS » Php55w-fpm On CentOS 7: Settings Location
CentOS 7 Comments

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.

7 thoughts on - Php55w-fpm On CentOS 7: Settings Location

  • 2016-08-03 13:42 GMT-04:00 Boris Epstein :

    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

    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

  • 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
    ++++++++++++++++++++++++++++++++++++++++

  • 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"] =>

  • 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
    ++++++++++++++++++++++++++++++++++++++++