Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
apache错误,一个php文件与另一个不相同_Php_Apache - Fatal编程技术网

apache错误,一个php文件与另一个不相同

apache错误,一个php文件与另一个不相同,php,apache,Php,Apache,我在一个特定的文件上遇到了服务器500错误,在我将其上传到主机之前,该文件在本地运行良好 因此,将文件简化为php所能得到的简单文件。代码是: <?php echo "hello,hello"; ?> test7.php工作正常 test11.php失败 php失败 cp test5.php dent.php-works enter code here cp dent.php zephod.php-works enter code here cp dent.php te

我在一个特定的文件上遇到了服务器500错误,在我将其上传到主机之前,该文件在本地运行良好

因此,将文件简化为php所能得到的简单文件。代码是:

 <?php
  echo "hello,hello";
 ?>
test7.php工作正常

test11.php失败

php失败

cp test5.php dent.php-works

enter code here
cp dent.php zephod.php-works

enter code here
cp dent.php test11.php-works-以前没有

cp test11.php testtest.php-works-以前没有

cp test7.php到vest7.php-works

enter code here
关于这里可能发生的事情有什么线索吗? 下面是一些其他细节。 非常感谢 凯文

[~/www/]#httpd-版本
/usr/sbin/httpd:第61行:ulimit:打开的文件:无法修改限制:不允许操作
/usr/sbin/httpd:第62行:ulimit:打开的文件:无法修改限制:不允许操作
/usr/sbin/httpd:第63行:ulimit:打开的文件:无法修改限制:不允许操作
服务器版本:Apache/2.2.27(Unix)
服务器构建时间:2014年5月16日07:50:36
Cpanel::Easy::apachev3.24.18 rev9999+cloudlinux
远程地址:xx.xx.xx.xxx:443
请求URL:https://www.server.net/dm/test4.php
请求方法:获取
状态代码:500内部服务器错误
请求HeaderView源
接受:text/html、application/xhtml+xml、application/xml;q=0.9,图像/webp,*/*;q=0.8
接受编码:gzip、deflate、sdch
接受语言:en-US,en;q=0.8
连接:保持活力
主机:www.server.net
用户代理:Mozilla/5.0(Macintosh;英特尔Mac OS X 10_9_4)AppleWebKit/537.36(KHTML,类似Gecko)Chrome/38.0.2124.3 Safari/537.36
响应头视图源
连接:关闭
内容长度:657
内容类型:text/html;字符集=iso-8859-1
日期:2014年8月19日星期二格林威治时间21:16:09
服务器:Apache
.htaccess的内容(出于发布目的,http被修改为h_t_t_p_s)
重新启动发动机
重写条件%{HTTPS}关闭
重写规则(.*)h_t_t_p_s://%{HTTP_HOST}%{REQUEST_URI}[R=301,L]
AddHandler应用程序/x-httpd-php53.php.php5.php4.php3

我想我应该为此而自责,或者,最多是自责

-rw-rw-r--  1 theuser theuser   29 Aug 20 04:08 test22.php
-rw-r--r--  1 theuser theuser   29 Aug 17 07:59 test2.php
我一定是烫发了0664,而且是复制的。 我正在把一些文件从另一个盒子转移到这个盒子。当我检查烫发并将它们从664改为644时,硬币掉了下来。 不会再犯那样的错误了


凯文

说,
后面的那两个滴答声是“你好,你好”
不是代码的一部分,对吗?
hextump-C
通常更可读(特别是当您使用单字节字符集时)。但是,如果内容相同。。。我想说,问题可能出在运行的二进制文件中:您的Web服务器是否记录了为什么会给出500?我假设您同时启用了apaches和phps向max报告错误?@Fred ii-:不,至少不在hextump中。@Wrikken问题代码中已发布。OP应该移除它们。我问他的问题没有得到OP的回应。编辑:谢谢。或者我们现在就为他做,因为这显然是为了更好地掌握降价格式;)
cp-a
对RME成员来说是个不错的选择:)