Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Jun 2006 19:12:04 +0100
From:      robert <bsd@bathnetworks.com>
To:        Free BSD <freebsd-questions@freebsd.org>
Subject:   Apache22 + PHP5 installation issues
Message-ID:  <1149358324.9348.25.camel@localhost.localdomain>

next in thread | raw e-mail | index | archive | help
Hi all,

I am having problems with setting up a web server. I'm running FreeBSD
6.1-Release-P1, updated of yesterday.

I have installed Apache22, php5 and php5-extensions from the ports. (I
did check the build Apache module option in the php5 config).

My first problem is that the handbook still refers the to mod_php which
is not available. A search of the archives gave me the answer that it
has been removed.

My httpd.conf has:

LoadModule php5_module        libexec/apache22/libphp5.so

To which I have added:

AddType application/x- httpd-php .php
AddType application/x- httpd-php-source .phps

As per the pkg-message.

The problem is that although I can connect to apache, php does not
appear to run, all I get in a browser is unknown file type and a
suggestion to download the file.

I have also tried adding index.php to the DirectoryIndex

I have to follow the handbook and tried this:

<IfModule php5_module>
        DirectoryIndex index.php index.html
</IfModule>
<IfModule php5_module>
AddType application/x- httpd-php .php
AddType application/x- httpd-php-source .phps
</IfModule>

ie with php5_module rather than mod_php, but that also fails to work


There is nothing in the apache-error.log nor messages that help.

Any ideas, suggestions please.

Rob









Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1149358324.9348.25.camel>