up vote 0 down vote favorite
share [g+] share [fb]

I have install MacPortsed and I have installed Apache 2 and PHP 5.3 but I can't get Apache 2 to work with PHP 5.3.

I have tried to unload and load it again, I don't know how I can reinstall apache from MacPorts or how I can get PHP 5.3 to work with this.

I have run this command

sudo port install php5 +apache2 +pear

But my web server is not running PHP 5 right now.

link|improve this question

50% accept rate
feedback

1 Answer

up vote 1 down vote accepted

Is there a particular reason you're wanting to use the MacPorts version of PHP and Apache? Apple has Apache 2 and PHP 5.3 preloaded for Snow Leopard Server.

Have you edited your appropriate httpd.conf file to include php5.so (not commented out)?

For example with Apple's default installation PHP is disabled and you need to enable PHP 5 either through Server Admin (where the Sites section under Web provides a basic GUI for httpd.conf) or editing /etc/apache2/httpd.conf. For MacPorts the appropriate file is at /opt/local/apache2/conf/httpd.conf.

link|improve this answer
Tanks for help, that you say its problem nr. 1 :) and the ordre problem its i need to include "mod_php.conf" file, tanks for respons :) – NeoNmaN Nov 7 '09 at 0:18
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.