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 脚本
基础教程推荐
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 如何替换eregi() 2022-01-01
