ERROR 500 - Internal Server Error- [ISPConfig + Ngingx]

Discussion in 'Installation/Configuration' started by winpeace, Feb 24, 2014.

  1. winpeace

    winpeace New Member

    I install my vps ispconfig and nginx with this article.
    http://www.howtoforge.com/perfect-server-centos-6.4-x86_64-nginx-dovecot-ispconfig-3-p7

    Everything is ok I upload my backup but I get internal server error my wordpress andjoomla site (Old vps on apache)
    I remove .htaccess main directory. I cant access wordpress admin page too. I create new wp-config again but nothing change.
    Please help me

    nano /var/log/nginx/error.log

    Code:
    PHP message: PHP Strict Standards:  Non-static method SimplePie_Misc::entities_decode() should not be called statically in /usr/local/ispconfig/interface/lib/$
    PHP message: PHP Strict Standards:  Non-static method SimplePie_Misc::entities_decode() should not be called statically in /usr/local/ispconfig/interface/lib/$
    PHP message: PHP Strict Standards:  Non-static method SimplePie_Misc::entities_decode() should not be called statically in /usr/local/ispconfig/interface/lib/$
    PHP message: PHP Strict Standards:  Non-static method SimplePie_Misc::entities_decode() should not be called statically in /usr/local/ispconfig/interface/lib/$
    PHP message: PHP Strict Standards:  Non-static method SimplePie_Misc::entities_decode() should not be called statically in /us
    2014/02/24 03:40:57 [error] 9686#0: *85 FastCGI sent in stderr: "mplePie_Misc::entities_decode() should not be called statically in /usr/local/ispconfig/inter$
    PHP message: PHP Strict Standards:  Non-static method SimplePie_Misc::entities_decode() should not be called statically in /usr/local/ispconfig/interface/lib/$
    PHP message: PHP Strict Standards:  Non-static method SimplePie_Misc::entities_decode() should not be called statically in /usr/local/ispconfig/interface/lib/$
    PHP message: PHP Strict Standards:  Non-static method SimplePie_Misc::entities_decode() should not be called statically in /usr/local/ispconfig/interface/lib/$
    PHP message: PHP Strict Standards:  Non-static method SimplePie_Misc::entities_decode() should not be called statically in /usr/local/ispconfig/interface/lib/$
    PHP message: PHP Strict Standards:  Non-static method SimplePie_Misc::entities_decode() should not be called statically in /usr/local/ispconfig/interface/lib/$
    PHP message: PHP Strict Standards:  Non-static method SimplePie_Misc::element_implode() should not be called statically, assuming $this from incompatible cont$
    PHP message: PHP Strict Standards:  Non-static method SimplePie_Misc::element_implode() should not be called statically, assuming $this from incompatible cont$
    2014/02/24 03:57:34 [error] 11798#0: *9 FastCGI sent in stderr: "PHP message: PHP Notice:  date_default_timezone_set(): Timezone ID 'MSK' is invalid in /usr/l$
    2014/02/24 04:07:03 [error] 11798#0: *23 open() "/usr/share/nginx/html/robots.txt" failed (2: No such file or directory), client: 64.246.165.190, server: _, r$
    2014/02/24 04:14:15 [error] 11798#0: *28 FastCGI sent in stderr: "PHP message: PHP Notice:  date_default_timezone_set(): Timezone ID 'MSK' is invalid in /usr/$
    2014/02/24 04:23:49 [error] 11798#0: *36 open() "/usr/share/nginx/html/cgi-sys/defaultwebpage.cgi" failed (2: No such file or directory), client: 180.76.6.29,$
    2014/02/24 04:28:02 [error] 11799#0: *66 FastCGI sent in stderr: "PHP message: PHP Notice:  date_default_timezone_set(): Timezone ID 'MSK' is invalid in /usr/$
    2014/02/24 04:32:13 [error] 11799#0: *117 FastCGI sent in stderr: "PHP message: PHP Notice:  date_default_timezone_set(): Timezone ID 'MSK' is invalid in /usr$
    
    

    nano /etc/nginx/sites-enabled/100-example.com.vhost
    Code:
    server {
            listen *:80;
    
    
            server_name example.com www.example.com;
    
            root   /var/www/example.com/web;
    
    
    
            index index.html index.htm index.php index.cgi index.pl index.xhtml;
    
    
    
            error_page 400 /error/400.html;
            error_page 401 /error/401.html;
            error_page 403 /error/403.html;
            error_page 404 /error/404.html;
            error_page 405 /error/405.html;
            error_page 500 /error/500.html;
            error_page 502 /error/502.html;
            error_page 503 /error/503.html;
            recursive_error_pages on;
            location = /error/400.html {
    
                internal;
            }
            location = /error/401.html {
    
                internal;
            }
            location = /error/403.html {
    
                internal;
            }
            location = /error/404.html {
    
                internal;
            }
            location = /error/405.html {
    
                internal;
            }
            location = /error/500.html {
    
                internal;
            }
            location = /error/502.html {
    
                internal;
            }
            location = /error/503.html {
    
                internal;
            }
    
            error_log /var/log/ispconfig/httpd/example.com/error.log;
            access_log /var/log/ispconfig/httpd/example.com/access.log combined;
       error_log /var/log/ispconfig/httpd/example.com/error.log;
            access_log /var/log/ispconfig/httpd/example.com/access.log combined;
    
            location ~ /\. {
                deny all;
                access_log off;
                log_not_found off;
            }
    
            location = /favicon.ico {
                log_not_found off;
                access_log off;
            }
    
            location = /robots.txt {
                allow all;
                log_not_found off;
                access_log off;
            }
    
            location /stats {
    
                index index.html index.php;
                auth_basic "Members Only";
                auth_basic_user_file /var/www/clients/client0/web1/web/stats/.htpasswd_stats;
            }
    
            location ^~ /awstats-icon {
                alias /usr/share/awstats/icon;
            }
    
            location ~ \.php$ {
                try_files /bff1c02782741cdbadb2545cbe1358a6.htm @php;
            }
    
            location @php {
                try_files $uri =404;
                include /etc/nginx/fastcgi_params;
                fastcgi_pass 127.0.0.1:9010;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                fastcgi_intercept_errors on;
            }
    
            location /cgi-bin/ {
                try_files $uri =404;
                include /etc/nginx/fastcgi_params;
                root /var/www/clients/client0/web1;
                gzip off;
                fastcgi_pass  unix:/var/run/fcgiwrap.socket;
                fastcgi_index index.cgi;
                fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                fastcgi_intercept_errors on;
            }
    
    
    
            location / {
    
            location / {
                            try_files $uri $uri/ /index.php?$args;
            }
    
     
    Last edited: Feb 24, 2014
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please take a look into the error.log of the websit, not the global one. and make sure that you changed the owner of all files in the web folder that you uploaded to the web user and client group of this website.

    and add these nginx directives in the nginx directives field of the website, if you use search engine friendly URL's in wordpress. as nginx can not read the rules from a .htaccess file:

    https://timmehosting.de/wordpress-hosting-auf-nginx
     
  3. winpeace

    winpeace New Member

    How to do this?
    Can you tel step by step please.

    nano /var/log/ispconfig/httpd/example.com/error.log

    Code:
    2014/02/24 11:47:58 [error] 1926#0: *17 open() "/var/www/example.com/web/error/404.html" failed (2: No such file or directory), client: 85.99.21.126, serv$
    2014/02/24 11:47:58 [error] 1926#0: *17 open() "/var/www/example.com/web/error/404.html" failed (2: No such file or directory), client: 85.99.21.126, serv$
    2014/02/24 11:47:58 [error] 1926#0: *17 rewrite or internal redirection cycle while internally redirecting to "/error/404.html", client: 85.99.21.126, server:$
    2014/02/24 11:48:02 [error] 1926#0: *18 open() "/var/www/example.com/web/error/404.html" failed (2: No such file or directory), client: 85.99.21.126, serv$
    2014/02/24 11:48:02 [error] 1926#0: *18 open() "/var/www/example.com/web/error/404.html" failed (2: No such file or directory), client: 85.99.21.126, serv$
    2014/02/24 11:48:02 [error] 1926#0: *18 open() "/var/www/example.com/web/error/404.html" failed (2: No such file or directory), client: 85.99.21.126, serv$
    2014/02/24 11:48:02 [error] 1926#0: *18 open() "/var/www/example.com/web/error/404.html" failed (2: No such file or directory), client: 85.99.21.126, serv$
    2014/02/24 11:48:02 [error] 1926#0: *18 open() "/var/www/example.com/web/error/404.html" failed (2: No such file or directory), client: 85.99.21.126, serv$
    2014/02/24 11:48:02 [error] 1926#0: *18 open() "/var/www/example.com/web/error/404.html" failed (2: No such file or directory), client: 85.99.21.126, serv$
    2014/02/24 11:48:02 [error] 1926#0: *18 open() "/var/www/example.com/web/error/404.html" failed (2: No such file or directory), client: 85.99.21.126, serv$
    2014/02/24 11:48:02 [error] 1926#0: *18 open() "/var/www/example.com/web/error/404.html" failed (2: No such file or directory), client: 85.99.21.126, serv$
    2014/02/24 11:48:02 [error] 1926#0: *18 open() "/var/www/example.com/web/error/404.html" failed (2: No such file or directory), client: 85.99.21.126, serv$
    2014/02/24 11:48:02 [error] 1926#0: *18 open() "/var/www/example.com/web/error/404.html" failed (2: No such file or directory), client: 85.99.21.126, serv$
    2014/02/24 11:48:02 [error] 1926#0: *18 rewrite or internal redirection cycle while internally redirecting to "/error/404.html", client: 85.99.21.126, server:$
    
     
    Last edited: Feb 24, 2014

Share This Page