php cgi htaccess
我尝试执行cgi但失败了。 我在 .htaccess 中包含以下行
AddHandler cgi-script .cgi
Options +ExecCGI
abc.com/ 相当于 /home 目录
abc.com/compare 相当于 /home/compare 目录
abc.com/compare/contact 相当于 /home/compare/contact 目录
.htaccess 文件位于联系人目录中
,但服务器返回以下消息。
服务器内部错误 遇到内部错误或 配置错误并且无法 完成您的请求。请联系 服务器管理员, [电子邮件受保护]并通知他们 错误发生的时间以及任何事情 你可能已经这样做了 导致错误。更多信息 关于此错误可能可以在 服务器错误日志。
还有一件事是问题
是什么,我可以看到 phpinfo() 是否启用了 cgi?
i try to execute cgi but failed.
i include following lines in .htaccess
AddHandler cgi-script .cgi
Options +ExecCGI
abc.com/ is equivalent to the /home directory
abc.com/compare is equivalent to the /home/compare directory
abc.com/compare/contact is equivalent to the /home/compare/contact directory
.htaccess file located in contact directory
but server returns the following message.
Internal Server Error The server
encountered an internal error or
misconfiguration and was unable to
complete your request.Please contact
the server administrator,
[email protected] 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.
what is the problem
one more thing is can i see phpinfo() that cgi is enable or not??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的服务器启用了 CGI 吗?
你必须在 httpd.conf 中启用它,看一下:
http://httpd.apache.org/docs/2.2/howto/cgi。 html
Is CGI enabled on your server?
You have to enable it in the httpd.conf, take a look at:
http://httpd.apache.org/docs/2.2/howto/cgi.html