Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have uncommented the following line to have php beeing taken into account by apache:

LoadModule php5_module        libexec/apache2/

I then created a test.php file with

<?php phpinfo(); ?>

and restarted apache

sudo apachectl graceful

But the php file is not taken into account, I just get the plain html.

Any idea ?

share|improve this question

see this

share|improve this answer
I followed this one also but did not get any more chance. I went with MAMB instead. – Luc Apr 8 '11 at 13:43

From the Terminal:

sudo cp /private/etc/php.ini.default /private/etc/php.ini

And then restart Apache again. You need a php.ini file to use PHP, and by default there is not one in place.

share|improve this answer

Your Answer


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.