-1

我遇到了一个奇怪的错误,每当我尝试启动 localhost 时,我都安装了 wampserver,我得到了那个错误

Forbidden

You don't have permission to access / on this server

但是,当我尝试连接到 127.0.0.0 ...它连接.. !!! 我尝试编辑配置文件并允许从 localhost 访问并允许所有人访问,但它不起作用!

当我尝试打开 phpMyAdmin 我得到那个错误

phpMyAdmin - Error
The mysqli extension is missing. Please check your PHP configuration. 

我尝试了许多在线解决方案,但它们没有用,有什么帮助吗?!

4

1 回答 1

0

Solution 1
"Here my WAMP installation is in the d:\wamp folder. Change it to your wamp path."

Change the file content of d:\wamp\alias\phpmyadmin.conf to the following.

<Directory "d:/wamp/apps/phpmyadmin3.5.1/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order Deny,Allow
        Allow from all
</Directory>

Previously, it was like this:

<Directory "d:/wamp/apps/phpmyadmin3.5.1/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
</Directory>

Stop and Restart your WAMP server after making these changes.

Solution 2
Just use 127.0.0.1 instead of localhost

This works: http:// 127.0.0.1/
This works: http:// 127.0.0.1/phpmyadmin/

于 2013-04-17T19:01:19.330 回答