Start Wamp error You don't have permission to access/on the This server

Source: Internet
Author: User

After installing Wamp, install the online tutorial set virtual path, there is a problem, the same problem is caused by different reasons.

1, add listen corresponding port in httpd.conf, mine is 8080

2. httpd.conf remove the # in front of include conf/extra/httpd-vhosts.conf.

3, and then call localhost, the following error occurs:

forbiddenyou Don' t has permission to access/on the this server.

Workaround: Add in the httpd-vhosts.conf file below Conf\extra,

Note: The virtual directory should also write the directory access permissions, the following Blue section

<virtualhost *:8080>    documentroot D:/wamp/www/web    ServerName localhost     <directory "D:/wamp/www/aa" >        Options Indexes followsymlinks        Order allow,deny        allow from All        allowoverride    </Directory></VirtualHost>

6. LocalHost works, but there are new problems in running localhost:8080:

forbiddenyou Don' t has permission to access/on the this server.

7, and then also find a lot, much is to say what to allow the problem of all and so on. But no matter how I set it all is the problem.

Finally, it was found that adding the options Indexes followsymlinks back to execcgi would make sense.

<virtualhost *:8080>    documentroot D:/wamp/www/aa    ServerName localhost    < Directory "D:/wamp/www/aa" >        execcgi        Orderallow,deny        allow from all AllowOverride    All </Directory></VirtualHost>

Start Wamp error You don't have permission to access/on the This server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.