[SOLVED] Re: apache2 activating php5

Mark Hattam mark at dxradio.demon.co.uk
Wed Apr 25 13:51:47 PDT 2007


In your httpd.conf file have you got the Server Root set correctly?

ServerRoot "/opt/local/apache2"

If putting the full (absolute) path fixes php5 
module, then it probably means that Apache isn't 
find any of its other modules either ...

Mark

--


At 12:53 +0200 25/4/07, Yvon Thoraval wrote:
>Le 24 avr. 07 à 11:13, Ryan Schmidt a écrit :
>>Sounds like you're almost there. Let me see 
>>what I have in my apache2 httpd.conf, which is 
>>working fine with php5.
>>
>>
>>Near the other LoadModule directives at the top, you'll need this:
>>
>>LoadModule php5_module modules/libphp5.so
>
>NO that was the trick i had to put the absolute PATH of libphp5.so :
>-------------------------------------------------^^^^^^^^----------------------------
>
>
>LoadModule php5_module /opt/local/apache2/modules/libphp5.so
>
>instead of the default relative PATH :
>
>LoadModule php5_module modules/libphp5.so
>
>
>ALSO, i've to mention it seems the file :
>
>/opt/local/apache2/conf/extras-conf/mod_php.conf
>
>which contains :
>
>$ cat conf/extras-conf/mod_php.conf
><IfModule mod_php5.c>
>
>AddType  application/x-httpd-php         .php
>AddType  application/x-httpd-php-source  .phps
>
></IfModule>
>
>
>IS UNUSED might be because their is no "mod_php5.c" at all ?
>
>then i leave :
>
>  AddType application/x-httpd-php .php
>  AddType application/x-httpd-php-source .phps
>
>in the httpd.conf file.
>
>best,
>
>Yvon
>
>_______________________________________________
>macports-users mailing list
>macports-users at lists.macosforge.org
>http://lists.macosforge.org/mailman/listinfo/macports-users




More information about the macports-users mailing list