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
    hostnamectl set-hostname
    set up /etc/hosts
    reconfigure all procedure by The Perfect Server guide uses the unless the ISPConfig 3.2

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

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

    Attached Files:

  2. I do:
    cd /tmp
    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

    I do not see where to use cerbot command to ask, renew certificate. 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 --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:
    cd /tmp
    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
    find / -xtype l|less
    find all broken link, locate link relative to ispconfig and delete it
    get last version
    wget -O ispconfig.tar.gz
    (ISPConfig Version: 3.2dev20201023)
    revoke my certificate:
    certbot revoke --cert-path /etc/letsencrypt/archive/
    seeing the last error on generate certificate I install this too:
    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,

Share This Page