Reconfigure Apache2 server with PHP 7

It’s a quite common problem that we face when we try to work around apache server and php.
Suppose you have just reconfigured your apache 2. Next you find that your php 7 script is not working any more with your php and no script is executed properly.
What will you do?

Open your linux terminal and type the following commands one after another. Usually
it works.

sudo apt-get install apache2 php7.0 libapache2-mod-php7.0

a2query -m php7.0

sudo a2enmod php7.0

sudo service apache2 restart

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s