开发者

PHP doesn't run through Snow Leopard Web Sharing

I've followed all the tutorials and uncommented the relevant lines in httpd.conf, but PHP files do not render under Web Sharing.

The server just serv开发者_开发技巧es up the source code instead of running it.

I know that PHP works, because I can run it straight from the Terminal using the "php" command.

What is happening here?


If you go to system preferences and go to Sharing - is Web Sharing enabled?


After you changed the /etc/apache2/httpd.conf file, did you restart Apache?


Try mamp (Mac Apache Mysql PHP). http://www.mamp.info It works brilliant under Snow Leopard 10.6.4

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜