,

Install PHP on Centos

It is a very basic need for our server, if we want to run PHP based application. To install PHP on our CentOS server, open terminal and type this command

sudo yum install php php-mysql

You will be asked for confirmation, please type Y for “Yes”. Then PHP will be installed.

Restart the apache

sudo service httpd restart

To check php version we can use this command

php -i

or we can create php info file. Check it out this article Check PHP version on CentOS with php info file.

That’s all. Thank you. Have nice day  ^_^

Tinggalkan komentar

I’m Riza

Welcome to my website. I’m happy to share my knowledge and experience here, especially related with my expertise in digital solution for enterprise. I’ll talk many topics around technology, AI, and others. Happy to know you!

You can find me in network platform below

Let’s connect