0

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: http://s8.postimg.org/mwlaj616d/attachment.jpg
  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?
1

1 Answer 1

6
  1. Switch off safe_mode in service plans and sync service plans with subscriptions.
  2. Check all php.ini files for safe_mode = On
1
  • 1
    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.
    – Mischa
    May 22, 2013 at 19:53

Not the answer you're looking for? Browse other questions tagged .