SOLVED: My mistake on ISPConfig 3.2 hostname

Discussion in 'Installation/Configuration' started by leonardo.saracini, Oct 23, 2020.

  1. I have a vps Ubuntu 20.04 server 64 bit
    I use The Perfect Server guide for Ubuntu 20.04
    I'm sorry I have do a stupid mistake: I use a wrong hostname on all procedure.
    Now I have change it
    Code:
    hostnamectl set-hostname good.dom.com
    set up /etc/hosts
    reconfigure all procedure by The Perfect Server guide uses the good.dom.com unless the ISPConfig 3.2

    what have I to do to reinstall or update the ISPConfig 3.2?

    sorry for stupid question.
    best regards,
    Leonardo
    p.s. I upload htf_report.txt
     

    Attached Files:

  2. I do:
    Code:
    cd /tmp
    wget https://www.ispconfig.org/downloads/ISPConfig-3.2.tar.gz
    tar xvfz ISPConfig-3.2.tar.gz
    cd ispconfig3_install/install
    php -q update.php
    
    have some problem on certboot but all seems to work.
    I check some more on certbot
     
  3. The ISPConfig interfaces are most empty: is a new installation so there is
    no client
    no sites
    no email
    is in vps so no DNS (all dns are in VPS interface. have I to set it in ISPConfig DNS too?)
    only server is set to good.domain.com

    I do not see where to use cerbot command to ask, renew certificate.
    certbot.services is working and no error
    there is no a cetificate installed in /etc/letsencrypt/...

    have I to do manual command in certbot to ask new certificate?
     
  4. I try this:
    certbot certonly --authenticator standalone -d good.domain.com --pre-hook "service apache2 stop" --post-hook "service apache2 start"
    and get the cerificate.
    before this operation there is not a live folder in /etc/letsencrypt.
    Now how can I install?
     
  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    That breaks the certificate setup done by ISPConfig. So you have to undo the damage to get ISPConfig back to working condition.
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Reinstall is done in the same way the install goes. So start from the beginning.
    I would start with installing the OS on an empty disk. If it is a virtual machine taking a disk image copy at this point is a good idea. Then it is easy to start again from a freshly installed OS, and installing another host goes by cloning the disk image.
     
  7. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You can simply change the hostname through the UI if I recall correctly, somewhere under System -> Server config.

    And if you edited it manually, just do a update with reconfigure services and your hostname should be changed correctly aswell. Run this for a update:
    Code:
    cd /tmp
    wget https://www.ispconfig.org/downloads/ISPConfig-3.2.tar.gz
    tar xvfz ISPConfig-3.2.tar.gz
    cd ispconfig3_install/install
    php -q update.php
     
  8. thank @ToOm and @Teleman.

    I have success. I have reinstall without rebuild the machine.

    drop mysql database ispconfig
    by locate I have found all ispconfig file and delete it.
    in apache conf find all configuration relate to ispconfig and delete
    using
    Code:
    find / -xtype l|less
    
    find all broken link, locate link relative to ispconfig and delete it
    get last version
    wget -O ispconfig.tar.gz https://www.ispconfig.org/downloads/ISPConfig-3-nightly.tar.gz
    (ISPConfig Version: 3.2dev20201023)
    revoke my certificate:
    Code:
    certbot revoke --cert-path /etc/letsencrypt/archive/good.domain.com/cert1.pem
    
    seeing the last error on generate certificate I install this too:
    Code:
    apt install python3-certbot-apache
    
    then at last
    php -q install.php
    and this time all go well: no worning and no error, certificate generate by ispconfig

    best regards,
    Leonardo
     

Share This Page