• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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