Click to See Complete Forum and Search --> : Why does phpinfo() don't show changes to php.ini?


Wales
03-05-2008, 11:04 PM
I've tried changing the files multiple times by removing semicolons and adding different directories.

I then restart apache.

Go back and look at phpinfo.....and....nothing changed!

Is there a special way to change it?

NogDog
03-05-2008, 11:07 PM
Did you change the right php.ini file? (The phpinfo() output should include an entry for which php.ini file it is using.)

Wales
03-05-2008, 11:11 PM
I'm on a centos with plesk and changed the /etc/php.ini

Can't seem to find any in /var/www/vhosts/

NogDog
03-05-2008, 11:18 PM
But what file does the phpinfo() output say it's using? It should be in the top block of the phpinfo() output, labeled "Configuration File (php.ini) path".

Wales
03-05-2008, 11:20 PM
/etc/php.ini

That's the file I've been editing but does not show now results.

bpat1434
03-05-2008, 11:22 PM
Have you reloaded Apache after you finish editing? I.e. shutdown and restart the plesk service.

Wales
03-05-2008, 11:32 PM
Yup restarted server, restarted apache about a gazillion times. I've been constantly having issues with this server. I might just move.

Sabo_Todd
05-02-2008, 07:25 AM
I found the solution:

Plesk 8.3/PHP5.2.6

You must include this extension in your PHP build:
--with-apxs2=/usr/sbin/apxs

This will create a file called libphp5.so to this directory:
/usr/lib/httpd/modules/

From there restart apache:
apachectl restart

There u have it;) It's 3am here, I'm hitting the sack...