Apache: You don't have permission to access /wordpress/ on this server.
Hi.
When i write in the IP of the apache server in webbrowser the default apache page comes up. But when i write xx.xx.xx.xx/wordpress i get You don't have permission to access /wordpress/ on this server. Heres is the permission on the folder: Code:
drwxr-xr-x 5 root apache 4096 2009-08-19 16:04 wordpress Can someone help me? |
What happens if you use: http://x.x.x.x/wordpress/index.php
Check the apache error_log for details on this error. Regards |
Quote:
error_log: [Thu Aug 20 11:04:39 2009] [error] [client 32.53.34.166] (13)Permission denied: access to /wordpress/index.php denied |
What is the output of:
Code:
ls -ld /path/to/wordpress |
Quote:
|
What distro are you using? Could be a SELinux permissions problem.
|
Quote:
|
So it's more likely SELinux.
Running Code:
ls -Z /var/www/html/wordpress I'm not very familiar with SELinux but after reading a little, I think that yu should run Code:
chcon -R -h -t httpd_sys_content_t /var/www/html/wordpress |
Quote:
http://10.22.36.11/wordpress/index.php http://10.22.36.11/wordpress/ |
Take a look again at error_log to see if you find more on this error
|
Quote:
|
There is a virtualhost config like this in your appache configuration files:
Here you define the name of your site and the directory which contains the code for your web. Add this to the config file. (the section Directory) Code:
<VirtualHost 111.22.33.44> Although I have no idea for what do you need this - it worked for me. NOTE!! I did not examine what such configuration can cause on your web. Do this on your own responsibility. |
Quote:
As for the error, you have to add "+Indexes" in the Options directive for the Directory in question and maybe add index.php in the DirectoryIndex line as hua mentioned. |
Quote:
|
IMHO you don't have to reinstall the OS. If it's a generic mysql problem post it here, or create another thread for it.
If it's specific to WP, I think that you can read the wordpress documentation on how to add a table in mysql to use it with WP. Regards |
All times are GMT -5. The time now is 06:39 AM. |