localhost跟phpmyadmin不能訪問

來源:互聯網
上載者:User
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
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.