The easiest way Ive found to make apache2 and php5 work together on openbsd is the following.
================================================== ===========
if u need mysql, install that from the packages.
install p5-XML-LibXML from the packages.
for apache2 and php5 you need to compile both from the src.
download the tar.gz files from httpd.apache.org and php.net.
in the httpd-2.2.8 folder:
#./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite=shared --enable-speling=shared --with-included-apr
#make
#make install
cd into the php5 folder:
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib=/usr
(if u have mysql and wish to use it add "--with-mysql" to the php configure line)
#make
#make test
#make install
#cp php.ini-dist /usr/local/lib/php.ini
#vi /usr/local/apache2/conf/httpd.conf
and add these following line in the appropriate section.
AddType application/x-httpd-php .php
and save and quit
finally run
#/usr/local/apache2/bin/apachectl start.
There you go, working apache2.2.8 with php 5.2.6
if u need GD I can tell u how to get that working too...
Last edited by Dazhelpwiz; 26th May 2008 at 11:23 PM.
|