简体   繁体   English

PHP共享主机和mod_security

[英]php shared host and mod_security

I'm having difficulty with a php script using copy() on a shared remote host. 我在共享远程主机上使用copy()的php脚本遇到困难。 I've read here the host may simply not allow the use of the copy() function. 我在这里阅读 ,主机可能根本不允许使用copy()函数。 I started a trouble ticket and the trouble was half fixed and blamed on mod_security. 我开了一张故障单,故障已修复一半,并归咎于mod_security。 I persisted and now my script is working. 我坚持不懈,现在我的脚本正在工作。 A strange last response, after the fix was this: 修复之后,一个奇怪的最后回应是:

"Unfortunately as these are shared servers we are unable to make any custom modifications to the server configurations. The most customization you can perform are PHP settings. Any server related settings are unable to be modified." “不幸的是,由于这些服务器是共享服务器,因此我们无法对服务器配置进行任何自定义修改。您可以执行的大多数自定义操作是PHP设置。任何与服务器相关的设置都无法修改。”

What could this person be referring to when they say "PHP settings"? 这个人说“ PHP设置”时可能指的是什么? Note the site uses cPanel. 请注意该站点使用cPanel。

And another strange thing is my php CMS app. 另一个奇怪的是我的php CMS应用程序。 is now doubling edits (as if I was inserting rather than updating) in the database. 现在,数据库中的编辑量增加了一倍(就像我要插入而不是更新一样)。 This is not the case on my test server. 我的测试服务器上不是这种情况。 How can a fix in mod_security cause mysql updates to behave differently? mod_security中的修复程序如何导致mysql更新行为不同?

当他提到PHP设置时,他的意思是用您自己的php.ini覆盖服务器php.ini文件的某些指令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM