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
精彩评论