4. Slackware

4.1. About Slackware

Installing the Apache Web server on Linux together with the extensions for use by PMB.

Author : Francois NIGON – linux@nigon.net

4.2. Sources

The help files for the installation of www.indexdata.dk/phpyaz and the chapter Installing Apache from www.php.net, item documentation.

4.3. Preamble

The installation described below was done on a P4-2,6GHz, slackware 9.1, kernel 2.4.24. The files used were downloaded on the net. I am assuming the installation will be done in the same manner as with any other distribution...

4.4. Downloads

YAZ : go to the web site www.indexdata.dk/yaz/

download the file http://ftp.indexdata.dk/pub/yaz/yaz-2.0.9.tar.gz

PHP : go to the web site www.php.net, item downloads, download php-4.3.4.tar.gz

Apache : go to the site httpd.apache.org, item Download from a mirror, download apache_1.3.29.tar.gz

4.5. Install

Preparing the installation :

mkdir /root/php cd /root/php 
tar -zvxf /root/my_downloads/yaz-2.0.9.tar.gz 
tar -zvxf /root/my_downloads/php-4.3.4.tar.gz
tar -zvxf /root/my_downloads/apache_1.3.29.tar.gz 

Close the door of your office, unplug the telephone... in short, create an atmosphere conducive to an installation in all quietude. In the example given below, the Web server and the extensions are installed in /www, this may come as a surprise to any confirmed Linux user, but the only other solution available is to remove the existing Apache version DON'T FORGET ONE SINGLE FILE, then to install it in /usr/local/apache. God help you !

YAZ : cd yaz-2.0.9

./configure --prefix=/usr

make

make install

Apache : cd ../apache_1.3.29

./configure --prefix=/www --enable-module=so

make

make install

PHP : cd ../php-4.3.4

./configure --with-mysql --with-gd --with-apxs=/www/bin/apxs --with-yaz=/usr/bin --with-zlib-dir --with-bz2

make

make install

cp php.ini-dist /usr/local/lib/php.ini

Configuration : Edit the file /www/conf/httpd.conf

Check whether the line Loadmodule php4_module libexec/libphp4.so exists(and without #)

Add AddType application/x-httpd-php .php .php3 .php4

Add index.php index.php4 index.php3 to the line DirectoryIndex

Start Apache : /www/bin/apachectl start

Delete the other existing apachectl binaries (find / -name apachectl to find them)

The files to be loaded by Apache are /www/htdocs