如何在共享托管环境中为特定目录关闭php safe_mode? [英] How to turn off php safe_mode off for a particular directory in a shared hosting environment?

查看:86
本文介绍了如何在共享托管环境中为特定目录关闭php safe_mode?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了共享主机.我想为我的网站关闭php safe_mode.我的提供者给了我一个php.ini文件,并要求我将其设置与我的设置放在我的public_html文件夹中以覆盖这些设置,但是没有用.

Hi I'm used shared hosting. I want to turn off php safe_mode off for my site. My provider gave me a php.ini file and asked me to put it with my settings in my public_html folder to override the settings, but it didn't work.

推荐答案

您还可以尝试在根(public_html或其他)文件夹中创建一个名为php.ini的文件,并将以下内容放入其中:

You can also try to create a file called php.ini in the root (public_html or other) folder, and putting the following in it:

safe_mode = Off

取决于服务器设置,此方法可能有效也可能无效.

Depending on server settings, this may or may not work.

这篇关于如何在共享托管环境中为特定目录关闭php safe_mode?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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