Installing PHP in Apache

Can be downloaded of http://www.php.net/downloads.php being the version necessary to the date of this manual for comaptibility with GOsa, the 4.3.XX, since versions 5.0.XX are not supported yet. We will download and decompress in/usr/src.

In order to be able to compile the necessary modules, we need the developer libraries of servers section 5, in addition to same that openLDAP2.2.1 and the Apache3.3.1, we will need some library more:

libbz2
We can download it of http://sources.redhat.com/bzip2/ as module of compression BZ2.
e2fsprogs
For access to the file system, can be downloaded of http://e2fsprogs.sourceforge.net
expat
Download from http://expat.sourceforge.net/, A XML parser.
zziplib
Download from http://zziplib.sourceforge.net/, to access to ZIP archives.
zlib
Download from http://www.gzip.org/zlib/ for GZIP compression.
file
Download from http://www.darwinsys.com/freeware/file.html to get control of archives.
sed
Download from http://www.gnu.org/software/sed/sed.html, one of the most powerful tools for text handling.
libcurl
Powerful tool to handle remote archives, download from http://curl.haxx.se/.
gettext
GNU Tool for support of several languages, download from http://www.gnu.org/software/gettext/gettext.html.
libgd
For the manipulation and creation of images, download from: http://www.boutell.com/gd.
libjpeg
Manipulation of JPEG images, download from http://www.ijg.org/.
libpng
Manipulation of PNG images, donwload from http://www.libpng.org/pub/png/libpng.html.
mcal
Library for access to remote Calendars, download from http://mcal.chek.com/.
libmysql
Support of most famous database, is essential for php, download from http://www.mysql.com/



A recommended configuration will be like this:

Apache2
-prefix=/usr -with-apxs2=/usr/bin/apxs2
-with-config-file-path=/etc/php4/apache2

Options of compilation
-enable-memory-limit # Compiled with memory limit
-disable-debug # To compile without debug symbols
-disable-static # Without static libraries
-with-pic # To use PIC and nonPIC objects
-with-layout=GNU
-enable-sysvsem # sysvmsg Support
-enable-sysvshm # sysvshm Support
-enable-sysvmsg # System V shared memory support
-disable-rpath # Disable to be able to pass routes to extra librerias to the binary
-without-mm # To disable memoty sessions support

Session
-enable-track-vars
-enable-trans-sid

Support
-enable-sockets # sockets support
-with-mime-magic=/usr/share/misc/file/magic.mime
-with-exec-dir=/usr/lib/php4/libexec

pear
-with-pear=/usr/share/php # Where we are going to install PEAR

functions
-enable-ctype # Control of characters functions support
-with-iconv iconv functions support
-with-bz2 BZ2 Compression support
-with-regex=php Type of library of regular expressions
-enable-calendar Calendar conversion functions
-enable-bcmath Mathematics of arbitrary precision support
-with-db4 DBA: Berkeley DB version 4 support
-enable-exif exif functions support, for JPG and TIFF metadata reading
-enable-ftp FTP functions support
-with-gettext Localization support
-enable-mbstring
-with-pcre-regex=/usr
-enable-shmop shared memory functions
-disable-xml -with-expat-dir=/usr use expat xml instead of which comes with php
-with-xmlrpc
-with-zlib
-with-zlib-dir=/usr
-with-imap=shared,/usr imap generic support
-with-kerberos=/usr Imap with Kerberos authentication
-with-imap-ssl Imap with SSL secure access
-with-openssl=/usr
-with-zip=/usr
-enable-dbx Layer of abstraction with databases

external modules
-with-curl=shared,/usr remote Handling of archives
-with-dom=shared,/usr -with-dom-xslt=shared,/usr -with-dom-exslt=shared,/usr With xmlrpc already integrated
-with-gd=shared,/usr -enable-gd-native-ttf Images handling support
-with-jpeg-dir=shared,/usr GD Support for JPEG
-with-png-dir=shared,/usr GD Support for png
-with-ldap=shared,/usr Support for ldap
-with-mcal=shared,/usr Support of calendars
-with-mhash=shared,/usr Module for several key generation algorithms
-with-mysql=shared,/usr Support of Mysql database

Then do:
#make && make install

aescanero AT gmail.com