Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

(13) Permission denied on Virtual Server

Status
Not open for further replies.

tcs777

Programmer
Jul 3, 2006
2
NL
Hi all,

I googled the world, but didn't find a solution.

I configured a virtual server as follows in httpd.conf:
<VirtualHost *:80>
DocumentRoot "/home/ServerName <Directory "/home/ Order allow,deny
Allow from all
Options +Indexes
</Directory>
</VirtualHost>

I created /home/
Index.html and its parent dirs areall chmodded +x.

Browse to httpd://gives me:
"(13)Permission denied: access to /index.html denied"

Browse to httpd://gives me:
"(13)Permission denied: access to / denied"

What else can be wrong?

Cheers, Tim
 
Hi

Tim said:
[red]I[/red]ndex.html and its parent dirs areall chmodded +x.
Are you sure about that "I" ? Normally should be lowercase.
Tim said:
Browse to http[red]d[/red]://www_domain_tld/index.html
Are you sure about that "d"? Normally should not be there.

I would try to [tt]su -[/tt] to the user with whos permissions Apache runs, then [tt]cat[/tt] that index file to see if the problem is at filesystem level.

Feherke.
 
index.html does not need x permission - it is not executed, merely read.

It would need read permission by whatever user apache is running under, either via group or user owner.

If index is owned by root it will fail. Be sure to chown of index.html to something in the same group as the apache account, or to the apache account itself

\0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top