Home  >  Article  >  Backend Development  >  localhost跟phpmyadmin不能访问

localhost跟phpmyadmin不能访问

WBOY
WBOYOriginal
2016-06-13 10:46:551224browse

localhost和phpmyadmin不能访问
我新安装了php 5.5,apache 2.2(httpd 2.2),mysql 5.5和phpmyadmin 3.5.2.2。
我浏览器地址栏输入127.0.0.l就能显示Apache Software Foundation\Apache2.2\htdocs下面的index.html,如果输入localhost就不能访问。
我修改了C:\Windows\System32\drivers\etc下面的hosts文件,去掉了127.0.0.1面前的#,现在是这样:
" 127.0.0.1 localhost
# ::1 localhost
"
重启了机器,localhost还是不能访问。
输入http://localhost出现\Apache2.2\htdocs下的文件和文件夹的列表。
将phpMyAdmin\libraries下的config.default.php拷贝到上级目录更名为config.inc.php,修改了
$cfg['blowfish_secret'] = '123456';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'cbb74bc';
$cfg['Servers'][$i]['auth_type'] = 'config';
127.0.0.1/phpmyadmin和localhost/phpmyadmin还是不能访问


------解决方案--------------------
看下http.conf文件的DocumentRoot的值是什么
------解决方案--------------------

PHP code
127.0.0.1    localhost<div class="clear">
                 
              
              
        
            </div>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn