Missing mod_php

Russell Gold russ at gold-family.us
Wed Dec 5 05:26:33 PST 2007


On Dec 5, 2007, at 7:50 AM, Jyrki Wahlstedt wrote:

> Do you have the corresponding LoadModule line in your httpd.conf? I  
> have ('grep php /opt/local/apache2/conf/httpd.conf'):
> LoadModule php5_module        modules/libphp5.so
>    DirectoryIndex index.html index.php
> Include conf/extras-conf/mod_php.conf
>
> (the first is necessary, the rest not)


I did have the first line. What I did not have, and what proved to be  
the difference, was the include statement (which makes apache  
recognize the .php file extension). The install actually placed  
mod_php.conf in a different directory, so I didn't see it. Moving it  
to conf/extra and including it make everything work. Thanks!


More information about the macports-users mailing list