Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have done all the steps for enabling php on the Mac:

  • edited httpd.conf to uncomment loadmodule for php
  • verified that php.conf has the right information
  • have web sharing enabled

But the apache server still doesn't open my php file as a web page. What else must I do to open php pages?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Editing /etc/apache2/httpd.conf, restarting Apache and making sure the file you want to view ends with .php is all you need to do.

share|improve this answer
    
I think restarting Apache is the key here. +1 for you. –  user3463 Mar 27 '12 at 5:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.