Apache2 and php5

Yvon Thoraval yvon.thoraval at gmail.com
Fri May 2 10:15:45 PDT 2008


i've installed php5 with the command :

sudo port install php5 +apache2 +mysql5 +sqlite +pear

afterwards i did :
$ cd /opt/local/apache2/modules
$ sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so

$ sudo cp /opt/local/etc/php.ini-dist /opt/local/etc/php.ini

i've added also the following line into /opt/local/apache2/conf/httpd.conf :

LoadModule php5_module  modules/libphp5.so


and between <IfModule mime_module> and </IfModule> :

AddType text/html .php

but when loading my info.php file the browser want to download it instead of
viewing it.

nothing related to php5 in the Apache2 error log


-- 
yvon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20080502/81f1684b/attachment.html


More information about the macports-users mailing list