任何人都可以解释我可以如何使用这些指令? 我在这里find官方文档。 但没有太多解释。
这是问题。 服务器A运行cPanel,php 5.3.10
包含这个php.ini:
suhosin.executor.disable_eval=On [PATH=/home/username/public_html] suhosin.executor.disable_eval=Off
我有文件在/home/username/public_html/afd/evaltest.php和eval正在工作。 如果我注释path部分,php显示错误,那eval被禁用。 所以,一切都按预期工作。
服务器B是相同的,但PHP版本是5.3.19和应用程序codeigniter ,并不起作用。 如果我添加到php.ini
[HOST=www.example.com] suhosin.executor.disable_eval=Off [HOST=example.com] suhosin.executor.disable_eval=Off
那么所有的作品都像预期的 那么,为什么path不能在服务器B上工作?
我可以添加多个path指令? 喜欢这个
[PATH=/home/username/public_html, /home/username2/public_html, /home/usernameN/public_html] suhosin.executor.disable_eval=Off
要么
[PATH=/home/username/public_html] [PATH=/home/username2/public_html [PATH=/home/usernameN/public_html suhosin.executor.disable_eval=Off
在这两个服务的PHP运行suPHP。
我发现为什么在服务器B [PATH=]不起作用。 在服务器A后面,我们添加了存储并将其挂载到/home_new ,之后当从服务器A(女巫位于/home_new )移动到B时,在服务器B上创build/home_new目录,新用户在/home_new下创build。 然后创build从/home_new/username文件夹到/home/username符号链接。 而[PATH=]不适用于符号链接。 我尝试使用[PATH=/home/username/public_html]女巫是符号链接,但我必须使用[PATH=/home_new/username/public_html] ,然后所有工作如预期。
PS对不起英文不好。