[MacPorts] #24956: Having trouble using mysql5 and php5
MacPorts
noreply at macports.org
Sat May 22 12:07:12 PDT 2010
#24956: Having trouble using mysql5 and php5
--------------------------+-------------------------------------------------
Reporter: samii@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: wiki | Version:
Keywords: | Port: php5
--------------------------+-------------------------------------------------
Comment(by info@…):
Replying to [comment:14 samii@…]:
> Now, instead of the phpinfo.php file showing up as text echoed on
screen, it downloads as a downloadable file.
Here's a shot in the (not so) dark.
Sounds like apache isn't associating the '.php' extension with the php
engine.
I see your httpd.conf has the include line:
{{{
Include conf/extra/mod_php.conf
}}}
Make sure that this file exists (full path:
''/opt/local/apache2/conf/extra/mod_php.conf''), that it's readable by
whatever user (on your local box, you can make it readable by everyone),
and that it has these lines:
{{{
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>
}}}
(as always, restart apache after any changes)
If this doesn't fix it, turn on apache error logging and check for errors.
--
Ticket URL: <http://trac.macports.org/ticket/24956#comment:16>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list