0

I setup my wamp server and can access phpMyAdmin directory on the local host.

I'm trying to access a file from my directory but it gives me error 403 Forbidden yet I've tried to change my httpd.conf to

DocumentRoot "c:/wamp/www/"
<Directory "c:/wamp/www/">
    Options Indexes FollowSymLinks ExecCGI
    Order allow,deny
    Allow from all
    AllowOverride All
</Directory>

And I've also changed my phpadmin.conf to

<Directory "c:/wamp/apps/phpmyadmin3.4.5/">
    Options Indexes FollowSymLinks ExecCGI
    AllowOverride all
    Order Deny,Allow
      Allow from 127.0.0.1
      Allow from MACHINE_IP

And I still can't access some files on my server

Here is the exact message:

Forbidden

You don't have permission to access /php_sandbox/e-commerce/4-full-mvc-framework/views/login/index.php on this server.

4

1 回答 1

0

在您的 phpadmin.conf 中,这些行是您的问题:

Allow from 127.0.0.1
Allow from MACHINE_IP

将其更改为

Allow from all

它应该可以工作。

于 2013-10-23T11:04:45.727 回答