The first and easiest solution: Contact your hosting company. Ask them to turn PHP Safe Mode Off. If you don’t want to contact your webhost, you can turn it off yourself manually. Here’s how.
Turn of PHP Safe Mode Off in Linux using some basic VI Commands.
- Using SSH, connect to your server. Do this as root. If not, then you can SU to Root in the next step.
- Once you are logged in, type
su - root. - For your password, type the same password you used to connect to your server.
- At the command prompt type this to edit your php.ini file:
vi /etc/php.ini - Go to the line
safe_mode = onand press the “i” key on your keyboard. - Change the line to
safe_mode = offand press the “Esc” key. - Type
:wq!to save your file. - You might have to reboot your server now.
Turn PHP Safe Mode Off on a Windows server
- Using Remote Desktop Connection, log in to your server as an administrator.
- Open c:\windowsphp.ini in Notepad.
- Change the line
safe_mode = ontosafe_mode = off. - Save and close windowsphp.ini .
- You might have to restart your webserver for changes to take affect.