Installation of Apache2 and PHP5 on CentOS 5.0
Following is the installation process for Apache2 and PHP5 -
-----------------------------------------
yum install httpd php php-devel
-----------------------------------------
You will now require to create system startup link -
chkconfig --levels 235 httpd on
/etc/init.d/httpd start
After the installation of PHP5, if you need PHP5, then you can search for them by using the following -
-------------------------------------
yum search php
-------------------------------------
After the result, installation takes place as follows -
yum install php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc
/etc/init.d/httpd restart
-------------------------------------
Normally, the document root for the website is /var/www/html. Create a php info (info.php) in the directory. You can create it as follows -
vi /var/www/html/info.php
|