phpmyadmin显示php脚本 [英] phpmyadmin showing php script

查看:87
本文介绍了phpmyadmin显示php脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好,将phpmyadmin安装到我的linux系统时遇到问题.我遵循了数字海洋的所有指示.之后,我在浏览器中对其进行了验证,然后显示了这种php code. 我在安装过程中错过了什么吗?我的php版本是7,正在使用ubuntu 14.04.

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.

推荐答案

似乎您的服务器(Apache)无法将php脚本识别为要执行的PHP语言.首先,通过在终端中运行以下命令来检查PHP是否启用:

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

如果未启用类似PHP之类的功能,请运行以下命令:

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

sudo a2enmod php7.0

然后使用以下命令重新启动Apache2服务器:

Then restart your Apache2 server with the following command:

sudo service apache2 restart

尝试立即刷新phpmyadmin页面.希望这能解决您的问题.祝你好运

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

这篇关于phpmyadmin显示php脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆