Learn about Centmin Mod LEMP Stack today
Register Now

[Solved] Remove instructions are wrong?

Discussion in 'Bug Reports' started by elargento, Jun 26, 2017.

  1. elargento

    elargento Member

    Jan 4, 2016
    Local Time:
    12:31 PM
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.11.10
    If you create a vhost without suffix (actually you forget to add it :oops:, for example "domain") remove instructions are the following:

    pure-pw userdel ftpuser
     rm -rf /usr/local/nginx/conf/conf.d/cd /usr/local/src/centminmod.conf
     rm -rf /usr/local/nginx/conf/conf.d/cd /usr/local/src/centminmod.ssl.conf
     rm -rf /usr/local/nginx/conf/ssl/cd /usr/local/src/centminmod/cd /usr/local/src/centminmod.crt
     rm -rf /usr/local/nginx/conf/ssl/cd /usr/local/src/centminmod/cd /usr/local/src/centminmod.key
     rm -rf /usr/local/nginx/conf/ssl/cd /usr/local/src/centminmod/cd /usr/local/src/centminmod.csr
     rm -rf /usr/local/nginx/conf/ssl/cd /usr/local/src/centminmod
     rm -rf /home/nginx/domains/cd /usr/local/src/centminmod
     service nginx restart
    Are they wrong? there is no mention of "domain" in those removal instructions

  2. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    1:31 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    When you created nginx vhost via centmin.sh menu option 2, 22 or nv command or acmetool.sh, you would of automatically created a nginx_addvhost and nginx_addvhost-remove-cmds logs in /root/centminlogs. You can find those logs via ls command listing in reverse ascending time the logs and filtered by nginx_addvhost filename using command below
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep addvhost

    Code (Text):
    ls -lahrt /root/centminlogs/ | grep addvhost
    -rw-r--r--.  1 root root 1.1K May 18 14:09 centminmod_1.2.3-eva2000.09.005_180517-140925_nginx_addvhost-remove-cmds-domain.com.log
    -rw-r--r--.  1 root root 4.4K May 18 14:09 centminmod_1.2.3-eva2000.09.005_180517-140925_nginx_addvhost.log

    post to pastebin.com or gist.github.com, the contents of the relevant domain.com name logs for nginx_addvhost and nginx_addvhost-remove-cmds log files

    For example, in SSH use cat to ouput contents of /root/centminlogs/centminmod_1.2.3-eva2000.09.005_180517-140925_nginx_addvhost.log. Clear your SSH client window/buffer so only output is the contents of the file
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.005_180517-140925_nginx_addvhost.log

    Then copy and paste into Pastebin.com or Gists entry. If your SSH window scroll buffer isn't that large to get the whole contents of the install log, you can download file manually and copy and paste contents.
    Last edited: Jun 26, 2017