views:

44

answers:

3

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 serves 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?

A: 

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

xil3
Yes, hence I am able to access said PHP file through sf.local/~sajseven/... And so on and so forth.
@user383084 Did you restart Apache?
George Marian
Indeed I did. ;-)
A: 

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

Brent Baisley
Yes. Multiple times. ;-)
A: 

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

Osman Üngür