|  Home

VPS & Dedicated Servers (Hosting Control Center) Help

Turning Off PHP Safe Mode on Your Plesk Server

By default, Parallels Plesk Panel sets PHP to "safe mode" during installation. To take PHP out of "safe mode," you need to remote connect to your dedicated server and modify the server's PHP initialization file.

Linux Servers

To Turn Off PHP Safe Mode on Your Linux Server

  1. Connect to your server via SSH (more info).
  2. Switch to the root user (more info).
  3. Enter your server's password.
  4. Run the following command:
    vi /etc/php.ini
  5. Go to the line safe_mode = on and press the "i" key.
  6. Change the line to safe_mode = off and press the "Esc" key.
  7. Type :wq! to save your file.

Windows Servers

To Turn Off PHP Safe Mode on Your Windows Server

  1. Connect to your server via Remote Desktop (more info).
  2. Open c:\windowsphp.ini in Notepad.
  3. Change the line safe_mode = on to safe_mode = off.
  4. Save and close php.ini.

Once you have edited the file, you need to restart your Web server. You can restart your Web server using Parallels Plesk Panel by selecting stop/start under the Server > Service Management section.

Was This Article Helpful?
Thanks for your feedback. To speak with a customer service representative, please use the support phone number or chat option above.
Glad we helped! Anything more we can do for you?
Sorry about that. Tell us what was confusing or why the solution didn’t solve your problem.