Missing mod_php
Jyrki Wahlstedt
jwa at macports.org
Wed Dec 5 04:50:25 PST 2007
On 5.12.2007, at 14.06, Russell Gold wrote:
> I did:
>
> port install php5 +apache2 +mysql5
> cd /opt/local/apache2/modules
> /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
>
> and restarted apache2
>
>
> But I still see no reference to mod_php anywhere, and php files are
> still treated as text by the browser. What am I missing, here?
> _______________________________________________
>
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)
!
! Jyrki Wahlstedt
! http://www.wahlstedt.fi/jyrki/
!
! Our life is no dream; but it ought to become one and perhaps will.
! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0 A780
6366 EFD9 139C C386
More information about the macports-users
mailing list