500 Internal Server Error after a server's migration
Re: 500 Internal Server Error after a server's migration
no sorry this is a label but I have Demian :)skurudo wrote:How did you install VestaCP: full install or with advanced options?
Full install before Changed the IP because a datacenter migration's
Re: 500 Internal Server Error after a server's migration
Search your old IP, may be you changed not all old records?sanna wrote:no sorry this is a label but I have Demian :)
Full install before Changed the IP because a datacenter migration's
Code: Select all
find /etc -type f -name "*" | xargs grep "old-ip-here"
Code: Select all
find /usr/local/vesta/ -type f -name "*" | xargs grep "old-ip-here"
Re: 500 Internal Server Error after a server's migration
skurudo wrote:Search your old IP, may be you changed not all old records?sanna wrote:no sorry this is a label but I have Demian :)
Full install before Changed the IP because a datacenter migration's
Code: Select all
find /etc -type f -name "*" | xargs grep "old-ip-here"
Code: Select all
find /usr/local/vesta/ -type f -name "*" | xargs grep "old-ip-here"
SpoilerShow
root@srv1:~# find /etc -type f -name "*" | xargs grep "104.194.14.77"
/etc/apache2/mods-enabled/rpaf.conf: # old ip 104.194.14.77
/etc/iptables.rules:-A INPUT -s 104.194.14.77/32 -j ACCEPT
root@srv1:~# find /usr/local/vesta/ -type f -name "*" | xargs grep "104.194.14.77"
/usr/local/vesta/data/users/admin/history.log:ID='5' DATE='2015-03-06' TIME='16:40:37' CMD='added system ip address 104.194.14.77' UNDO=''
/usr/local/vesta/log/nginx-error.log.1:PHP message: PHP Notice: Undefined index: LANGUAGE in /usr/local/vesta/web/login/index.php on line 38" while reading response header from upstream, client: 95.247.124.66, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083"
/usr/local/vesta/log/nginx-error.log.1:2015/03/15 19:07:41 [error] 2772#0: *278 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/15 19:08:01 [error] 2772#0: *269 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:PHP message: PHP Notice: Undefined index: LANGUAGE in /usr/local/vesta/web/login/index.php on line 38" while reading response header from upstream, client: 95.247.124.66, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083"
/usr/local/vesta/log/nginx-error.log.1:2015/03/15 19:09:56 [error] 2782#0: *19 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:PHP message: PHP Notice: Undefined index: LANGUAGE in /usr/local/vesta/web/login/index.php on line 38" while reading response header from upstream, client: 95.247.124.66, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/list/mail/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/15 19:29:48 [error] 2782#0: *22 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:PHP message: PHP Notice: Undefined index: LANGUAGE in /usr/local/vesta/web/login/index.php on line 38" while reading response header from upstream, client: 213.213.84.212, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083"
/usr/local/vesta/log/nginx-error.log.1:2015/03/16 10:43:18 [error] 2762#0: *11 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 213.213.84.212, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/16 10:43:25 [error] 2762#0: *11 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 213.213.84.212, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/16 18:23:59 [error] 2778#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/reset/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/16 18:24:06 [error] 2778#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/16 18:25:09 [error] 2778#0: *6 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/17 17:47:29 [error] 2774#0: *9 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/reset/"
/etc/apache2/mods-enabled/rpaf.conf: # old ip 104.194.14.77
/etc/iptables.rules:-A INPUT -s 104.194.14.77/32 -j ACCEPT
root@srv1:~# find /usr/local/vesta/ -type f -name "*" | xargs grep "104.194.14.77"
/usr/local/vesta/data/users/admin/history.log:ID='5' DATE='2015-03-06' TIME='16:40:37' CMD='added system ip address 104.194.14.77' UNDO=''
/usr/local/vesta/log/nginx-error.log.1:PHP message: PHP Notice: Undefined index: LANGUAGE in /usr/local/vesta/web/login/index.php on line 38" while reading response header from upstream, client: 95.247.124.66, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083"
/usr/local/vesta/log/nginx-error.log.1:2015/03/15 19:07:41 [error] 2772#0: *278 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/15 19:08:01 [error] 2772#0: *269 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:PHP message: PHP Notice: Undefined index: LANGUAGE in /usr/local/vesta/web/login/index.php on line 38" while reading response header from upstream, client: 95.247.124.66, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083"
/usr/local/vesta/log/nginx-error.log.1:2015/03/15 19:09:56 [error] 2782#0: *19 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:PHP message: PHP Notice: Undefined index: LANGUAGE in /usr/local/vesta/web/login/index.php on line 38" while reading response header from upstream, client: 95.247.124.66, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/list/mail/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/15 19:29:48 [error] 2782#0: *22 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:PHP message: PHP Notice: Undefined index: LANGUAGE in /usr/local/vesta/web/login/index.php on line 38" while reading response header from upstream, client: 213.213.84.212, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083"
/usr/local/vesta/log/nginx-error.log.1:2015/03/16 10:43:18 [error] 2762#0: *11 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 213.213.84.212, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/16 10:43:25 [error] 2762#0: *11 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 213.213.84.212, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/16 18:23:59 [error] 2778#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/reset/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/16 18:24:06 [error] 2778#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/16 18:25:09 [error] 2778#0: *6 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/17 17:47:29 [error] 2774#0: *9 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/reset/"
They changed IP on december 2015
thanks
Last edited by skurudo on Thu Jan 21, 2016 10:44 am, edited 1 time in total.
Reason: spoiler
Reason: spoiler
Re: 500 Internal Server Error after a server's migration
thanks Skurudo:skurudo wrote:Search your old IP, may be you changed not all old records?sanna wrote:no sorry this is a label but I have Demian :)
Full install before Changed the IP because a datacenter migration's
Code: Select all
find /etc -type f -name "*" | xargs grep "old-ip-here"
Code: Select all
find /usr/local/vesta/ -type f -name "*" | xargs grep "old-ip-here"
root@srv1:~# find /etc -type f -name "*" | xargs grep "104.194.14.77"
/etc/apache2/mods-enabled/rpaf.conf: # old ip 104.194.14.77
/etc/iptables.rules:-A INPUT -s 104.194.14.77/32 -j ACCEPT
root@srv1:~# find /usr/local/vesta/ -type f -name "*" | xargs grep "104.194.14.77"
I found only the old logs file
They changed IP on december 2015
thanks
Last edited by sanna on Thu Jan 21, 2016 10:50 am, edited 2 times in total.
Re: 500 Internal Server Error after a server's migration
Try to Rebulid web.
Re: 500 Internal Server Error after a server's migration
Possible it is a Ioncube Loader issue ? Because I changed IPskurudo wrote:Try to Rebulid web.
I need to reinstall again
thanks for support Skurudo
Re: 500 Internal Server Error after a server's migration
Great idea! But do you have encoded script with ip-binding?sanna wrote: Possible it is a Ioncube Loader issue ? Because I changed IP
I need to reinstall again
You can see in console what's with iouncude:
Code: Select all
php -v
Re: 500 Internal Server Error after a server's migration
Yesskurudo wrote:Great idea! But do you have encoded script with ip-binding?sanna wrote: Possible it is a Ioncube Loader issue ? Because I changed IP
I need to reinstall again
You can see in console what's with iouncude:Code: Select all
php -v
php -v
PHP 5.4.45-0+deb7u2 (cli) (built: Oct 17 2015 09:01:48)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with the ionCube PHP Loader v4.7.4, Copyright (c) 2002-2014, by ionCube Ltd.
I think the problem is in PHP I receive Bad Gateway Error :
502 Bad Gateway
on Phpmyadmin http://172.245.218.82/phpmyadmin/
many thanks
Re: 500 Internal Server Error after a server's migration
502 Bad Gateway - your server can't receive answer from webserversanna wrote: I think the problem is in PHP I receive Bad Gateway Error :
502 Bad Gateway
on Phpmyadmin http://172.245.218.82/phpmyadmin/
Try to raise memory_limit in your php.ini and check.
Re: 500 Internal Server Error after a server's migration
I have no limitskurudo wrote:502 Bad Gateway - your server can't receive answer from webserversanna wrote: I think the problem is in PHP I receive Bad Gateway Error :
502 Bad Gateway
on Phpmyadmin http://172.245.218.82/phpmyadmin/
Try to raise memory_limit in your php.ini and check.
; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = -1