php.htaccesssafe-modephp-safe-mode

Setting safe mode to OFF in .htaccess file does not work


I'm on a server with safe mode on. Now the server allows .htaccess files. I have one in my public_html folder with settings of Wordpress. Now in a sub-domain i want to insert an .htaccess file that dsiables safe mode.

i Tried theese:

php_value safe_mode 0
php_flag safe_mode 0
php_value safe_mode off
php_flag safe_mode off

but none worked.

Anyone knows how can i do that? I Can not ask the server owner to disable safe mode, and basicly can't ask him anything.


Solution

  • It sounds like he doesn't allow you to override safe mode. Which makes sense because what would be the point in running a shared server in safe mode if anyone could disable it as they saw fit. You're probably going to need to relocate to a server without safe mode as the only options for changing that value are not going to work for you. Safe mode is already deprecated and is not meant to be used. The "safe" way for a server owner to handle security is through the OS and setting up correct account permissions.