• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

PLESK 10.4.4 PHP settings not saved

I

IgoKonrads

Guest
---------------------------------------------------------------
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
PLESK, 10.4.4, CENTOS 5.7, 64x

PROBLEM DESCRIPTION AND STEPS TO REPRODUCE
After upgrading from 10.3.1 to 10.4.4 Many domains showing errors related to PHP safe mode restrictions. I checked the PHP.ini file and indeed for some reason safe mode is turned ON. I then tried to change the settings for the subscription these domains use, but after setting php safe_mode to "off" and saving the changes and logging back in, it's set to default again. In other words php settings are ignored. Tried this also for the actual domain rather than the subscription they are using - same problem.

ACTUAL RESULT
PHP settings not saved under subscriptions and domains

EXPECTED RESULT
PHP setting changes to take effect after saving them.

ANY ADDITIONAL INFORMATION
Thanks..

--------------------------------------------------------------
 
Same problem

He have the exact same problem on centos 5.7 x64. Having the plesk 10.4.4 control panel broken every other week is getting boring.
 
I came across a similar problem in the past, with Plesk 7.<something> then again in later versions.

Here's what I've personally seen, it may help you out.
-------------------------------------------------
I believe this must be done as server admin, not the domain admin.

In Plesk 10.4.4, for each domain showing the problem, go to subscription, then click the domain name. From there click the "Customize" button, then the tab for "PHP Settings".

In the second section, "Common Settings" there is an option for safe_mode. If this is set to Yes, it will override the php.ini settings for that specific domain.

This may be reset or default due to an upgrade/update, I'm not sure.
-------------------------------------------------

This may not be your solution, but it's helped me in the past, so hopefully it will get you working again.
 
Last edited by a moderator:
I have the same problem since Plesk 10.4.4. I use Debian Lenny 5 x64.

Not only the settings are not saved - my old setting, safe_mode = off, is overwritten!

I need a patch for this very quickly.
 
Last edited:
Now I set safe_mode = Off for ALL domains directly via the php.ini in the apache folder. I hope Plesk will shortly allow us to set it per domain, because only some of my domains need safe_mode = Off (and "Off" for every domain seems too unsecure to me).
 
Same issue

Im having a similar issue. I can't set upload size while running fastcgi in /var/www/vhosts/example.com/etc. issue was not happening on 10.4.4 before MU 5
 
Use the workaround of settings safe_mode=off in the global system php.ini
 
I have the same problem.
All PHP settings are not saved in the php.ini file, but only for customers who after Nov 29, 2011 were created.
Same reseller, same service plans

E.g.
Plesk: display_errors = off
customers php.ini: display_errors = on
etc...

Parallels Plesk Panel v10.4.4_build1013111102.18 os_Debian 6.0
10.4.4 Update #9
 
Last edited:
Same problem Plesk 10.4.4 Ubuntu

I try to apply the safe_mode = off on every hosting package but no change
 
BTW, as far as I remember, safe_mode = off in /etc/php.ini is one of requirements before Plesk installation.
 
Hello,
or is global php.ini?
I do not see : /etc/php.ini
And how to change the local_value ?
 
Last edited by a moderator:
On my test Plesk environment I see:

# ll /etc/php.ini
-rw-r--r-- 1 root root 45046 Nov 21 06:50 /etc/php.ini

# cat /etc/redhat-release
CentOS release 5.6 (Final)

# cat /usr/local/psa/version
10.4.4 CentOS 5 1013111102.18

# grep -i safe_mode /etc/php.ini
safe_mode = Off
 
My file php.ini in ubuntu plesk:
# ls -l /etc/php5/apache2
-rw-r--r-- 1 root root 67481 2011-12-27 16:38 php.ini
# cat /usr/local/psa/version
10.4.4 Ubuntu 10.04 1013111102.18
but I can not find a php.ini for each domain
if I search all files php.ini on my system
# find / -name php.ini -print
/etc/php5/cgi/php.ini
/etc/php5/apache2/php.ini
/etc/php5/cli/php.ini
/opt/psa/admin/conf/php.ini
 
Last edited by a moderator:
There are no php.ini files per domain. Only the global ones. And you have to edit the global php.ini.
 
Back
Top