Click to See Complete Forum and Search --> : changes to php.ini not taking effect


pablogosse
12-16-2002, 07:30 PM
Hi all. I've recently been given a laptop to work with, which is running RedHat 8.0, Apache, PHP and PostgreSQL.

I've made some changes to the php.ini file and rebooted the machine (Apache and PostgreSQL start when the machine boots up), but the changes aren't showing up. Specifically, I'm attempting to alter the include_path.

I'm logged in as root when doing this.

Can anyone give any advice as to what might be causing this problem?

I know I can change the include path myself using ini_set() but I need to alter a number of other values as well and really want to do this through the php.ini file.

------------------------------------------------------------

UPDATE: I've now renamed php.ini to foobar.ini and restarted the machine, and I can still browse php pages no problem, and phpinfo() still displays /etc/php.ini as the ini file, even though no php.ini file exists anymore (I cd-ed back to / and did a find . -name "php.ini" and it found no such file).

It seems that perhaps the php.ini file was getting bypassed on the startup.

Anyone have any ideas?

Thanks in advance,
Pablo

id10t
12-18-2002, 10:38 PM
Are you editing the right php.ini file? Do something like


find / -name php.ini

and see if you get more than 1 result. Also, what does the phpinfo() function return as far as the include path?

kag
01-17-2003, 07:27 PM
I'm having a similiar problem but on Windows 2000 Advanced Server.

I'm positive that my php.ini is in C:\WINNT\ but it is still bypassed for x or y reason.

When I call phpinfo(), the "Configuration File (php.ini) Path" reads "C:\WINNT" instead of "C:\WINNT\php.ini".

Maybe a bump could help us?

Note: I am running Sambar 5.2 production.