Question

I am using NGINX with PHP 5.4.23 on CentOS

I am facing very wired issue on it.

when i see phpinfo(), it says

Loaded Configuration File:  /etc/php.ini

but when i do changes in this file, it don't shows in phpinfo().

I also restarted nginx and check it. but not changes reflected.

Was it helpful?

Solution

you have to restart php-fpm service :

service php-fpm restart
service php5-fpm restart //if you avec php5

or

/etc/init.d/php-fpm restart
/etc/init.d/php5-fpm restart //if you avec php5

EDIT :

you have php-fastcgi, so replace ftpm by fastcgi :

/etc/init.d/php-fastcgi restart
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top