PHP: Changes php.ini are not affected

Highway

Verified User
Joined
Nov 1, 2009
Messages
26
Hi everyone.

Problem #1 is solved and there is problem #2... :mad:

Phpinfo() says:

Configuration File (php.ini) Path /usr/local/etc/php5/cgi
Loaded Configuration File /usr/local/etc/php5/cgi/php.ini

disable_functions no value no value
enable_dl On On

In /usr/local/etc/php5/cgi/php.ini file:

disable_functions = exec,system,passthru,shell_exec,escapeshellarg,escapeshellc$

and
enable_dl = Off


Ofcourse I have restarted, but nothing changed.
How is this posible and why are the changes not loaded?

I've also changed /usr/local/lib/php.ini for testing with php.ini info (there was only a ZEND config) but nothing happend.

Anyone a idea?



But
 
php -i | grep php.ini
Then you get a reply like
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini
So in my case the correct php.ini should be /usr/local/lib/php.iniIt can be different from HTTP and local with PHP command at SSH. Also check your logs if there are any errors.
 
Thanks for your answer.

When I do php -i | grep php.ini I get back:

Configuration File (php.ini) Path => /usr/local/etc/php5/cgi
Loaded Configuration File => /usr/local/etc/php5/cgi/php.ini

That's the file that I edit, but there will no changes made in php.

I use BTW PHP-CGI.
 
Are you using suPHP also, maybe in that config there is another php.ini defined.
Are you 100% sure you have reloaded/restarted HTTPd after the change?
 
Again, thanks for your answer.

I don't have installed suphp manualy, but I don't know or directadmin setup install it when i select php-cgi.

I am 100% sure that I restarted apache (/etc/init.d/httpd restart)
 
Back
Top