输入http://localhost/phpmyadmin/index.php报错: 您指定的网页无法访问! 错误类型:404
一、输入localhost/phpmyadmin/index.php才能访问网页显示404错误,就表明URL指向网页不存在或无法访问.我判断是Apache默认页设置问题.在Apache配置目录下找到httpd.conf文件,并查找如下所示的代码.DirectoryIndex index.html在后面输入index.php(空格)DirectoryIndex index.php index.html由于你没有设置默认访问页。所以,在浏览器中输入localhost/phpmyadmin的时候就不会自动跳转到index.php页,故出现404 error。
二、不管是访问localhost/phpmyadmin还是localhost/phpmyadmin/index.php都会出问题我认为是phpmyadmin设置问题。1.打开config.inc.php文件,并找到$cfg ['PmaAbsoluteUri'] ='';2.该行修改为$cfg ['PmaAbsoluteUri'] ='http://localhost/phpMyAdmin'; 3.检查phpMyAdmin解压包是否放置在Apache网页存放目录4.检查phpMyAdmin是否解压更名为phpMyAdmin.这里和第2条要设置相同.
三、无法载入mcrypt,请检查php配置1.请把php安装/解压目录下的libmcrypt.dll文件复制粘贴到Apache目录下的bin目录下.2.打开php.ini配置文件。3.找到;extension=php_mcrypt.dll这行.4.将行首的;(分号)去除即可解决问题.四、cookies必须启用才能登入.1.打开config.inc.php文件2.找到$cfg[‘Servers’]['$i']['auth_type']="";行3.并设置为$cfg ['Servers']['$i']['auth_type'] = 'cookie'; //配置文件第177行、设置phpMyAdmin的登录方式.共有config.http.cookie三种.