try to install mysql5 + php5 + apache2

Jean-Luc BERTé jean-luc.berte at laposte.net
Sun Feb 24 18:05:17 PST 2008


Le 24 févr. 08 à 21:37, Takashi Yoshida a écrit :

> You need to modify your /opt/local/apache2/conf/httpd.conf to  
> include your PHP5 configuration file. I'm not at my own machine now  
> but if you read the httpd.conf file it should be easy to figure it  
> out.
>
> I think PHP5 configuration file is at extras-conf directory under / 
> opt/local/apache2/conf.
>
> Sent from my iPhone
>
> On 25-Feb-08, at 09:19, Jean-Luc BERTé <jean-luc.berte at laposte.net>  
> wrote:
>
>>
>> Le 24 févr. 08 à 13:30, Takashi Yoshida a écrit :
>>
>>>> * copy  /opt/local/etc/php.ini-dist to  /opt/local/etc/php.ini
>>
>>
>> Yes, i have made all :
>>
>> $ cd /opt/local/apache2/bin
>> $ sudo ./apachetcl start
>> $ sudo -u mysql mysql_install_db5
>>
>> $ cd /opt/local/apache2/modules
>> $ sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
>>
>> [activating module `php5' in /opt/local/apache2/conf/httpd.conf]
>>
>> $ * copy  /opt/local/etc/php.ini-dist to  /opt/local/etc/php.ini
>>
>> -bash: httpd.exp: command not found
>>
>> i tried  to copy and rename php.ini-dist to php.ini in the /opt/ 
>> local/etc folder too but php5 doesn't work
>


I try to do what you say :

in extras-conf i found "mod_php.conf" witch contains :

<IfModule mod_php5.c>

AddType  application/x-httpd-php         .php
AddType  application/x-httpd-php-source  .phps

</IfModule>

and i paste it at the end of httpd.conf

$ * copy  /opt/local/etc/php.ini-dist to  /opt/local/etc/php.ini

-bash: extra: command not found

i stopped and re-start apache2


***WONDERFULL !!!  ITS WORKS !!! ****

*** GREAT THANKS ***

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20080224/1e82ec66/attachment.html 


More information about the macports-users mailing list