Frequently Asked Questions

Help Center Search

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

  1. Using SSH, connect to your server.
  2. Once you are logged in, type su - root.
  3. For your password, type the same password you used to connect to your server.
  4. At the command prompt type:
  5. vi /etc/php.ini
  6. Go to the line safe_mode = on and press the "i" key.
  7. Change the line to safe_mode = off and press the "Esc" key.
  8. Type :wq! to save your file.

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.