Want to subscribe to topics you're interested in?
Become a Member

Nginx Please help me fix this error after delete domodoamin.com

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by kinhatula, Dec 3, 2018.

  1. kinhatula

    kinhatula New Member

    9
    2
    3
    Sep 6, 2017
    Ratings:
    +2
    Local Time:
    2:33 PM
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit ?
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: i.e. 1.13.3
    • PHP Version Installed: i.e. 5.6.37, 7.0.31, 7.1.21, 7.2.9
    Please help me fix this error after delete domodoamin.com
    Code (Text):
    [12:43][[email protected] ~]# systemctl status nginx.service -l
    
    [B]‚óŹ[/B] nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
    
       Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled)
    
       Active: [B]failed[/B] (Result: exit-code) since Mon 2018-12-03 12:43:14 +07; 29s ago
    
        Docs: man:systemd-sysv-generator(8)
    
      Process: 31061 ExecStart=/etc/rc.d/init.d/nginx start [B](code=exited, status=1/FAILURE)[/B]
    
    
    Dec 03 12:43:14 vip.hangmygiasi.net systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
    
    Dec 03 12:43:14 vip.hangmygiasi.net nginx[31061]: Starting nginx: nginx: [emerg] open() "/home/nginx/domains/hangmy.tk/log/access.log" failed (2: No such file or directory)
    
    Dec 03 12:43:14 vip.hangmygiasi.net nginx[31061]: [FAILED]
    
    Dec 03 12:43:14 vip.hangmygiasi.net systemd[1]: [B]nginx.service: control process exited, code=exited status=1[/B]
    
    Dec 03 12:43:14 vip.hangmygiasi.net systemd[1]: [B]Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.[/B]
    
    Dec 03 12:43:14 vip.hangmygiasi.net systemd[1]: [B]Unit nginx.service entered failed state.[/B]
    
    Dec 03 12:43:14 vip.hangmygiasi.net systemd[1]: [B]nginx.service failed.[/B]
    
    [12:43][[email protected] ~]# 
    
    
    

     
  2. eva2000

    eva2000 Administrator Staff Member

    37,227
    8,133
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,521
    Local Time:
    5:33 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    list exact steps/commands you used to delete the demodomain, as it seems you may have deleted more than just that demodomain vhost file/directories
     
  3. kinhatula

    kinhatula New Member

    9
    2
    3
    Sep 6, 2017
    Ratings:
    +2
    Local Time:
    2:33 PM
    thanks, i fixed
     
  4. Meirami

    Meirami Member

    120
    13
    18
    Dec 21, 2017
    Ratings:
    +37
    Local Time:
    9:33 AM
    How did you fix it?
     
  5. eva2000

    eva2000 Administrator Staff Member

    37,227
    8,133
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,521
    Local Time:
    5:33 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    You probably deleted /home/nginx/domains/hangmy.tk/log directory by accident so recreating it would fix it usually

    If you accidentally deleted the nginx vhost site directories in /home/nginx, you'll need to recreate them using below commands as root user in SSH just ensure log directory is owned by nginx user/group
    Code (Text):
    chown -R nginx:nginx /home/nginx/domains/hangmy.tk/log
    
     
..