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

Can't start http, nginx, dns after failed user delete

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
vesta_mtl
Posts: 70
Joined: Wed Dec 21, 2016 2:08 pm

Can't start http, nginx, dns after failed user delete
  • Quote

Post by vesta_mtl » Wed Dec 21, 2016 2:17 pm

I made the mistake of deleting a user from the command line using userdel -r username

I should have used v-delete-user

I then tried to correctly delete the user using v-delete-user and I got errors like this:

Code: Select all

chown: invalid user: ‘username:username’
chown: invalid group: ‘root:username’
/usr/local/vesta/func/domain.sh: line 176: /home/username/conf/web/httpd.conf: No such file or directory
chown: invalid group: ‘root:username’
chmod: cannot access ‘/home/username/conf/web/httpd.conf’: No such file or directory
/usr/local/vesta/func/domain.sh: line 176: /home/username/conf/web/nginx.conf: No such file or directory
chown: invalid group: ‘root:username’
chmod: cannot access ‘/home/username/conf/web/nginx.conf’: No such file or directory
Error: httpd restart failed
Since then, I cannot start httpd, nginx or dns.

Can anyone please tell me if there's a way to fix my mistake and restore the server?

Thank you.
Top

zakihardi
Posts: 1
Joined: Wed Feb 14, 2018 10:11 pm

Os: CentOS 6x
Web: apache + nginx
Re: Can't start http, nginx, dns after failed user delete
  • Quote

Post by zakihardi » Wed Feb 14, 2018 10:15 pm

try to check /etc/httpd/conf.d/vesta.conf and /etc/nginx/conf.d/vesta.conf and get rid of "include" line that refer to old user
Top


Post Reply
  • Print view

2 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