PDA

View Full Version : Nginx problem (13: Permission denied) | Don't load CSS & Images


brtk
09-20-2012, 02:47 AM
Hello,

I have Debian 6.0 and ISPManager Lite. I used Apache 2.2.16 from Debian repo and now install & enable nginx from Applications.. now I have problems with permissions - websites don't load css & images (ex. wordpress, only clean html).

Logs (phpmyadmin):

012/09/20 01:07:38 [error] 11979#0: *295 open() "/var/www/TEST/data/www/TEST.COM/myadmin/themes/original/img/b_selboard.png" failed (13: Permission denied), client: XX.XX.XX.XX, server: TEST.COM, request: "GET /myadmin/themes/original/img/b_selboard.png HTTP/1.1", host: "TEST.COM", referrer: "http://TEST.COM/myadmin/navigation.php?token=96961ef18f6096991e4f3497d1e85 d87"



TEST.COM - my domain
XX.XX.XX.XX - my client IP

How I can fix problem with permissions on my VPS?

brtk
09-20-2012, 04:30 PM
BTW: All work good on 81 port, ex mysitename.com:81 - nginx load images and others.

slava
09-20-2012, 09:16 PM
You should check file permissions to /var/www/TEST/data/www/ and bellow folders, it should be 755 (others must can read files, because nginx works with www or nobody user rights)