Installation of PHP
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
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.