phpmyadmin showing php script(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 这样的 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 脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:phpmyadmin 显示 php 脚本
基础教程推荐
- 如何在数学上评估像“2-1"这样的字符串?产生“1"? 2022-01-01
- php中的foreach复选框POST 2021-01-01
- 使用 scandir() 在目录中查找文件夹 (PHP) 2022-01-01
- php 7.4 在写入变量中的 Twig 问题 2022-01-01
- Yii2 - 在运行时设置邮件传输参数 2022-01-01
- php中的PDF导出 2022-01-01
- Web 服务器如何处理请求? 2021-01-01
- 将变量从树枝传递给 js 2022-01-01
- PHPUnit 的 Selenium 2 文档到底在哪里? 2022-01-01
- 主题化 Drupal 7 的 Ubercart “/cart"页 2021-01-01
