Add repository & Installing Web Server in Centos5

Download lastest release
*for RPMforge repository
i386 ::


x86_64 ::


* Install the package

#rpm -ivh rpmforge-release-0.3.6-1.el5.rf.*.rpm

Open the RPMforge configuration file >> /etc/yum.repos.d/rpmforge.repo (entry priority=3)

for remi & epel repository
*download package


epel repository


*install package

#rpm -Uvh remi-release-5-3.noarch.rpm epel-release-5-3.noarch.rpm


#perl -pi -e ‘s/enabled=0/enabled=1/g’ /etc/yum.repos.d/remi.repo
Updating packet
#yum update
Install packet
#yum install packatename


#yum –enablerepo=remi install packatename
Web Server Installation
*Install Apache and Mod_ssl

#yum install httpd mod_ssl

activating Apache start automatically after reboot

#/sbin/chkconfig httpd on
*Install PHP

#yum install php-common php-gd php-mcrypt php-pear php-pecl-memcache php-mhash php-mysql php-xml

Restart service httpd

#service http restart
*install Mysql

#yum install mysql-server mysql mysql-devel

enter password mysql: YOURPASSWORD
for login mysql
#mysql -u root -p (YOURPASSWORD)

*Activate service myslq after restart
#/sbin/chkconfig mysqld restart
For configure httpd
#vi /etc/httpd/conf/httpd.conf

type in your browser http://localhost or http://yourip


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s