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.
Hostname and login to admin after fresh install
Hostname and login to admin after fresh install
I installed VestaCP on a server and i used hostname: somename.mysite.com (the domain is mine, but is on another server).
After a fresh install of VestaCP i receive an error:
"error: apache2 start failed" because of "Failed to start LSB: Apache2 web server."
I added in apache2.conf ServerName = localhost , restarted apache but still Vesta admin url is not loading.
https://postimg.org/image/n8iogjbtn/
If i add at registrar a nameserver somename.mysite.com pointing to server IP i will be able to login or what can be the problem?
After a fresh install of VestaCP i receive an error:
"error: apache2 start failed" because of "Failed to start LSB: Apache2 web server."
I added in apache2.conf ServerName = localhost , restarted apache but still Vesta admin url is not loading.
https://postimg.org/image/n8iogjbtn/
If i add at registrar a nameserver somename.mysite.com pointing to server IP i will be able to login or what can be the problem?
Re: Hostname and login to admin after fresh install
I have solved the apache issue by having the same hostname in these 2 files: /etc/hostname /etc/hosts
But still service vesta restart doesn't work, is weird that i see a Nginx error and i did not installed Nginx. I installed via VestaCP generator Apache + Php + Mysql (without Nginx and Clamav)
Code: Select all
root@hostname5:/home/user1# systemctl status vesta.service
vesta.service - LSB: starts the vesta control panel
Loaded: loaded (/etc/init.d/vesta; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2018-01-29 07:50:25 EET; 54s ago
Docs: man:systemd-sysv-generator(8)
Process: 2071 ExecStart=/etc/init.d/vesta start (code=exited, status=1/FAILURE)
Jan 29 07:50:25 hostname5.mysite.com systemd[1]: Starting LSB: starts the vesta control panel...
Jan 29 07:50:25 hostname5.mysite.com vesta[2071]: * Starting vesta-nginx vesta-nginx
Jan 29 07:50:25 hostname5.mysite.com vesta[2071]: nginx: [emerg] getpwnam("admin") failed in /usr/local/vesta/nginx/conf/nginx.conf:1
Jan 29 07:50:25 hostname5.mysite.com systemd[1]: vesta.service: Control process exited, code=exited status=1
Jan 29 07:50:25 hostname5.mysite.com systemd[1]: Failed to start LSB: starts the vesta control panel.
Jan 29 07:50:25 hostname5.mysite.com systemd[1]: vesta.service: Unit entered failed state.
Jan 29 07:50:25 hostname5.mysite.com systemd[1]: vesta.service: Failed with result 'exit-code'.
Code: Select all
nginx: [emerg] getpwnam("admin") failed in /usr/local/vesta/nginx/conf/nginx.conf:1
Re: Hostname and login to admin after fresh install
please try to install it with apache2 and nginx. or is there a special reason you do not want to have caching?
Re: Hostname and login to admin after fresh install
I wanted to keep it simple, to avoid errors :)
Can i install Nginx only / or reinstall Vesta without fresh Ubuntu reload?
Can i install Nginx only / or reinstall Vesta without fresh Ubuntu reload?
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Hostname and login to admin after fresh install
You will have no problems using Nginx + Apache
Go ahead
Go ahead
Re: Hostname and login to admin after fresh install
I reinstalled fresh Ubuntu 16 and VestaCP with apache + nginx
I receive the same error
Should i do something with hostname5.mysite.com ? Is pointed to server IP ar registrar level.
I receive the same error
Code: Select all
root@hostname5:/etc# service vesta restart
Job for vesta.service failed because the control process exited with error code. See "systemctl status vesta.service" and "journalctl -xe" for details.
root@hostname5:/etc# systemctl status vesta.service
vesta.service - LSB: starts the vesta control panel
Loaded: loaded (/etc/init.d/vesta; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2018-01-29 22:24:57 EET; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 1731 ExecStart=/etc/init.d/vesta start (code=exited, status=1/FAILURE)
Jan 29 22:24:57 hostname5.mysite.com systemd[1]: Starting LSB: starts the vesta control panel...
Jan 29 22:24:57 hostname5.mysite.com vesta[1731]: * Starting vesta-nginx vesta-nginx
Jan 29 22:24:57 hostname5.mysite.com vesta[1731]: nginx: [emerg] getpwnam("admin") failed in /usr/local/vesta/nginx/conf/nginx.conf:1
Jan 29 22:24:57 hostname5.mysite.com systemd[1]: vesta.service: Control process exited, code=exited status=1
Jan 29 22:24:57 hostname5.mysite.com systemd[1]: Failed to start LSB: starts the vesta control panel.
Jan 29 22:24:57 hostname5.mysite.com systemd[1]: vesta.service: Unit entered failed state.
Jan 29 22:24:57 hostname5.mysite.com systemd[1]: vesta.service: Failed with result 'exit-code'.
root@hostname5:/etc#
Re: Hostname and login to admin after fresh install
Did something went wonky with your installation? Can you check to see if you have a user called "admin"? Because this line in your error is saying that it cannot assume that user: nginx: [emerg] getpwnam("admin") failed in /usr/local/vesta/nginx/conf/nginx.conf:1