Comments on How to install Apache, PHP 7.3 and MySQL on CentOS 7.6

This tutorial shows how to install an Apache web server on a CentOS 7 server with PHP (mod_php with PHP 5.4, 7.0, 7.1, 7.2 or 7.3) and MySQL support. This setup is often referred to as LAMP which stands for Linux - Apache - MySQL - PHP.

22 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Sarfaraz Shaikh

How can we switch between the different versions of the php as per the project requirement.

By: till

There can be only one PHP version installed at a time when mod_php is used, the tutorial explains how to select the PHP version by using yum-config-manager --enable .... command at install time.

By: venkat

Thanks very much

every thing commands worked very well

By: 404-basics

Great guide! Thank you very much for sharing your knowledge. <3

By: Roberto

Hi!

I need to update PHP and MySQL from a client's Apache web server. I need tips please.

 

I took on the task to learn how to do it. Madness of mine? LOLThanks.

By: Amarjit Sharma

I made a mess of my pc many a time to install php, Until this article, every command works.

                Great thanks for your article.

By: query

Thanks very much

By: Mahdi

Hello,

Thanks so much for your nice Tutorial.

I have only a little proble with loading phpmyadmin on browser. After config "

/etc/httpd/conf.d/phpMyAdmin.conf

"

and resrating apache, when i try http://my_server_addres/phpmyadmin/

browser say's:

Forbidden

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

By: Jhonny Cahuaya H.

Muy buen tutorial!

By: Skhilled

Been trying to do this for the past two weeks or so but all of the other tutorials failed one way or another and I could not figure out how to get phpmyadmin up and running which was the biggest problem, among others... This worked out great and also explained a lot of things the other tutorials did not! I write tutorials for certain forums, etc. and am very detailed. I truly appreciate the detail you've put into this as well as the time and effort. :) GREAT JOB!!! THANK YOU VERY MUCH!!!

By: Arvind

Perfect guide. 

By: Animesh

Please update the tutorial for CentOS 8.

By: Indra

Best tutorial, thanks!

By: joseph shenturk

Thanks a lot! It helped me.

By: jerome

Hey, just for the record. This page has been glued to my favorites bar forever. Thanks for this master piece !

Regard jerome

By: Ranjeet Kumar

Thanks sir.

Its Amazing .......

By: Vijayan

Hi Brehm and Team,

 

How can we upgrade the Testrail 6.0.0.4140 to 7.2.

And the DB we are using is MySql

Thanks in Advacne,

VIJAYAN

Pleaser provide the guidance 

By: VIJAYAN

Hello Tec,

How can we retrive the phpMyAdmin credentieals, I am unable to login using the URL http://<IP>/phpmyadmin/:

 

Please advice

By: B

Great tutorial! Thanks for sharing.

By: Oscar

 Thank you!

By: ali

Thanks. It is great

By: balaji

it's better