Can I turn off PHP safemode on my virtual dedicated server?
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
- Using SSH, connect to your server.
- Once you are logged in, type
su -
. - 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
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.