Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: nginx "file not found" with index.php

$
0
0
with root /home/ottaviane/Sviluppo/Progetti/HTML-PHP/html;
it does'nt work! firefox tells "500 Internal Server Error"
and in nginx.log I can read:
2016/02/29 10:06:45 [crit] 5146#0: *3 stat() "/home/ottaviane/Sviluppo/Progetti/HTML-PHP/www.ottaviane.it/www/index.html" failed (13: Permission denied), client: 127.0.0.1, server: _, request: "GET /index.html HTTP/1.1", host: "localhost"


but if I set root /usr/share/nginx/html;
it works. The two directory are equals.

if I give sudo groups ottaviane
the system tells ottaviane : ottaviane adm cdrom sudo dip www-data plugdev lpadmin sambashare

/home/ottaviane/Sviluppo/Progetti/HTML-PHP/html; proprietary is root:root
/usr/share/nginx/html; proprietary is also root:root



why it?

thanks, bye.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>