Step 1: Installing Remi Repository
## RHEL/CentOS 6.4-6.0 - 32 Bit ##
#rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
#rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
## RHEL/CentOS 6.4-6.0 - 64 Bit ##
#rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
#rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
Step 2: Installing Apache 2.2.15, MySQL 5.5.34 & PHP 5.5.4
# yum --enablerepo=remi,remi-test install httpd mysql mysql-server php php-common
Step 3: Installing PHP 5.5.4 Modules
# yum --enablerepo=remi,remi-test install php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml php-pecl-apc php-cli php-pear php-pdo
Step 4: Starting/Stopping Apache & MySQL
## Enable Apache and MySQL on Run-Levels ##
# chkconfig --levels 235 httpd on
# chkconfig --levels 235 mysqld on
## Apache Commands ##
# service httpd start
# service httpd stop
# service httpd status
## MySQL Commands ##
# service mysqld start
# service mysqld stop
# service mysqld status
Step 5:
Create page phpinfo.php under folder /var/www/html/
<?php
phpinfo();
?>
-Finish: http://localhost/phpinfo.php






No comments:
Post a Comment