Re: Permission denied on sub directories for one VirtualHost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have this as the permissions:

ls -al css/total 24
drw-r--r-- 2 apache apache  4096 May 28 19:15 .
drwxr-xr-x 5 apache apache  4096 May 28 19:50 ..
-rw-r--r-- 1 apache apache 14817 May 28 19:15 style.css

But is the same as the DocumentRoot, which works fine.

ls -al htdocs | more
total 2928
drwxr-xr-x 5 apache apache  4096 May 28 19:50 .
drwxr-xr-x 6 apache apache  4096 Mar  6 03:18 ..
drw-r--r-- 2 apache apache  4096 May 28 19:15 css
-rw-r--r-- 1 apache apache 19459 May 28 19:50 stack.html
-rw-r--r-- 1 apache apache 23005 May 28 19:50 bio.html
...

And also in all the other VirtualHosts that I have on this server, so I am really confused ;(

Cheers
Norman

Graeme Fowler wrote:
On Wed, 2008-05-28 at 10:38 +0200, Norman Khine wrote:
I seem to have one problem with a virtual host that for the images and css sub-directory I get the following error:

[Wed May 28 19:27:07 2008] [error] [client 90.42.77.188] (13)Permission denied: access to /images/btn.jpg denied, referer: http://demo.domain.net/index.html [Wed May 28 19:27:32 2008] [error] [client 90.42.77.188] (13)Permission denied: access to /css/style.css denied

Unless I'm very much mistaken, the (13) in brackets indicates a
filesystem permissions issue, not configuration within your Apache
instance:

#define EACCES          13      /* Permission denied */

Make sure the directory (and parents) have appropriate permissions to
permit Apache to access it (them).

Graeme


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux