We are aware of a potentially service impacting issue. Learn more

Installing Apache, MySql 5.5 and PHP5.3 on CentOs 5 Print

  • 346

Learn how to install a LAMP environment on your server or a VPS with unlimited bandwidth from JavaPipe.

Note:
# denotes root prompt in bash shell.

1- Add epel repo to your yum.repos.d

# yum install yum-priorities
# rpm -Uvh http://mirror.vcu.edu/pub/gnu+linux/ \\
epel/5/x86_64/epel-release-5-4.noarch.rpm

Note: These are 64bit repos. If you are using 32bit OS then please substitute with i386 in the url.

2- Install remi repo

# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

3- Install apache

# yum install apache mod_ssl

4- Install mysql

Check that mysql5.5 exists

# yum --enablerepo=remi list mysql mysql-server 

Install it if it does then install mysql:

# yum install --enablerepo=remi mysql*

5- Start Mysql and add to chkconfig

# service mysqld start
# chkconfig mysqld on

6- Secure your MySQL installation and set root pass.

# /usr/bin/mysql_secure_installation

7- Install php

# yum install php53 php53-common php53-devel php53-mysql

Was this answer helpful?

« Back