I can't run php pages on my webserver!

Phil Regnauld regnauld at x0.dk
Thu May 24 13:59:34 UTC 2007


On Thu, May 24, 2007 at 02:46:28PM +0100, Prince Martin wrote:
> I set up an apache webserver on a FreeBSD Machine and I wrongly
> assumed I would be able to run php pages successfully (automatically).
> Well, it turned out the php pages couldn't run (they are being displayed
> as pure html pages). I installed php4 using portinstall and I still have
> the problem. Is there some more configuration I need to do with php or
> apache to rectify the situation?


PHP4 or 5 ?

Anyway, do you have something similar in httpd.conf ?  Is the PHP module
listed as loaded ?  Did you restart the server ?  Eventually, post your
httpd.conf to the list.


    <IfModule mod_php4.c>
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php .php3
        AddType application/x-httpd-php-source .phps
	</IfModule>




More information about the afnog mailing list