(Solved) PHP Confugration not reflecting changes to config files.

1 post / 0 new
#1 Wed, 11/15/2017 - 01:08
gentlefox
gentlefox's picture

(Solved) PHP Confugration not reflecting changes to config files.

So, when I print out phpinfo using the phpinfo() function, it says:

Configuration File (php.ini) Path = /etc/php/7.0/cgi/php.ini Loaded Configuration File /home/gentlefox/etc/php7.0/php.ini

And when I apply changes to these files and restart nginx, the changes are not reflected.

wth is going on? :S

EDIT: Of course, it doesn't help restarting nginx when you're running php-cgi. You need to restart the relevant php-cgi services. On ubuntu "sudo service --status-all" shows you the services running. Find the one you need and "stop" then "start" it.