It produced this output:
Encountered exception during recovery: certbot.errors.MisconfigurationError: nginx restart failed:
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error)
My web server is (include version): Ubuntu
The operating system my web server runs on is (include version): Ubuntu 22.04.3 LTS
My hosting provider, if applicable, is: hostinger
I can login to a root shell on my machine (yes or no, or I don't know): yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
no
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 1.21.0
again getting this error :Deploying certificate
Successfully deployed certificate for api.arvindpatilnilangekar.com to /etc/apache2/sites-available/api.arvindpatilnilangekar.com-le-ssl.conf
Successfully deployed certificate for www.api.arvindpatilnilangekar.com to /etc/apache2/sites-available/api.arvindpatilnilangekar.com-le-ssl.conf
Successfully deployed certificate for backend.diwise.uk to /etc/apache2/sites-available/backend.diwise.uk-le-ssl.conf
Successfully deployed certificate for www.backend.diwise.uk to /etc/apache2/sites-available/backend.diwise.uk-le-ssl.conf
Error while running apache2ctl configtest.
Action 'configtest' failed.
The Apache error log may have more information.
AH00526: Syntax error on line 25 of /etc/apache2/sites-enabled/api.arvindpatilnilangekar.com.conf:
Name duplicates previous WSGI daemon definition.
We were unable to install your certificate, however, we successfully restored your server to its prior configuration.
got this but my website didnt get any ssl
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/api.arvindpatilnilangekar.com-0001/fullchain.pem
Key is saved at: /etc/letsencrypt/live/api.arvindpatilnilangekar.com-0001/privkey.pem
This certificate expires on 2024-02-07.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.
If you like Certbot, please consider supporting our work by:
i have tried that but my error not got fixed
i am not getting my page now
and getting this error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at contact@arvindpatilnilangekar.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Hmm. I can reach your site using HTTP (port 80) although get a 404 Not Found for your home page. But, an internal server error is usually something like a 500 error.
What URL were you trying which got that error?
I see you have gotten many certs so you have no problem with that. In fact, you have gotten about 14 Let's Encrypt certs for this api domain in just the past few days (mixed with various other domain names).
Your problem is your Apache server is not configured properly.
And, your latest error is for port 80 (HTTP) which is not related to certificates at all. I am not sure what you want us to do. Please explain in more words.
I think you will be better off a Django forum. Maybe the one below
You don't have any problem getting Let's Encrypt certs which is our main focus. We often help with common server config. Maybe someone here will be willing to help but we do not see this very often on this forum.