Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just updated my server (running with Plesk 11) from PHP 5.3 to 5.4 via the dotdeb sources. Everything was fine except a few things.

  1. I had to disable all safe_modes in several vhosts. Plesk has the 'default' option, but I had to set them to 'off'. So I think the 'default' value is 'on'. Is there a way to set the default value to 'off'? Screenshot:
  2. Every half hour I get an E-Mail from my server with the subject Cron <root@hosting> [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime) and the content PHP Fatal error: Directive 'safe_mode' is no longer available in PHP in Unknown on line 0. Where can I fix this? I do not have a cron for the root user which runs every half hour in crontab -l.
  3. Are there other things I have to do after the upgrade?
share|improve this question

closed as off-topic by HopelessN00b Feb 26 '15 at 9:00

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 5 down vote accepted
  1. Switch off safe_mode in service plans and sync service plans with subscriptions.
  2. Check all php.ini files for safe_mode = On
share|improve this answer
Thanks, I found more safe_modes in /etc/php5/cgi/php.ini and /etc/php5/cli/php.ini. After removing them, everything is fine now. – StinsonMaster May 22 '13 at 19:53

Not the answer you're looking for? Browse other questions tagged or ask your own question.