[dev] Compiling PHP for Apache 2

Luciano Ramalho luciano at ramalho.org
Mon Jun 26 16:59:57 PDT 2006


I've sucesfully compiled PHP 5.1.4 with all dependencies for Horde CVS, 
but I am stuck because I don't know how to generate the libphp5.so file.

PHP 5 is up an running from the CLI:

root at arabier:/usr/bin# php --version
PHP 5.1.4 (cgi) (built: Jun 26 2006 02:43:02)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

But I cant finish the installation instructions from the PHP site [1] 
because step 14 tells me to edit httpd.conf and write:

LoadModule php5_module modules/libphp5.so

But when I search for libphp5.so in my system, I only find the older 
(5.1.2) version that came from the original Ubuntu package.

Here are the config params that I used:

./configure --with-apxs22=/usr/bin/apxs2 \
                 --with-gettext --with-dom --with-mcrypt \
                 --with-iconv --enable-mbstring=all --enable-mbregex \
                 --with-gd --with-png-dir=/usr --with-jpeg-dir=/usr \
                 --with-mime-magic=/usr/share/file/magic.mime \
                 --with-mysql  --with-pdo-mysql \
                 --with-zlib-dir=/usr --with-readline

Can anyone say what I am missing?

Cheers,

Luciano

[1] http://www.php.net/manual/en/install.unix.apache2.php

-- 
THE ROAD TO WISDOM?
Well, it's plain
and simple to express.
Err and err and err again,
but less and less and less.
— Piet Hein.



More information about the dev mailing list