yum install mysql*
follow the instructions given in the site
http://dan.drydog.com/apache2php.html
go to httpd-version and configure it using
# cd httpd-2.2.16
# ./configure --prefix=/usr/local/apache \ --enable-so \ --enable-cgi \ --enable-info \ --enable-rewrite \ --enable-speling \ --enable-usertrack \ --enable-deflate \ --enable-ssl \ --enable-mime-magic
# make
# make install
# cd
# wget http://in2.php.net/get/php-5.3.3.tar.gz/from/in.php.net/mirror
# tar xvzf php-5.3.3.tar.gz
# cd php-5.3.3
# ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql --prefix=/usr/local/apache/php --with-config-file-path=/usr/local/apache/php
# make
# make install
# cp -p .libs/libphp5.so /usr/local/apache/modules
# cp -p php.ini-development /usr/local/apache/php/php.ini
# cd
# vi /usr/local/apache/conf/httpd.conf
Add these lines
LoadModule php5_module modules/libphp5.so AddHandler php5-script php
DirectoryIndex index.html index.php AddType text/html php
AddType application/x-httpd-php-source phpsDo httpd restart...
If u r not getting the page add one more line to ur httpd.conf file
AddHandler application/x-httpd-php .php .php5
Create index.php file in your DocumentRoot.
Give 755 permission and change owner and group to your username
# vi index.php
<?php
phpinfo();
?>
Take http://ip/ in your browser
NameVirtualHost 192.168.2.136:80
ReplyDeleteServerName neethu1.com
ServerAlias www.neethu1.com
DocumentRoot /home/neethu1/public_html
ServerAdmin webmaster@neethu.com
UseCanonicalName On
Errorlog /usr/local/apache/logs/error_log
ServerName neethu2.com
ServerAlias www.neethu2.com
DocumentRoot /home/neethu2/public_html
ServerAdmin webmaster@neethu.com
UseCanonicalName On
Errorlog /usr/local/apache/logs/error_log
RedirectPermanent / "http://google.com/"