affiliate_link

How to turn off PHP safe mode

All you have to do is to modify your php.ini. ( Config file for PHP)

Change the line safe_mode = on to safe_mode = off.

In windows for Plesk, the path is C:\\windows\php.ini.
In linux for Plesk, the path is /etc/php.ini.

You should restart the web server service in order for the changes to take effect.

Edit:

On the Plesk 8.x versions, it provides an added functionality wherein you can edit the PHP Safe Mode option for single or multiple domains.

1. Login as administrator to the Plesk control panel.

2. Click on the Domains.

3. Check the domain you want to edit then choose Group Operations. This is located on the upper part of the Domains' page. This is also where you edit the other global changes for the domain/s.

4. Scroll down until you see the Hosting options.



5. Look for the line "PHP 'safe_mode' on", tick the radio button under the Disable column.

You can now safely assure that all of your applications that requires PHP Safe mode off will perfectly work.

*wink

Edit:

I've created a new post on how this can be done on Cpanel. Here's the link.

Recommended buys!

3 comments

  1. Anonymous  

    September 19, 2008 at 7:06 PM

    The PLESK setting for safe_mode (php_info Local value) doesn't seem to override the setting in php.ini (php_info Master value)

  2. Anonymous  

    February 12, 2009 at 5:41 AM

    Hi there ;)
    i wanna ask some thing..
    so now i use shared hosting and my current web host using safe mode =ON..
    is that possible i request to turn off that just for me?? i mean its not affected to all right??

    i cant live with this turning on.. some script cant work :(

    Waiting 4 reply..

  3. adminix  

    February 13, 2009 at 2:54 PM

    Hi Rannliq,

    If your current host is using Plesk CP, then as per my post, you can ask them to disable safe mode for your domain only.

    You can also try another option. By using .htaccess. Create a .htaccess file and place it on your public html directory, in our case, its on httpdocs. Put this entry on the file:

    php_admin_flag safe_mode Off

    or

    php_admin_value safe_mode 0

    Hope this helps.