Phpmyadmin showing a php script

Well, I have a problem installing phpmyadmin on my Linux system. I followed all the instructions from the digital ocean. After that I check it in the browser, then it shows this type of php code . Did I miss something during my installation? My php version is 7 and I am using ubuntu 14.04.

enter image description here

+5
source share
2 answers

It seems that your server (Apache) does not recognize the php script as the PHP language for execution. First check if PHP enabled or not by running the following command in the terminal:

a2query -m php7.0

If he says somathing as PHP not included, run the following command:

sudo a2enmod php7.0

Then restart the Apache2 server Apache2 following command:

sudo service apache2 restart

Try updating the phpmyadmin page. Hope this solves your problem. Good luck.

+5
source

After installing php for (I assume) Apache you need to restart the web server so that it reads the configuration files.

0
source

Source: https://habr.com/ru/post/1257578/


All Articles