Skip to main content
LAMP

Install Apache, MySQL and PHP on CentOS | LAMP

This tutorial explains how you can install and configure LAMP and phpMyAdmin on CentOS 5.11 and CentOS 6.7, 32 and 64 Bit OS versions.

First of all we will update system:

Install EPEL repository for your Linux version.
If you are running an CentOS 5 version:

If you are running an CentOS 6 version:

We will install Apache, MySQL, PHP and phpMyAdmin:

Edit /etc/httpd/conf.d/phpMyAdmin.conf file. Use a # and comment all lines in <Directory “/usr/share/phpMyAdmin/”> … </Directory> section:

Edit /usr/share/phpmyadmin/config.inc.php file and replace ‘cookie’ with ‘http’:

Restart Apache and MySQL services:

Improve MySQL Installation Security:

And follow these steps:

Type following commands to start Apache and MySQL automatically on every reboot:

Now you can access phpMyAdmin in browser using following url: http://serverIP/phpmyadmin (change serverIP with your server IP).

SkyHosting

Best Hosting Services: .rs domain registration, Web Hosting, VPS Servers, SSL Certificates. Visit us SkyHosting.

Leave a Reply

Your email address will not be published. Required fields are marked *