php and apache not working

Scott Haneda talklists at newgeo.com
Wed Sep 16 23:18:15 PDT 2009


On Sep 16, 2009, at 11:02 PM, Ryan Schmidt wrote:

> On Sep 17, 2009, at 00:55, Scott Haneda wrote:
>
>> Hmmm, never had this issue before:
>> /opt/local/bin/php /opt/local/apache2/htdocs/test.php
>> That works and parse the echo phpInfo() I have in the file.
>>
>> Loading the page in apache via Safari, I get the raw code.  I  
>> enabled apache...
>> $grep php httpd.conf
>> LoadModule php5_module        modules/libphp5.so
>> That is the php that is in /opt/local
>>
>> I have restarted apache2 on a few occasions.
>
> Check out the MAMP howto in the wiki. You probably forgot to load  
> the extra php configuration file into your Apache conf.


Thanks, forgot to include the php config file.  All working now.
-- 
Scott * If you contact me off list replace talklists@ with scott@ *



More information about the macports-users mailing list