beginne ich viel gegoogelt wurde aber keine Lösung für diese zu finden, ich versuche Start nginx nach einer Grundkonfiguration, und ich erhalte den folgenden Fehler:nginx die Erlaubnis verweigert, wenn versuchen
Set 21 23:57:53 vps.medjy.ml nginx[21444]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Set 21 23:57:53 vps.medjy.ml nginx[21444]: nginx: [emerg] open() "/srv/www/medjey/logs/access.log" failed (13: Permission denied)
Set 21 23:57:53 vps.medjy.ml nginx[21444]: nginx: configuration file /etc/nginx/nginx.conf test failed
Set 21 23:57:53 vps.medjy.ml systemd[1]: nginx.service: control process exited, code=exited status=1
Set 21 23:57:53 vps.medjy.ml systemd[1]: Failed to start nginx - high performance web server.
Die Datei vhost/etc/nginx/sites-available/medjey sind dies unter gleichen:
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
## Load virtual host conf files. ##
include /etc/nginx/sites-enabled/*;
include /etc/nginx/conf.d/*.conf;
}
:
server {
listen 80 default;
server_name medjey;
access_log /srv/www/medjey/logs/access.log;
error_log /srv/www/medjey/logs/error.log;
root /srv/www/medjey/public_html;
location ~* \.php$ {
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
und die /etc/nginx/nginx.conf diese gleich sind
Ich habe bereits alle Berechtigungen und Besitzer geändert, aber es ist immer noch nicht der Service.
CentOS 7
Sorry, was ist der neue Servername dafür? Ich habe die gleichen Probleme auf FreeBSD. –