Load PHP Module For Apache On Redhat/Cent0s 7

0
34

Here, We’re going to show you how to install PHP module for apache. It is required to run the PHP files on server.

First you will have to install the Apache Packages on server and PHP along with it.

I have already installed Apache Server and assuming you have also.

Now you have to install PHP on server

yum install php*

After installing PHP, You just have to load the module in httpd.conf file

Put these line in httpd.conf file

Then

Restart the service of Apache and check the Configuration file syntax

Systemctl restart httpd && httpd –t ;

You’re done

Sponsored