Page 1 of 1

Hostname and login to admin after fresh install

Posted: Sun Jan 28, 2018 5:16 pm
by dndr38r
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?

Re: Hostname and login to admin after fresh install

Posted: Mon Jan 29, 2018 5:59 am
by dndr38r
I have solved the apache issue by having the same hostname in these 2 files: /etc/hostname /etc/hosts

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'.
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

nginx: [emerg] getpwnam("admin") failed in /usr/local/vesta/nginx/conf/nginx.conf:1

Re: Hostname and login to admin after fresh install

Posted: Mon Jan 29, 2018 6:28 am
by ScIT
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

Posted: Mon Jan 29, 2018 10:05 am
by dndr38r
I wanted to keep it simple, to avoid errors :)

Can i install Nginx only / or reinstall Vesta without fresh Ubuntu reload?

Re: Hostname and login to admin after fresh install

Posted: Mon Jan 29, 2018 11:42 am
by mehargags
You will have no problems using Nginx + Apache
Go ahead

Re: Hostname and login to admin after fresh install

Posted: Mon Jan 29, 2018 8:28 pm
by dndr38r
I reinstalled fresh Ubuntu 16 and VestaCP with apache + nginx
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#
Should i do something with hostname5.mysite.com ? Is pointed to server IP ar registrar level.

Re: Hostname and login to admin after fresh install

Posted: Wed Feb 07, 2018 2:56 am
by noogen
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