• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

modifying php.ini - changes not taking after restart

W

webcustoms

Guest
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.
 
Hi webcustoms. Try editing the vhosts.conf file for the virtual domain.
Code:
<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.

Code:
/usr/local/psa/admin/bin/websrvmng -a -v
 
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.
 
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.
 
Back
Top