print PDF Ireland

Installation Apache Php Mysql


A web server is a software allowing making web pages stored on a disk reachable to many computers (clients). This manual explains how to install Apache web server on UNIX system.

To do so, knowledge about Linux or Unix is necessary. The aim of this manual is to be able to recover sources of different necessary elements and to compile them (a C compiler is therefore necessary, it is in general installed by default on the most of Linux distributions) in order to get an operational system.

WARNING !! OVH machines are already configured. You can also find compilation standard scripts on our server:

The following contains the installation of PHP translator, a programming language allowing generating dynamic pages, as well as MySQL Data Base Management System, which is powerful and works under Linux.

Download sources

PHP sources on
Apache sources on
MySQL sources on

Install Apache and PHP

1. Unzip archives:
tar zxvf apache_1.3.x.tar.gz

tar zxvf php-3.0.x.tar

2. Configure Apache
cd apache_1.3.x
./configure --prefix=/www

3. Configure PHP
cd ../php-3.0.x
./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars

4. If you prefer to install PHP in another directory, you have to use configuration option --with-config-file-path=/path
Unzip PHP

make install

5. Install Apache
cd ../apache_1.3.x

./configure --prefix=/www --activate-module=src/modules/php3/libphp3.a

make install

6.Modify the PHP configuration file
cd ../php-3.0.x

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

7. You may now edit the configuration file /usr/local/lib/php3.ini
Edit it from Apache server (in general httpd.conf or srm.conf and add the following line:
AddType? application/x-httpd-php3 .php3

8. It is a question of choosing the extension assigned to PHP scripts. With a view to homogeneity, it is common to choose .php3 extension. Start Apache server (it is essential to stop and reboot the server, and not only to restart it. In general, you just have to type apachectl stop, then apachectl start).

1st launch

To check if the installation has correctly worked, you just have to create a small file in the documents root of the web server (called DocumentRoot in the configuration file httpd.conf). Name this file toto.php3, and place the following code in this file :

echo "PHP functional!";

Launch a browser on this machine and enter the following URL:

http://localhost/toto.php3 localhost designs a machine on which you are …

’PHP works’ must display on your browser
This document comes from This document has a "GNU FDL" license. You can copy, modify this page but you must add this note in the footer of your page.