hello am using centos 5.3 with kloxo panel

everything was fine but last night when i was updating my site i do not know i got first error when i try to access my site

script everything is ok www.w3scan.net www.dl4fun.com

Forbidden

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

please help i checked httpd it seems to be ok

my httpd.conf

#<VirtualHost *:80>
#   ServerName www.domain.tld
#   ServerPath /domain
#   DocumentRoot /home/user/domain
#   DirectoryIndex index.html index.htm index.shtml default.cgi default.html default.htm
#</VirtualHost>

i uninstall apache and installed again now i have still now access

Index of /

i modify apache welcome.conf to remove apache test page

help

link|improve this question
did you do a ls -l of the DocumentRoot folder(/home/user/)?? Have you checked the apache error log(/var/log/apache/error.log)?? I am guessing you did a svn update on the directory root and it updated the permissions of the folder... – Anand Jeyahar May 22 '11 at 4:50
i uninstall apache and installed again now i have still now access Index of / i modify apache welcome.conf to remove apache test page help – zahid May 22 '11 at 5:17
Stop doing things randomly..or better think and write down the steps you are going to do and then do them... I think you are better of asking questions in the irc.. – Anand Jeyahar May 22 '11 at 7:43
1  
Are your lines in httpd.conf really all commented out (leading #)? This would explain a lot. – Axel Knauf May 22 '11 at 9:37
feedback

1 Answer

This can be one of two issues, ether
A) You don't have directory indexes enabled (add options +indexes to a .htaccess or modify your httpd.conf file
B) The directory Apache is trying to access doesn't have read permission. An easy way to do this without trawling through log files is switching to the Apache user (normally 'apache' or 'www-data') and trying to cd to the directory holding the files. If you get a permissions error then Apache won't be able to access those files. Switch back to root and do some chmod/chown-ing

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.