How to turn off php safe mode?

This topic illustrates how to enable or disable any php directive :

If you need to disable php "safe_mode", change "upload_max_filesize" limit or any other PHP directive, just follow the following steps to override the default server settings :

1- In your "public_html" folder, edit or create a new ".htaccess" file, and add the following line :

SetEnv PHP_INI_SCAN_DIR /home/sites/UserName/etc/

Where "UserName" is your account user name.

2- On your pc, create a "php.ini" file with any txt editor like notepad, add all the required modifications to it, then upload it to "/home/sites/UserName/etc/" folder.

Example:

let's assume that your username is "sdef3457" and you need to disable "safe_mode", this is how it should be done :

Go to your "public_html" directory and edit your ".htaccess" file and add the following line :

SetEnv PHP_INI_SCAN_DIR /home/sites/sdef3457/etc/

Then, go to " /home/sites/sdef3457/etc/" using your FTP program or cPanle's file manager and upload a "php.ini" file with the following line :

safe_mode = Off

Thats it!

Related Articles

What are the name server host names of the XtraOrbit shared hosting?

If you ordered web hosting from us, please set the name servers of your domain to: ns1.xtraorbit.com ns2.xtraorbit.com

My website suddenly became offline, Please help ..

In some cases, your website hosted with us may appear offilne to you becuase your IP address got blocked by our firewall.You can confirm being the firewall blockingby pinging your domain name. If...

How to login to cPanel?

This article describes to locate and access your XtraOrbit Web Hosting Control Panel - cPanel: To log in to your cPanel, please follow these steps: In your web browser, type the cPanel address...

Why the free email that comes with domain name doesn't work?

If you purchased a domain name and want to to use the free email that comes with it, please set the name servers of your domain to the following values: xo.mercury.orderbox-dns.com...

How to flush the DNS cache of the operating system?

In order to flush the DNS cache of your operating system, please select your operating system then follow the instructions: Windows 10 Flushing the DNS cache on Windows 10 is easy. Due to system...