• 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.

Removing vhost php.ini file

Christopher McBride

Basic Pleskian
Hi,

I migrated from Plesk 11 to 11.5 (two servers, full migration - i.e. not an upgrade) and have had issues with the new vhost php.ini facility.

I do not have any custom settings in any vhosts on the panel, yet these files existed.
I want all vhosts to use the main /etc/php.ini file

Reading the thread at http://forum.parallels.com/showthre...ltiple-php-versions-php-ini-files-do-not-load, I deleted all vhost php.ini files with:

Code:
rm -f /var/www/vhosts/system/*/etc/php.ini

and restarted apache - which solved problems I was having when the vhost php.ini was overriding my global settings.


This, though, now introduces hundreds of error logs at /var/log/messages such as:

Code:
May 29 14:55:53 server cgi_wrapper[31785]: /var/www/vhosts/system/domain.com/etc/php.ini:No such file or directory

Adding the file in, but empty, does stop the errors being produced in the log, but the PHP errors (specifically regarding setting the timezone in php.ini) come back.


Is there any way for the cgi_wrapper NOT to complain that the php.ini file isn't there for the vhosts?
 
Why not simply update these files after editing global options via php_setting -u command (or something like that)?
 
Code:
/usr/local/psa/bin/php_settings -u
This did work, however it is not listed in the CLI Reference guide, the command offers no help and the only thing I found was in an old changelog.
 
Back
Top