Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/273.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
Javascript 尝试使用ErrorDocument处理请求时遇到500内部服务器错误_Javascript_Php_.htaccess_Perl - Fatal编程技术网

Javascript 尝试使用ErrorDocument处理请求时遇到500内部服务器错误

Javascript 尝试使用ErrorDocument处理请求时遇到500内部服务器错误,javascript,php,.htaccess,perl,Javascript,Php,.htaccess,Perl,我在这里有一个Xfilesharing(perl)脚本,是它的官方网站() 我在服务器上安装了它,我有javaScript插件和php文件一起工作 我应该将JavaScript放在HTML页面中,然后调用php文件来做一些事情,我在localhot上尝试了php文件,它的工作效率为100%,但是没有perl脚本 当我把它上传到服务器时,我收到了下面的消息 The server encountered an internal error or misconfiguration and was un

我在这里有一个Xfilesharing(perl)脚本,是它的官方网站()
我在服务器上安装了它,我有javaScript插件和php文件一起工作 我应该将JavaScript放在HTML页面中,然后调用php文件来做一些事情,我在localhot上尝试了php文件,它的工作效率为100%,但是没有perl脚本

当我把它上传到服务器时,我收到了下面的消息

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@*****.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
我在谷歌上搜索了它,找到了一些解决方案,比如更改权限,我把它改成了0777,但它不起作用

此外,我还将.htaccess文件的名称更改为.htaccess2,以查看发生了什么,但没有任何效果

这个.htaccess文件

deny from 10.0.0.182

AddDefaultCharset utf-8
RewriteEngine on

RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_CGI_AUTHORIZATION:%1]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule    ^([0-9A-Za-z]{12})(\/.+|\.html?|$)   /cgi-bin/index_dl.cgi?op=download1&id=$1&fname=$2 [L]

RewriteRule    ^embed-([0-9A-Za-z]{12})\.html$      /cgi-bin/index_dl.cgi?op=video_embed&file_code=$1 [L]
RewriteRule    ^embed-([0-9A-Za-z]{12})-(\d+)x(\d+)\.html$      /cgi-bin/index_dl.cgi?op=video_embed&file_code=$1&w=$2&h=$3 [L]
RewriteRule    ^embedmp3-([0-9A-Za-z]{12})\.html$   /cgi-bin/index_dl.cgi?op=mp3_embed&file_code=$1 [L]

RewriteRule    ^mp3embed-([0-9A-Za-z]{12})\.mp3$    /cgi-bin/index_dl.cgi?op=mp3_embed2&file_code=$1 [L]
RewriteRule    ^vidembed-([0-9A-Za-z]{12})      /cgi-bin/index_dl.cgi?op=video_embed2&file_code=$1 [L]

RewriteRule    ^box$                    /cgi-bin/index_box.cgi [L]
RewriteRule    ^dl$                 /cgi-bin/index_dl.cgi [L]
RewriteRule    ^download$               /cgi-bin/index_dl.cgi?op=download1 [L]

RewriteRule    ^$                   /cgi-bin/index.cgi [L]
RewriteRule    ^free([0-9]+)\.html$         /cgi-bin/index.cgi?op=registration&aff_id=$1 [L]
#RewriteRule    ^checkfiles\.html$          /cgi-bin/index.cgi?op=checkfiles [L]
RewriteRule    ^contact\.html$              /cgi-bin/index.cgi?op=contact [L]
RewriteRule    ^premium\.html$              /cgi-bin/index.cgi?op=payments [L]
RewriteRule    ^login\.html$                /cgi-bin/index.cgi?op=login [L]
RewriteRule    ^catalogue(.*)\.html$            /cgi-bin/index.cgi?op=catalogue&date=$1 [L]
RewriteRule    ^news([0-9]*)\.html$         /cgi-bin/index.cgi?op=news&page=$1 [L]
RewriteRule    ^n([0-9]+)-.*\.html$         /cgi-bin/index.cgi?op=news_details&news_id=$1 [L]
RewriteRule    ^faq\.html$              /cgi-bin/index.cgi?op=page&tmpl=faq [L]
RewriteRule    ^DMCA\.html$             /cgi-bin/index.cgi?op=page&tmpl=DMCA [L]
RewriteRule    ^tos\.html$              /cgi-bin/index.cgi?op=page&tmpl=tos [L]
RewriteRule    ^links\.html$                /cgi-bin/index.cgi?op=links [L]
RewriteRule    ^make_money\.html$           /cgi-bin/index.cgi?op=make_money [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule    ^pages/([a-z0-9\-\_]+).html      /cgi-bin/index.cgi?op=page&tmpl=$1$2 [L]

RewriteCond %{QUERY_STRING} .*page=[0-9]+.*
RewriteRule     ^users/([0-9A-Za-z\-_]{4,64})/?([0-9]+|$)   /cgi-bin/index.cgi [L,NC,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule     ^users/([0-9A-Za-z\-_]{4,64})/?([0-9]+|$)   /cgi-bin/index.cgi?op=user_public&usr_login=$1&fld_id=$2 [L,NC]
RewriteRule     ^u/([0-9A-Za-z\-_]+)            /cgi-bin/index_dl.cgi?op=deurl&id=$1 [L,NC]
RewriteRule     ^d/([0-9A-Za-z\-_]+)                    /cgi-bin/index_dl.cgi?op=deurl&id=$1&mode=2 [L,NC]

RewriteRule    \.pm$                    /404.html [L]

ErrorDocument 404 /404.html

<IfModule mod_php5.c>
        php_flag engine off
</IfModule>
从10.0.0.182拒绝
AddDefaultCharset utf-8
重新启动发动机
RewriteCond%{HTTP:Authorization}^(.*)
重写规则^(.*)-[E=HTTP\U CGI\U授权:%1]
重写cond%{REQUEST_FILENAME}-F
重写规则^([0-9A-Za-z]{12})(\/.+\.html?\$)/cgi-bin/index\u-dl.cgi?op=download1&id=$1&fname=$2[L]
重写规则^embed-([0-9A-Za-z]{12})\.html$/cgi-bin/index\u dl.cgi?op=video\u embed&file\u code=$1[L]
重写规则^embed-([0-9A-Za-z]{12})-(\d+)-x(\d+)\.html$/cgi-bin/index\u dl.cgi?op=video\u embed&file\u code=$1&w=$2&h=$3[L]
重写规则^embedmp3-([0-9A-Za-z]{12})\.html$/cgi-bin/index\u dl.cgi?op=mp3\u嵌入和文件\u代码=$1[L]
重写规则^mp3embed-([0-9A-Za-z]{12})\.mp3$/cgi-bin/index\u dl.cgi?op=mp3\u embed2&file\u code=$1[L]
重写规则^vidembed-([0-9A-Za-z]{12})/cgi-bin/index_-dl.cgi?op=video_-embed2&file_-code=$1[L]
重写规则^box$/cgi bin/index_box.cgi[L]
重写规则^dl$/cgi bin/index_dl.cgi[L]
重写规则^download$/cgi bin/index_dl.cgi?op=download1[L]
重写规则^$/cgi-bin/index.cgi[L]
重写规则^free([0-9]+)\.html$/cgi-bin/index.cgi?op=registration&aff\u id=$1[L]
#重写规则^checkfiles\.html$/cgi-bin/index.cgi?op=checkfiles[L]
重写规则^contact\.html$/cgi-bin/index.cgi?op=contact[L]
重写规则^premium\.html$/cgi-bin/index.cgi?op=payments[L]
重写规则^login\.html$/cgi-bin/index.cgi?op=login[L]
重写规则^cataloge(.*)\.html$/cgi-bin/index.cgi?op=cataloge&date=$1[L]
重写规则^news([0-9]*)\.html$/cgi-bin/index.cgi?op=news&page=$1[L]
重写规则^n([0-9]+)-.\.html$/cgi bin/index.cgi?op=news\u details&news\u id=$1[L]
重写规则^faq\.html$/cgi-bin/index.cgi?op=page&tmpl=faq[L]
重写规则^DMCA\.html$/cgi-bin/index.cgi?op=page&tmpl=DMCA[L]
重写规则^tos\.html$/cgi-bin/index.cgi?op=page&tmpl=tos[L]
重写规则^links\.html$/cgi-bin/index.cgi?op=links[L]
重写规则^make_money\.html$/cgi bin/index.cgi?op=make_money[L]
重写cond%{REQUEST_FILENAME}-F
重写规则^pages/([a-z0-9\-\\\\\\+).html/cgi-bin/index.cgi?op=page&tmpl=$1$2[L]
重写cond%{QUERY_STRING}.*页面=[0-9]+*
重写规则^users/([0-9A-Za-z\-{4,64})/?([0-9]+|$)/cgi-bin/index.cgi[L,NC,QSA]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^users/([0-9A-Za-z\-{4,64})/?([0-9]+|$)/cgi-bin/index.cgi?op=user\u public&usr\u login=$1&fld\u id=$2[L,NC]
重写规则^u/([0-9A-Za-z\-\-\\\+)/cgi-bin/index_dl.cgi?op=deurl&id=$1[L,NC]
重写规则^d/([0-9A-Za-z\-\\\\\\\\+)/cgi-bin/index_-dl.cgi?op=deurl&id=$1&mode=2[L,NC]
重写规则\.pm$/404.html[L]
错误文档404/404.html
php_标志引擎关闭

有人能帮我吗?

大家好,我通过将权限更改为0644来解决这个问题,这是我的服务器配置
谢谢

您是否也更改了子文件夹的权限?您是否也更改了文件权限?是的,我更改了所有目录和文件,解决了问题