PHP

Installation

 * Before installing you should certify that you installed the XML library (libxml2) of your linux distribution, including the libxml2-devel that contain headers and includes.
 * After installing the Apache web server, MySQL and graphics library you can install the PHP version 5.1.4 or higher.
 * Donwload the PHP source code.
 * Configure and install PHP using the following commands:

$ ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd $ make $ make install

Test it:

$ php -v PHP 5.1.4 (cli) (built: Jun 23 2006 12:44:42) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies


 * Copy the file found in the source code using this command:

$ cp php.ini-recommended /usr/local/lib/php.ini

httpd.conf
Edit and change the file /usr/local/apache2/httpd.conf:

LoadModule php5_module       modules/libphp5.so

...  DirectoryIndex index.html index.html.var index.php  ...

AddType application/x-httpd-php .php