在.htaccess文件中设置安全模式下关闭不工作 [英] Setting safe mode to OFF in .htaccess file does not work

查看:202
本文介绍了在.htaccess文件中设置安全模式下关闭不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对安全模式的服务器上。 现在,服务器允许.htaccess文件。 我在用字preSS设置的public_html文件夹中有一个。 现在,在一个子域我要插入的.htaccess 文件dsiables安全模式。

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.

我试过theese:

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

但没有奏效。

but none worked.

任何人都知道我该怎么办呢? 我不能要求服务器所有者禁用安全模式,并basicly不能要求他什么。

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.

推荐答案

这听起来像他不允许你重写安全模式。这是有道理的,因为这将是在安全模式下运行的共享服务器,如果任何人都可以禁用它,因为他们认为合适的点。你可能会需要搬迁到一个服务器没有安全模式为改变该值的唯一选项是不会为你工作。安全模式已经是德precated并且不意味着被使用。在安全的方式为服务器所有者来处理安全性是通过操作系统和建立正确的帐户的权限。

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.

这篇关于在.htaccess文件中设置安全模式下关闭不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆