PHP is the PHP Hypertext Preprocessor. Primary used in dynamic web sites, it allows for programming code to be directly embedded into the HTML code.
Download (HTTP): http://us2.php.net/distributions/php-4.3.3.tar.bz2
Download (FTP): ftp://ftp.isu.edu.tw/pub/Unix/Web/PHP/distributions/php-4.3.3.tar.bz2
Download size: 3.5 MB
Estimated Disk space required: 79 MB
Estimated build time: 1.24 SBU
Install PHP by running the following commands:
./configure --prefix=/usr --with-apxs2=/usr/sbin/apxs \ --with-config-file-path=/etc --with-openssl=/usr \ --with-zlib=/usr --enable-bcmath --with-bz2=/usr \ --with-curl --enable-ftp --with-gd --with-jpeg-dir=/usr \ --enable-gd-native-ttf --with-db4 --with-png-dir=/usr \ --with-freetype-dir=/usr --with-gettext --with-mysql=/usr \ --with-ncurses --sysconfdir=/etc && make && make install && cp php.ini-dist /etc/php.ini |
Note: PHP has many more configure options that will enable support for certain things. You can use ./configure --help to see a full list of the available options. Also, use of the PHP web site is highly recommended, as their online docs are very good.
/etc/php.ini, /etc/pear.conf
To enable PHP support in the Apache web server, a new AddType directive must be added to the httpd.conf file:
AddType application/x-httpd-php .php |
Also, it can be useful to add an entry for index.php to the DirectoryIndex directive of the httpd.conf file.