我有 Ubuntu 16.04.1 LTS。我已经安装了 phpmyadmin,但是当我在浏览器中输入 localhost/phpmyadmin 时,它会打开一个包含如下文本的有线页面 -
php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Main loader script
*
* @package PhpMyAdmin
*/
use PMA\libraries\RecentFavoriteTable;
/**
* Gets some core libraries and displays a top message if required
*/
require_once 'libraries/common.inc.php';
/**
* display Git revision if requested
*/
require_once 'libraries/display_git_revision.lib.php';
/**
* pass variables to child pages
*/
$drops = array(
'lang',
'server',enter code here
'collation_connection',..
'db',
'table'
);
etc...........
请让我知道我做错了什么。
最佳答案
Ubuntu 文档提供了有关如何安装和启用 PHP 的详细信息。
考虑到您安装了 Apache:
安装 Apache PHP 库$ sudo apt-get install libapache2-mod-php5
启用模块
`$ sudo a2enmod php5`
并重新启动 Apache
$ sudo service apache2 restart
https://help.ubuntu.com/community/ApacheMySQLPHP#Installing_PHP_5
关于phpmyadmin 正在显示一些文本页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40438605/