-1

i created a svg for my homepage(logo).

I placed it in

/var/www/html/mm/pictures

The html is correct(syntax and path to the image) but it is only displaying alt text.

A quick look into /var/log/apache2/error.log gives following output:

[Sun Apr 05 15:14:54.570044 2015] [core:error] [pid 2114] (13)Permission denied: [client 84...] AH00132: file permissions deny server access: /var/www/html/mm/pictures/logo.svg, referer: http://84../

Permissions from logo.svg down to /var/www/html/mm :

logo.svg:

Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)

/var/www/html/mm/pictures:

Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)

/var/www/html/mm:

Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)

So, for me it looks just fine, world read access is granted so why is access for www-data denied?

Maybe something important to know:

logo.svg was created on my laptop(not the server) with Inkscape and transmitted over openvpn and ssh using securecopy scp to the home-directory pof my server and then from my server to /var/www/html/mm/pictures.

1 Answer 1

0

Maybe you need change owner of /var/www/html/mm?

sudo chown -R www-data:www-data /var/www/html/mm
7
  • Thank you but that is not logical. It's world readable and the HTML CSS files are displayed correctly. I think it could be a config issue because it is only at pictures or the image is encrypted??
    – Mike
    Apr 5, 2015 at 15:54
  • check if image with other extension (.png or .jpg) work correctly? maybe apache block .svg files? Apr 5, 2015 at 15:56
  • No PNG is also not working. It is not the extension, it is the accessibility of the www-data user which is denied
    – Mike
    Apr 5, 2015 at 15:57
  • Maybe problem in vhosts? Do you show your config? Apr 5, 2015 at 16:02
  • No please guide me what i need look up
    – Mike
    Apr 5, 2015 at 16:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .