Install PHP 5.3 on CentOS 5.6

This article will outline the process for install PHP 5.3.x on CentOS 5.6 via the Enterprise Linux (EPEL) repository.

System Update

First of all, complete a yum update on your machine by running:

# yum update

If a kernel update occurs I recommend rebooting before completing the rest of the steps in this outline.

Install Repositories

In order to upgrade your PHP and MySQL environment you will need to install two repositories, one from the Fedora site and one from Famillecollet (remi).

# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

Apache & PHP Update

Once the repo’s are installed you can  complete the install (or upgrade) of MySQL, Apache and PHP: Continue reading “Install PHP 5.3 on CentOS 5.6”

Install LAMP (Linux, Apache, MySQL, PHP) on CentOS 5.6

This article will outline the process for installing Linux, Apache, MySQL and PHP (also known as ‘LAMP’) on CentOS 5.6.

Getting Started

First of all, make sure your YUM repositories and packages are up to date:

# yum check-update
# yum update

Install any available package and library updates.

Apache

Next, install Apache, set it to run on startup, and finally start the service:

# yum install httpd
# chkconfig –add httpd
# service httpd start

MySQL

Installing MySQL is similar to installing Apache, except we have an additional step of running a basic setup wizard. Continue reading “Install LAMP (Linux, Apache, MySQL, PHP) on CentOS 5.6”