random build notes

chris (2007-06-04 16:26:46)
662 views
2 replies
download apache ball
download php ball

for the apache bit
---------------------

tar -zxvf httpd...tgz
cd httpd
sudo ./configure --prefix=/usr/local/apache --enable-module=so --enable-rewrite=shared


for the php bit
-----------------
./configure (without any options)

finally breaks with: configure: error: xml2-config not found. Please check your libxml2 installation.


so download and install libxml2
---------------------------------

sudo wget ftp://xmlsoft.org/libxml2/libxml2-2.6.28.tar.gz
sudo tar -zxvf libxml2-2.6.28.tar.gz
cd libxml2
as root:
./configure; make; make install

then re-try with compiling php:




I will want the mysql server installed
--------------------------------------



Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot open shared object file: No such file or directory

this means you forgot to compile your php as a dso. PHP will still exist as an executable. You can see this just by typing php -v :

chris@snackerjack-lx:/usr/local/apache/conf$ php -v
PHP 5.2.3 (cli) (built: Jun 4 2007 10:47:37)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
commentdelete
chris
2007-06-06 22:20:18

building php 5.2:

sudo ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-zlib-dir=../zlib-1.2.3/ --with-mysql=/usr/local/mysql
reply icondelete postedit reply
chris
2009-07-09 00:04:26

root@chris-desktop:/usr/src/torkalot# echo $CVSROOT
spiration@torkalot.cvs.sourceforge.net/cvsroot/torkalot
reply icondelete postedit reply