After configuring LETS ENCRYPT on the server, installing the digital certificate, I lost access to ZPANEL from the same server. That is, before setting up the digital certficado I accessed the ip of my server ZPANEL (for example typing in the browser directly 99.555.444.55) and after configuring certbot, when entering the ip of the server, it directs to the site that I installed the certificate . I no longer have access to ZPANEL!
I lost access also to phpmyadmin (before it was server ip / path / phpmyadmin, now it also directs to the site that I configured the script …)
I need to configure the certificate and can continue using ZPANEL and phpmyadmin
If you used certbot to auto configure your server, I’d suggest using the “rollback” option to recover the old config.
If not, can you explain what commands you did use ? Do you have a backup of your webserver config ? Without any other information ( sich as your OS, webserver type etc) it’s impossible to give accurate info.
Soon, it opened the configuration screen where I chose my site to apply HTTPS
(Which names would you like to activate HTTPS for?)
-> i select my domain
In sequence:
(PLease choose whether HTTPS access is required or optional)
-> Secure all requests redirect to secure HTTPS access
From what you have done, my understanding is that, you have overwritten the apache config files that ZPanel uses to access various things ( like zpanel, phpmyadmin, webmail ). Generally you shouldn’t run two different things ( certbot and zpanel) which modify the same files, without them understanding each other.
Do you have a backup of your apache config from before you ran “certbot --apache” ?
I’d try running “certbot rollback” and hopefully (as long as you haven’t changed anything else since) it will revert the files to how they were. If not I’d restore the apache configs from your backup.
If neither of the above work, then I’d need more details about your setup and config files.
Once you have things working again, then use certbot in the “certonly” mode to obtain a certificate - but not make changes to your apache config. You can then tell ZPanel about the cert files, and get the two working together nicely.
“Once you have things working again, then use certbot in the” certonly “mode to obtain a certificate - but do not make changes to your apache config.You can then tell ZPanel about the cert files, and get the two working together nicely.” ?
correct. It's slightly unusual that the files are in /public_html rather than in /var/www/public_html or /home/user/public_html but if it is just /public_html then all is good.
This is also assuming you want a single certificate for all four FQDN's. If you want 2 different certs ( one for bware.com.br / www.bware.com.br and the other for guiadobem.com.br / www.guiadobem.com.br ) then you should just include the certificates you want in each certificate, i.e.