Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

LoadModule php5_module        libexec/apache2/libphp5.so

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
add comment

2 Answers 2

see this http://www.phpied.com/installing-php-and-apache-on-mac-osx-that-was-pretty-easy/

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
add comment

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
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.