We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Cant Login to VestaCP
Cant Login to VestaCP
Hi all,
New here but quite good technically (not an expert by any means though)
I have just installed VestaCP on to my CentOS 7 box and everything has gone smoothly. Except I can't login, I have tried following the steps here: viewtopic.php?f=10&t=14958 everything is fine except I got this when trying to set the password:
[root@js-master centos]# /usr/local/vesta/bin/v-change-user-password admin Password1
[root@js-master centos]# /usr/local/vesta/bin/v-check-user-password admin Password1
Error: password missmatch
Now, I have been told this is because VestaCP doesn't sync with the PAM or something within CentOS7? Is this correct? And is there a work around because I am having difficulties finding something.
nginx log:
2018/09/19 15:43:57 [error] 17726#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 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 15:43:59 [error] 17726#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 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 15:45:00 [error] 17726#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 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 15:45:03 [error] 17726#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 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 15:45:06 [error] 17726#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 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 15:49:20 [error] 1349#0: *8 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 16:16:42 [error] 11137#0: *3 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 16:17:06 [error] 11245#0: *3 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 16:17:11 [error] 11245#0: *8 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 16:17:41 [error] 1370#0: *3 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 16:18:00 [error] 1370#0: *8 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 16:19:06 [error] 1370#0: *20 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 20:11:58 [error] 1390#0: *3 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: 81.xxx.xxx.142, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 20:12:06 [error] 1390#0: *8 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: 81.xxx.xxx.142, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
system.log
2018-09-19 10:37:31 v-change-sys-hostname 'js-master.novalocal'
2018-09-19 10:37:31 v-generate-ssl-cert 'js-master.novalocal' 'removed email for privacy' 'US' 'California' 'San Francisco' 'Vesta Control Panel' 'IT'
2018-09-19 10:37:37 v-add-user 'admin' '******' 'removed email for privacy' 'default' 'System' 'Administrator'
2018-09-19 10:37:37 v-change-user-shell 'admin' 'bash'
2018-09-19 10:37:37 v-change-user-language 'admin' 'en'
2018-09-19 10:37:37 v-update-user-counters 'admin'
2018-09-19 10:37:37 v-rebuild-web-domains 'admin' 'no'
2018-09-19 10:37:37 v-add-sys-ip '10.0.0.23' '255.255.255.0' 'eth0'
2018-09-19 10:37:38 v-change-sys-ip-nat '10.0.0.23' '185.xxx.xxx.149'
2018-09-19 10:37:38 v-update-user-counters 'admin'
2018-09-19 10:37:38 v-rebuild-web-domains 'admin' 'no'
2018-09-19 10:37:38 v-change-sys-ip-nat '10.0.0.23' '185.xxx.xxx.149'
2018-09-19 10:37:39 v-add-database-host 'mysql' 'localhost' 'root' '******'
2018-09-19 10:37:39 v-add-database 'admin' 'default' 'default' '******' 'mysql'
2018-09-19 10:37:39 v-add-web-domain-backend 'admin' 'js-master.novalocal' 'default'
2018-09-19 10:37:39 v-add-web-domain 'admin' 'js-master.novalocal' '185.xxx.xxx.149' 'no'
2018-09-19 10:37:39 v-add-cron-job 'admin' '15' '02' 'limits.conf' 'limits.conf' 'limits.conf' 'sudo /usr/local/vesta/bin/v-update-sys-queue disk'
2018-09-19 10:37:39 v-add-cron-job 'admin' '10' '00' 'limits.conf' 'limits.conf' 'limits.conf' 'sudo /usr/local/vesta/bin/v-update-sys-queue traffic'
2018-09-19 10:37:40 v-add-cron-job 'admin' '30' '03' 'limits.conf' 'limits.conf' 'limits.conf' 'sudo /usr/local/vesta/bin/v-update-sys-queue webstats'
2018-09-19 10:37:40 v-add-cron-job 'admin' '*/5' 'limits.conf' 'limits.conf' 'limits.conf' 'limits.conf' 'sudo /usr/local/vesta/bin/v-update-sys-queue backup'
2018-09-19 10:37:40 v-add-cron-job 'admin' '10' '05' 'limits.conf' 'limits.conf' 'limits.conf' 'sudo /usr/local/vesta/bin/v-backup-users'
2018-09-19 10:37:40 v-add-cron-job 'admin' '20' '00' 'limits.conf' 'limits.conf' 'limits.conf' 'sudo /usr/local/vesta/bin/v-update-user-stats'
2018-09-19 10:37:40 v-add-cron-job 'admin' '*/5' 'limits.conf' 'limits.conf' 'limits.conf' 'limits.conf' 'sudo /usr/local/vesta/bin/v-update-sys-rrd'
2018-09-19 10:37:42 v-add-cron-vesta-autoupdate
2018-09-19 15:40:50 v-change-user-password 'admin' '******'
2018-09-19 15:41:34 v-change-user-password 'admin' '******'
2018-09-19 15:45:22 v-change-user-password 'admin' '******'
2018-09-19 16:16:52 v-change-user-password 'admin' '******'
2018-09-19 20:25:32 v-update-user-quota 'admin'
2018-09-19 20:26:19 v-change-user-password 'admin' '******'
2018-09-19 20:26:25 v-change-user-password 'admin' '******'
2018-09-19 20:34:09 v-change-user-password 'admin' '******'
I have removed IPs and e-mail addresses for security reasons. No Firewalls running except one which I have allowed the ports through incoming and outgoing on both TCP/UDP....
Any assistance would be greatly appreciated.
Kind Regards,
James
New here but quite good technically (not an expert by any means though)
I have just installed VestaCP on to my CentOS 7 box and everything has gone smoothly. Except I can't login, I have tried following the steps here: viewtopic.php?f=10&t=14958 everything is fine except I got this when trying to set the password:
[root@js-master centos]# /usr/local/vesta/bin/v-change-user-password admin Password1
[root@js-master centos]# /usr/local/vesta/bin/v-check-user-password admin Password1
Error: password missmatch
Now, I have been told this is because VestaCP doesn't sync with the PAM or something within CentOS7? Is this correct? And is there a work around because I am having difficulties finding something.
nginx log:
2018/09/19 15:43:57 [error] 17726#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 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 15:43:59 [error] 17726#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 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 15:45:00 [error] 17726#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 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 15:45:03 [error] 17726#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 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 15:45:06 [error] 17726#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 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 15:49:20 [error] 1349#0: *8 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 16:16:42 [error] 11137#0: *3 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 16:17:06 [error] 11245#0: *3 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 16:17:11 [error] 11245#0: *8 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 16:17:41 [error] 1370#0: *3 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 16:18:00 [error] 1370#0: *8 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 16:19:06 [error] 1370#0: *20 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: 185.xxx.xxx.116, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 20:11:58 [error] 1390#0: *3 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: 81.xxx.xxx.142, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
2018/09/19 20:12:06 [error] 1390#0: *8 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: 81.xxx.xxx.142, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "185.xxx.xxx.149:8083", referrer: "https://185.xxx.xxx.149:8083/login/"
system.log
2018-09-19 10:37:31 v-change-sys-hostname 'js-master.novalocal'
2018-09-19 10:37:31 v-generate-ssl-cert 'js-master.novalocal' 'removed email for privacy' 'US' 'California' 'San Francisco' 'Vesta Control Panel' 'IT'
2018-09-19 10:37:37 v-add-user 'admin' '******' 'removed email for privacy' 'default' 'System' 'Administrator'
2018-09-19 10:37:37 v-change-user-shell 'admin' 'bash'
2018-09-19 10:37:37 v-change-user-language 'admin' 'en'
2018-09-19 10:37:37 v-update-user-counters 'admin'
2018-09-19 10:37:37 v-rebuild-web-domains 'admin' 'no'
2018-09-19 10:37:37 v-add-sys-ip '10.0.0.23' '255.255.255.0' 'eth0'
2018-09-19 10:37:38 v-change-sys-ip-nat '10.0.0.23' '185.xxx.xxx.149'
2018-09-19 10:37:38 v-update-user-counters 'admin'
2018-09-19 10:37:38 v-rebuild-web-domains 'admin' 'no'
2018-09-19 10:37:38 v-change-sys-ip-nat '10.0.0.23' '185.xxx.xxx.149'
2018-09-19 10:37:39 v-add-database-host 'mysql' 'localhost' 'root' '******'
2018-09-19 10:37:39 v-add-database 'admin' 'default' 'default' '******' 'mysql'
2018-09-19 10:37:39 v-add-web-domain-backend 'admin' 'js-master.novalocal' 'default'
2018-09-19 10:37:39 v-add-web-domain 'admin' 'js-master.novalocal' '185.xxx.xxx.149' 'no'
2018-09-19 10:37:39 v-add-cron-job 'admin' '15' '02' 'limits.conf' 'limits.conf' 'limits.conf' 'sudo /usr/local/vesta/bin/v-update-sys-queue disk'
2018-09-19 10:37:39 v-add-cron-job 'admin' '10' '00' 'limits.conf' 'limits.conf' 'limits.conf' 'sudo /usr/local/vesta/bin/v-update-sys-queue traffic'
2018-09-19 10:37:40 v-add-cron-job 'admin' '30' '03' 'limits.conf' 'limits.conf' 'limits.conf' 'sudo /usr/local/vesta/bin/v-update-sys-queue webstats'
2018-09-19 10:37:40 v-add-cron-job 'admin' '*/5' 'limits.conf' 'limits.conf' 'limits.conf' 'limits.conf' 'sudo /usr/local/vesta/bin/v-update-sys-queue backup'
2018-09-19 10:37:40 v-add-cron-job 'admin' '10' '05' 'limits.conf' 'limits.conf' 'limits.conf' 'sudo /usr/local/vesta/bin/v-backup-users'
2018-09-19 10:37:40 v-add-cron-job 'admin' '20' '00' 'limits.conf' 'limits.conf' 'limits.conf' 'sudo /usr/local/vesta/bin/v-update-user-stats'
2018-09-19 10:37:40 v-add-cron-job 'admin' '*/5' 'limits.conf' 'limits.conf' 'limits.conf' 'limits.conf' 'sudo /usr/local/vesta/bin/v-update-sys-rrd'
2018-09-19 10:37:42 v-add-cron-vesta-autoupdate
2018-09-19 15:40:50 v-change-user-password 'admin' '******'
2018-09-19 15:41:34 v-change-user-password 'admin' '******'
2018-09-19 15:45:22 v-change-user-password 'admin' '******'
2018-09-19 16:16:52 v-change-user-password 'admin' '******'
2018-09-19 20:25:32 v-update-user-quota 'admin'
2018-09-19 20:26:19 v-change-user-password 'admin' '******'
2018-09-19 20:26:25 v-change-user-password 'admin' '******'
2018-09-19 20:34:09 v-change-user-password 'admin' '******'
I have removed IPs and e-mail addresses for security reasons. No Firewalls running except one which I have allowed the ports through incoming and outgoing on both TCP/UDP....
Any assistance would be greatly appreciated.
Kind Regards,
James
Re: Cant Login to VestaCP
Admin? Developers? Any answers?
Re: Cant Login to VestaCP
I have same problem, login fails and i see same errors in nginx-error.log when i try to login:
1577#0: *18 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: MyIPHere
--
Probably not related, but my system faced 100% disk full scenario..
1577#0: *18 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 126" while reading response header from upstream, client: MyIPHere
--
Probably not related, but my system faced 100% disk full scenario..