Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phpmyadmin showing php script [duplicate]

Well, I am having problem while installing phpmyadmin to my linux system. I followed all the instruction from digital ocean. After, I verify it in the browser then it shows this kind of php code. Did I miss something during my installation? My version of php is 7 and I am using ubuntu 14.04.

enter image description here

like image 984
Saugat Bhattarai Avatar asked Oct 01 '16 11:10

Saugat Bhattarai


2 Answers

Its seems that your server(Apache) is not recognizing php script as PHP language to be executed. At first check whether PHP is enable or not by running the following command in your terminal:

a2query -m php7.0

If it says somathing like PHP is not enable then run the following command:

sudo a2enmod php7.0

Then restart your Apache2 server with the following command:

sudo service apache2 restart

Try refreshing the phpmyadmin page now. Hope this will solve your problem. Best of luck

like image 190
Imran Avatar answered Oct 21 '22 10:10

Imran


After you install php for (I'm assuming) Apache you need to restart the webserver for it to read the config files.

like image 38
ivanivan Avatar answered Oct 21 '22 09:10

ivanivan