There is always a smarter way.
How to turn on / off php safe_mode?
Most of the time is important to turn on OR turn off the php safe_mode on the server for a particular account. If you turn on OR off the php safe_mode using php.ini file then safe mode will affect for all the accounts on the server if the server is shared server. The best way to turn off the php safe_mode for a particular account is the .htaccess file.
Below are the steps to turn on OR off the php safe_mode using .htaccess file.
- Create a .htaccess file into account.
- Add the following code into the .htaccess.
To turn off the php safe_mode the code is:
Php_value safe_mode off
To turn on the php safe_mode the code is :
Php_value safe_mode on
You can use 0 OR 1 instead of off / on
If you don’t have SSH access and you are trying to do it for your website, then create a htaccess.txt file at your local machine add the above code into the file and then upload it using any FTP client software. Once you upload rename the file to .htaccess (dot htaccess).
Hope this will fix your problem. Enjoy.
| Print article | This entry was posted by Prash on February 23, 2010 at 11:03 pm, and is filed under Linux servers. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |