Frequently Asked Questions

Can I turn off PHP safemode on my virtual dedicated server?

Last Updated: March 13, 2006 1:35 PM

By default, Plesk sets PHP to "safemode" during installation. To take PHP out of safemode, you need to remote connect to your virtual dedicated server and modify the php.ini file on the server.

To Turn off PHP "safemode" on Your Linux Virtual Dedicated Server

  1. Using SSH, connect to your server.
  2. Once you are logged in, type su -.
  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 and press Enter to save your file and quit vi.

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.