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

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
  • 346 Users Found This Useful
Was this answer helpful?

Related Articles

How do I manage my VPS Server?

We provide you with a very simple interface for controlling your VPS hosting with unmetered...

How to install MySQL

Here is a step by step how to install MySQL and secure it for your unlimited bandwidth VPS. You...

How to Install Apache2 and PHP5 on Ubuntu

Installing Apache2 and PHP5 is super simple on Ubuntu: # apt-get install apache2# apt-get...

How to Install MySQL on Ubuntu

Learn how to install MySQL on your DDoS protected dedicated server or DDoS protected VPS if...

Installing Node.js on CentOs 5

Installing node.js on a cheap VPS with unlimited bandwidth is pretty simple. For more information...