PDA

View Full Version : modifying php.ini - changes not taking after restart


webcustoms
18th June 2007, 08:49 PM
I am currently trying to make changes to my /etc/php.ini configuration file.

I am editing upload_max_filesize, post_max_size, memory_limit, etc...

However, when I run my test script, it shows that upload_max_filesize is still at 2M when it should be 16M.

I tried restarting all psa services, as well as a full reboot. I also located and edited the php.ini file at /usr/local/psa/admin/conf/php.ini
to no avail.

I am running 8.1.1.

Any idea of what I am doing wrong?

Thanks!
Ray.

webcustoms
20th June 2007, 06:23 PM
Any clue on this?

kerpau
20th June 2007, 09:42 PM
Hi webcustoms. Try editing the vhosts.conf file for the virtual domain.
<Directory /var/www/vhosts/example.com/httpdocs>
php_admin_flag engine on
php_admin_value post_max_size 16M
</Directory>
Then re-apply the vhosts configurations.

/usr/local/psa/admin/bin/websrvmng -a -v

breun
23rd June 2007, 05:31 PM
What's your OS? /etc/php.ini should be fine, don't touch /usr/local/psa/admin/conf/php.ini (that's for Plesk's own webserver, not the webserver serving up your domains). You should only have to restart apache after changing /etc/php.ini.

webcustoms
24th June 2007, 07:19 AM
I fixed it. For some reason, the file had some sort of special permissions, so I had to delete the file and make a new one and now it works.