• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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