WampServer 3.0.0 AH01630: client denied by server configuration:

14,671

Solution 1

Once I changed the localhost to all granted. The sub-directories started working. Then I could get to http://192.168.1.36/dev with no problem.

<VirtualHost *:80>
 ServerName localhost
 DocumentRoot c:/wamp64/www
  <Directory  "c:/wamp64/www/">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Require all granted
  </Directory>
</VirtualHost>

Solution 2

Thanks for the tips. i was stuck with WampServer Version 3.0.6 64bit access (Apache Version 2.4.23) and this code worked.

<VirtualHost *:80>
   ServerName localhost
   DocumentRoot c:/wamp64/www
       <Directory  "c:/wamp64/www/">
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Require all granted
      </Directory>
</VirtualHost>
Share:
14,671
user1794918
Author by

user1794918

I have been programming with PHP for over two years now. I have started to learn Codeigniter as the framework of choice. I started out learning to code on Team Tree House but because of the projects, I was involved in. I quickly outgrew the site. It was not posting lessons at the pace I was learning. I was passed over for a project because I did not know OOP. So I found lynda.com and there started to learn what OOP is done and how to use it. That is where I was introduced to Codeigniter. So now I have a project of my own that I am building to increase my skills.

Updated on June 18, 2022

Comments

  • user1794918
    user1794918 almost 2 years

    Setting up a new dev server to work on PHP7 and get some training in and run across an impasse.

    I can access the server from localhost, 127.0.0.1 no problem. However when I go to another computer on the LAN. I get the dreaded:

    Forbidden

    You don't have permission to access /dev/lab.php on this server.

    So just to be on the safe side I used the new interface to see how the new setup would create a vhost. The vhost works fine locally but not from another PC on the LAN. The apache_error.log shows:

      [authz_core:error] [pid 3408:tid 928] [client 192.168.1.38:54761] AH01630: client denied by server configuration: C:/wamp64/www/dev/lab.php
    

    From everything I was reading it should have been a simple change of this

     <VirtualHost *:80>
         ServerName dev
         DocumentRoot c:/wamp64/www/dev
          <Directory  "c:/wamp64/www/dev/">
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Require all granted
          </Directory>
     </VirtualHost>
    

    Which you can see I changed the Require local to Require all granted. No JOY!

    Still getting Forbidden access on the other LAN PC.