Safe Mode

Support/Development for PHP
Paul
Forum User
Forum User
Posts: 10
Joined: Sat Jun 17, 2006 10:44 pm

Safe Mode

Unread post by Paul »

I'm sure this is a very simple question for those that know.

I've a test server running plesk 8 (formally 7.5.4) and I've updated it several times using Yum and this site as the source. Somewhere along the line my PHP has decided to run in safe mode, and looking at phpinfo() it shows '--enable-safe-mode' as part of the /configure section.

This is not something I have done (or even know how to do) - is this how the php package has been built here, or is there something on my server, or in the update process, that I'm missing.

I don't want to run in safe mode but my limited linux knowledge means I don't know how to fix this.

Any help or is insight appreciated. :)
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

PHP safe mode is controlled globally by the safe_mode setting in /etc/php.ini. I recommend setting safe_mode on (Plesk 8 sets this automatically by the way). You can disable safe_mode for a particular domain if you need to by creating a vhost.conf file or directly through Plesk if you're running Plesk 8.
Lemonbit Internet Dedicated Server Management
Paul
Forum User
Forum User
Posts: 10
Joined: Sat Jun 17, 2006 10:44 pm

Unread post by Paul »

breun wrote:PHP safe mode is controlled globally by the safe_mode setting in /etc/php.ini. I recommend setting safe_mode on (Plesk 8 sets this automatically by the way). You can disable safe_mode for a particular domain if you need to by creating a vhost.conf file or directly through Plesk if you're running Plesk 8.
Sorry, but I don't need safe mode :)

I didn't know that setting existed in plesk 8 and that was the problem, all working as expected now. :)
Post Reply