Jump to content
Froxlor Forum
  • 0

13: Permission denied


cech

Question

Hallo,

 

ich teste gerade auf einem Ubuntu 14.04 Server Froxlor, soweit funktioniert auch alles.

Nachdem ich den Server neugestartet habe kann ich alles Website nicht mehr erreichen.

 

folgende Fehlermeldung stehen im log

2015/02/22 12:11:26 [crit] 1320#0: *1 stat() "/var/webs/name/domain.de=" failed (13: Permission denied), client: 192.168.10.222, server: domain.de, request: "GET / HTTP/1.1", host: "www.domain.de"
2015/02/22 12:11:26 [error] 1320#0: *1 open() "/var/webs/name/domain.de404" failed (13: Permission denied), client: 192.168.10.222, server: domain.de, request: "GET / HTTP/1.1", host: "www.domain.de"

ein

 nscd -i group

und

/etc/init.d/nginx restart

behebt zwar das Problem, allerding ist beim Neustart meines Testserver alles wieder weg.

 

Vielleicht k?nnte mir jemand ein kleinen Gedankenansto? verpassen, stehe gerade m?chtig auf dem Schlauch.

 

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

hey, vielen Dank

 

ich konnte das ganze jetzt etwas eingrenzen, nach einem Neustart

 

bekomme ich die oben beschrieben Fehlermeldung

2015/02/22 12:11:26 [crit] 1320#0: *1 stat() "/var/webs/name/domain.de=" failed (13: Permission denied), client: 192.168.10.222, server: domain.de, request: "GET / HTTP/1.1", host: "www.domain.de"

Logge ich mich nun in das Webpanel von Froxlor ei,n klicke dort auf "Configs neu schreiben" warte dann den cron ab funktioniert alles ...

Mar  5 13:35:09 web01 ter process /usr/sbin/nginx: libnss-mysql: Connection to server '127.0.0.1' failed: Can't connect to MySQL server on '127.0.0.1' (111)
Mar  5 13:35:09 web01 ter process /usr/sbin/nginx: libnss-mysql: Connection to server '127.0.0.1' failed: Can't connect to MySQL server on '127.0.0.1' (111)
Mar  5 13:35:09 web01 ter process /usr/sbin/nginx: libnss-mysql: Connection to server '127.0.0.1' failed: Can't connect to MySQL server on '127.0.0.1' (111)
Mar  5 13:35:09 web01 ter process /usr/sbin/nginx: libnss-mysql: Connection to server '127.0.0.1' failed: Can't connect to MySQL server on '127.0.0.1' (111)
Mar  5 13:35:09 web01 su: libnss-mysql: Connection to server '127.0.0.1' failed: Can't connect to MySQL server on '127.0.0.1' (111)
Mar  5 13:35:10 web01 /etc/mysql/debian-start[2701]: Upgrading MySQL tables if necessary.
Mar  5 13:35:11 web01 /usr/sbin/cron[2751]: (CRON) INFO (pidfile fd = 3)
Mar  5 13:35:11 web01 /usr/sbin/cron[2752]: (CRON) STARTUP (fork ok)
Mar  5 13:35:11 web01 /usr/sbin/cron[2752]: (CRON) INFO (Running @reboot jobs)
Mar  5 13:35:13 web01 /etc/mysql/debian-start[2712]: /usr/bin/mysql_upgrade: the '--basedir' option is always ignored
Mar  5 13:35:13 web01 /etc/mysql/debian-start[2712]: Looking for 'mysql' as: /usr/bin/mysql
Mar  5 13:35:13 web01 /etc/mysql/debian-start[2712]: Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
Mar  5 13:35:13 web01 /etc/mysql/debian-start[2712]: This installation of MySQL is already upgraded to 5.6.23, use --force if you still need to run mysql_upgrade
Mar  5 13:35:13 web01 /etc/mysql/debian-start[3019]: Checking for insecure root accounts.
Mar  5 13:35:13 web01 /etc/mysql/debian-start[3024]: Triggering myisam-recover for all MyISAM tables

Kann es daran liegen das nscd vor mysql starte wie von MeinerEiner vermutet ?

 

Finally, in /etc/init.d/nscd, edit the line starting # Required-Start to look like this:

# Required-Start:    $remote_fs $network mysql

habe ich so bearbeitet wie im Tutorial beschrieben ein $ fehlt da nicht zuf?llig ?

Link to comment
Share on other sites

kannst du bitte noch f?r mich schreiben was du in der /etc/runlevel.conf wie ge?ndert hast bitte? :D

 

?berall wo der Eintrag nscd steht ganz vorne die Zahl von X-Zahl auf 90 ?ndern - neustart, fertig

Link to comment
Share on other sites

According to the error-log, it seems that you are trying to access domain.tld/= which results in an 404 and then it tries to response with domain.tld/404 but it seems that there is the SLASH missing which results in a docroot like /var/webs/name/domain.de404 instead of /var/webs/name/domain.de/404

 

can you nopaste the domains vhost config please?

Link to comment
Share on other sites

According to the error-log, it seems that you are trying to access domain.tld/= which results in an 404 and then it tries to response with domain.tld/404 but it seems that there is the SLASH missing which results in a docroot like /var/webs/name/domain.de404 instead of /var/webs/name/domain.de/404

 

can you nopaste the domains vhost config please?

 

Hey kannst du vielleicht in deutsch schreiben mein englisch ist leider nicht so gut :)

server {
        listen 192.168.20.201:80;
        server_name domain.de *.domain.de;
        access_log /var/webs/logs/benutzer-domain.de-access.log combined;
        error_log /var/webs/logs/benutzer-domain.de-error.log error;
        root /var/webs/benutzer/domain.de/;

        location / {
                index index.php index.html index.htm;
                try_files $uri $uri/ @rewrites;
        }


        location @rewrites {
                rewrite ^ /index.php last;
        }

        location /awstats {
                alias /var/webs/benutzer/awstats/domain.de/;
                auth_basic "Restricted Area";
                auth_basic_user_file /etc/nginx/froxlor-htpasswd/1-4ebbdc7abc4ebc0d22a9ea2e8f70bf68.htpasswd;
        }

        location ~ ^/awstats-icon/(.*)$ {
                alias /usr/share/awstats/icon/$1;
        }

        location ~ ^(.+?\.php)(/.*)?$ {
                try_files $1 = 404;

                include /etc/nginx/fastcgi_params;
                fastcgi_split_path_info ^(.+\.php)(/.+)\$;
                fastcgi_param SCRIPT_FILENAME $document_root$1;
                fastcgi_param PATH_INFO $2;
                fastcgi_pass unix:/var/php5-sockets/benutzer-domain.de-php-fpm.socket;
                fastcgi_index index.php;
        }


}

Ja mir kam das auch schon etwas komisch vor aber so wie es aussieht passt alles oder ?

Link to comment
Share on other sites

Hallo,

 

das klingt nach dem Problem was ich auch mit Debian Jessie hatte. Dort war es die Boot-Order. Schau dir mal den Start-Vorgang deines Systems an ob dort alles korrekt hochgefahren wird.

 

Hier der Link zu meinem Problem und eine L?sung: http://forum.froxlor.org/index.php/topic/12910-debian-jessie-nscd-mysql-nginx-und-php5-fpm-rc2-bootorder/

 

Vielleicht ist das des R?tsels L?sung  ;)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...