Comments on Install Apache2, PHP5 And MySQL Support On CentOS 6.5 (LAMP)

LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on a CentOS 6.4 server with PHP5 support (mod_php) and MySQL support.

22 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Greenthumb


I noticed when you give the command

"vi /etc/httpd/conf.d/phpmyadmin.conf"

 it should be /etc/httpd/conf.d/phpMyAdmin.conf

By: Sheikh Munawar

file name is in lower case in centos6.5 . so all of the above worked for me just by copy pasting the commands to putty, without a single glitch.

By:

Exactly what I was looking for. An easy to follow tutorial for a basic LAMP setup. Everything worked for me.

Thanks for the tutorial!

By: Isaac

Using CentOS 6.5, I couldn't access the web site from any other machine (except locally) until i used system-config-firewall-tui and enabled HTTP. 

By: Pete

Wow, thanks for the heads up on the firewall tui. Twas a lifesaver.

By: Tom

Thanks for this, just what I wanted.  Very outdated version installed though?  Any pointers on bringing it up to date?

By: Anonymous

tried on my centos x64 6.3 box. works w/o a single glitch.

By: sujud

Everything works...but when i tried the last one to connect to phpmyadmin, it ask for user name and password.

which user name and password? please help

thanks

By: admin

This is the mysql Login. You can use e.g. username: root and the mysql root Password that you entered during mysql Installation.

By: Jena

This was a cake walk for me, thanks for the step by step information to install Apache, PHP and MySQL. I had to work with Centos OS to explore VPS, now you made my entire week!
 

 

 

By: Fahad

Such n Excellent post!!

By: jobaca


After installing Centos 6.5 and the various components i found using the 'service' command works consistently.  Making a direct call to a services binary file resulted in either 'command not found' or a message '...see doc to  run this command as root...'. EX: first i ran into '/etc/init.d/mysqld' not found.  The install of  mysql had no errors so when i searched for the 'mysqld' binary and ran it i ran into '...see doc to  run this command as root...'.  At this point just used the service command and it worked.
 

 

 

By: German

Hola, podrías agregar al final de este tutorial que se configuren los puertos 80 y 443 desde consola con la instrucción:

 system-config-firewall-tui

By: asrianto Indonesia

Thank's a Lot, this tutorial really help me to know how runing and configure a web server on Centos 6.5,

Even i'm new in linux world.. but im joyfull to learn how it linux os work, start from this tutorial.. 

By: Anonymous

 

Installing all of the components I needed to get Apache and MySql running was very easy. The explanations were great. 

Thanks

Wolf1lead

By: MrGmaw

Great job. Thank you.

By the way, how can I install APC with php55w?

By: Evan

 When I went to access the phpmyadmin on my site i got this error

Forbidden

You don't have permission to access /phpmyadmin on this server.

Apache/2.2.15 (CentOS) Server at (ip adress) Port 80 I set everything up as the instructions above showed me but i still got an error. IDK why

By: Arstropica

It's been so long since I setup a server from scratch.  Thank you.  This was very helpful.

By: Roberto

Nice tutorial.

Just my two cents. If you cant see apache demo page... just try to open port 80. It was my pain in the b*t 

By: Marco Santana

Fantastic tutorial. Simple and true. 

By: Peter

Great post. for those who don't know opening port 80 if you can't see the demo page:

first try: service iptables stop

If you now see the demo page start them again: service iptables start

now: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT

and save them: service iptables save

then restart them: /etc/init.d/iptables restart

By: Olu

Thank you so much. All the steps worked for me without any problem.