我有一个networking服务器(Apache2,在Ubuntu Saucy Salamander 13.0x上configuration)。 在这台服务器上,我有以下文件: /var/www/xxxxx.com/insertToDB.php
使用500 Internal Server Error GET结果访问此文件。
我已经尝试configurationsites-available/xxxxx.com.conf到以下内容:
<Files *.php> Order Deny,Allow Deny from all Allow from 127.0.0.1 </Files> <Files insertToDB.php> Order Allow,Deny Allow from all </Files>
(和所有其他的变化,允许所有这个特定的文件,PHP扩展通配符和什么不是..)。
我也使用.htaccess文件直接在文件所在的文件夹(在xxxx.com虚拟主机中)和其父文件上做同样的事情。 500 internal server error仍然存在。
我们已经检查了所有的Apache error.log和access.log 。 没有显示与PHP5安装相关的任何特定错误(在其他虚拟主机上,以及index.php文件)或版本,或任何我们可以解决的问题。 也许我们没有在正确的地方search(?)。
最后,我将sites-available/yyyy.con.conf (允许index.php文件的vhost,从Web访问时运行良好) sites-available/xxxx.com.conf到sites-available/xxxx.com.conf文件(如下所示)。 然而没有任何工作
*每次更改后,Apache服务器都会重置:)
<VirtualHost *:80> # Server name ServerName xxxx.com # Document root DocumentRoot /var/www/xxxx.com <Directory /var/www/xxxx.com> Options Indexes FollowSymLinks AllowOverride All Order allow,deny allow from all </Directory> # only allow access to insertToDB.php file <Files ~ "\..*"> Deny from all </Files> <Files insertToDB.php> Allow from All </files> # Custom log file locations </VirtualHost>
insertToDB.php )经过testing,每月在Bluehost主机上运行4美元,并且工作得很好。 在使用CURL库包含一个非常简单的POST。 它没有提供任何testing服务器上的错误工作。 另外 – 文件名也是在某些时候解除资本化,以确认这不是问题。 PHP日志文件被限制为128MB(不是问题)。 任何帮助将非常感激。