Can I turn off PHP safemode on my Linux dedicated server?
Print this Article
Comment on this Article
Last Updated:
June 21, 2007 2:42 PM
By default, Plesk sets PHP to "safemode" during installation. To take PHP out of safemode, you need to remote connect to your dedicated server and modify the php.ini file on the server.
To Turn off PHP "safemode" on Your Linux Dedicated Server
- Using SSH, connect to your server.
- Once you are logged in, type
su - root
. - For your password, type the same password you used to connect to your server.
- At the command prompt type:
- Go to the line
safe_mode = on
and press the "i" key. - Change the line to
safe_mode = off
and press the "Esc" key. - Type
:wq!
to save your file.
vi /etc/php.ini
Once you have edited the file, you need to restart your Web server. You can restart your Web server using Plesk by selecting stop/start under the Server, Service Management section.