我使用的是Ubuntu 12.04
,使用的是Vmware,我正在研究Python cgi-bin
。我遵循这个教程:http://archive09.linux.com/feature/136602。我的example1.py "Hello, Linux.com!"
打印成功,但example2.py没有成功打印,服务器总是说:
Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
End of script output before headers: te.py
If you think this is a server error, please contact the webmaster.
Error 500
localhost
Apache/2.4.16 (Unix) OpenSSL/1.0.1p PHP/5.6.12 mod_perl/2.0.8-dev Perl/v5.16.3
代码是:
^{pr2}$我自己失败了,也弄不清原因。请帮忙
看起来你已经提供了python路径,你能检查一下你是否提供了文件的执行权限?我想添加execute权限可以解决您的错误。在
相关问题 更多 >
编程相关推荐