Home - Help & Support - Contact Us
    

Can I Turn Off PHP Safemode On My Linux Dedicated Server?

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:
    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.

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.

Rated:NR/0 Votes
1076 Views
More Articles From Configuring
More Articles From Configuring
Print Article
Print
Share |
Comments, Questions & Reviews

Comments is currently disabled for this article!
Related Articles and Readings
What Do I Do When I Receive a MySQL Local Connect Error?
Error Message: Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/content/u/s/e/username/html/file.php on line 2 Cause: This is caused ...
Can I Connect to My Database Remotely?
No, we do not allow external connections to our database servers. ...
Can I use SSH to connect to my shared hosting account?
For security reasons, we do not allow SSH (or Telnet) connections to our hosting servers. ...
Can I use SSH to connect to my shared hosting account?
For security reasons, we do not allow SSH (or Telnet) connections to our hosting servers. ...
Connecting to a MySQL Database on Your Linux Hosting
This example describes using PHP to connect to a MySQL Database on a Linux hosting account. <?php//Sample Database Connection Syntax for ...
The information provided in this article is for general information and/or the comments is the sole responsibility of their respective authors and does not necessarily reflect the opinion of zeronese.net does not endorse any article and/or comments published by our web users unless otherwise noted.