Quantcast
Viewing latest article 3
Browse Latest Browse All 5

WordPress “You do not have permission to access this directory” error

I set up WordPress to run on my local windows box using apache virtual host. Once done with the installation I started getting “You do not have permission to access this directory” error. To solve this, add the default page to be displayed when a directory access is made, to your virtual host config.

<VirtualHost *:80>
    DocumentRoot "D:/projects/personal/wordpress-3.0.1/wordpress"
    ServerName alpha.com
		<Directory "D:/projects/personal/wordpress-3.0.1/wordpress">
		  DirectoryIndex index.php
		</Directory>
    ErrorLog "logs/alpha.com-error.log"
    CustomLog "logs/alpha.com-access.log" common
</VirtualHost>

Main thing to notice is DirectoryIndex index.php.

Read more about DirectoryIndex here.


Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

Viewing latest article 3
Browse Latest Browse All 5

Trending Articles