问题描述
好吧,我在将 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 这样的 somathing is not enable 然后运行以下命令:
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 脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)