php5 +apache2

Bradley Giesbrecht brad at pixilla.com
Wed Feb 4 16:52:43 PST 2009


I just installed php5.

port -v install php5 _apache2 +imap +pspell +tidy +mysql5 +sqlite  
+pear +readline

bounce apache2

/opt/local/etc/LauchDaemons/org.macports/apache2/apache2.wrapper restart

check for php5 module

/opt/local/apache2/bin/apachectl -t -D DUMP_MODULES

ends with

php5_module (shared)
Syntax OK


But if I navigate in Safari to localhost/phpinfo.php

I get

<?php
phpinfo();
?>

rather then php interpreted output.

Looking in /opt/local/apache2/conf/httpd.conf I see where the php  
module has been added.


Any ideas what to look at next?

//Brad


More information about the macports-users mailing list