Apache不通过浏览器处理python脚本(* .py)
编辑:OS是CentOS 5 我安装了Python 2.5.5,并试图通过浏览器运行一些Python脚本。 老实说,我以前没有用过Python。 我试图加载python模块到Apache,但它已经加载并被跳过。 我也证实我可以从我的命令行运行python脚本,如果我让他们可执行。 但是,当我把“ http://www.example.com/test.py ”放入我的浏览器时,它会返回未parsing的HTML,如下所示: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>500 Internal Server Error</title> </head><body> <h1>Internal Server Error</h1> <p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p> <p>Please contact the server administrator, root@localhost and inform them of the time the error occurred, […]