我已在 Redhat Linux 服务器计算机(64 位)上安装了 phpmyadmin。安装后,当我尝试使用 URL 访问时domain.com/phpmyadmin
,显示错误:
The requested URL /phpmyadmin/navigation.php< was not found on this server.
然后我尝试访问domain.com/phpmyadmin/setup
,它显示此错误:
<?
/* @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0 */
/**
* Core libraries.
*/
require './lib/common.inc.php';
$page = filter_input(INPUT_GET, 'page');
$page = preg_replace('/[^a-z]/', '', $page);
if ($page === '') { $page = 'index'; }
if (!file_exists("./setup/frames/$page.inc.php")) {
// it will happen only when enterung URL by hand, we don't care for these cases
die(__('Wrong GET file attribute value'));
}
// Handle done action info
$action_done = filter_input(INPUT_GET, 'action_done');
$action_done = preg_replace('/[^a-z_]/', '', $action_done);
// send no-cache headers
require './libraries/header_http.inc.php';
?>
此错误下方仅显示“phpMyAdmin 设置”,仅此而已。我还尝试访问phpinfo.php
phpmyadmin 文件夹,结果显示空白页。
使用 PHP 的网站页面运行良好。
答案1
就我而言,httpd.conf 导致了问题。当我删除通过 webmin 创建的虚拟服务器时,它就正常工作了。并重新配置了它。
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/usr/local/apache2/docs/ebugs"
ServerName ebuqs.com
ServerAlias www.ebugs.com
ErrorLog "logs/ebugs/error_log"
CustomLog "logs/ebugs/access_log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/usr/local/apache2/docs/startfromthegrub"
ServerName startfromthegrub.com
ServerAlias www.startfromthegrub.com
ErrorLog "logs/startfromthegrub/error_log"
CustomLog "logs/startfromthegrub/access_log" common
</VirtualHost>