Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Hostname and login to admin after fresh install

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
dndr38r
Posts: 14
Joined: Thu Jun 30, 2016 6:39 pm

Os: Ubuntu 15x
Web: apache + nginx
Hostname and login to admin after fresh install
  • Quote

Post by dndr38r » Sun Jan 28, 2018 5:16 pm

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?
Top

dndr38r
Posts: 14
Joined: Thu Jun 30, 2016 6:39 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Hostname and login to admin after fresh install
  • Quote

Post by dndr38r » Mon Jan 29, 2018 5:59 am

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
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: Hostname and login to admin after fresh install
  • Quote

Post by ScIT » Mon Jan 29, 2018 6:28 am

please try to install it with apache2 and nginx. or is there a special reason you do not want to have caching?
Top

dndr38r
Posts: 14
Joined: Thu Jun 30, 2016 6:39 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Hostname and login to admin after fresh install
  • Quote

Post by dndr38r » Mon Jan 29, 2018 10:05 am

I wanted to keep it simple, to avoid errors :)

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

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Hostname and login to admin after fresh install
  • Quote

Post by mehargags » Mon Jan 29, 2018 11:42 am

You will have no problems using Nginx + Apache
Go ahead
Top

dndr38r
Posts: 14
Joined: Thu Jun 30, 2016 6:39 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Hostname and login to admin after fresh install
  • Quote

Post by dndr38r » Mon Jan 29, 2018 8:28 pm

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

noogen
Posts: 66
Joined: Thu Jan 05, 2017 9:20 pm

Re: Hostname and login to admin after fresh install
  • Quote

Post by noogen » Wed Feb 07, 2018 2:56 am

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
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password