I have been inactive in the group for almost 6 months, but now I come back to follow the newest things in this beautiful Cpanel.
Basically, I have created a mail domain in the Mail tab, trying to use the Cloudflare SSL certificate for webmail. My website has Cloudflare protection, but to feed my curiosity I did Enable SSL for this mail domain and choose Let’s encrypt to be created.
Now the entire website is down and the website shows me an Invalid SSL certificate page.
I believe I made something wrong with Let’s encrypt at the time I issued the certificate.
Any thoughts?
No, not really, this are strong basics - you should know how to check error logs (which you currently do not need anymore, you need now to find the process sitting on port 8443). I’m not providing any help for this, please google “how to find process which blocks port on linux” on your own.
Ok, since this is a good chance to learn, here is my try to find out what process use the specific port.
First I ran this command
netstat -ano -p tcp
and here is the outcome
tcp 0 0 10.0.0.198:8443 0.0.0.0:* LISTEN 15621/nginx: master off (0.00/0/0)
So looks like the Nginx master server is taking over the port.
Next, I decided to kill the process just to see the result, so I ran this command and specify the PID
kill 15621
But still, the issue is not being resolved. I know I killed the Nginx master server. I should note that I am using a Cloudflare certificate, I kind having a sense that the problem comes from this part, but couldn’t find out where to start.
Not likely. Your certificate has nothing to do with port bindings. You may not know what you changed, but you have so have introduced conflicting directives that are instructing to different webservers to bind to the same port and address combination.
Do you have any backups that you can reference to aid you in locating the breaking change that you introduced to your configuration?
It looks like something is already listening on port 80.sudo netstat -plan | grep LISTEN should tell you what process is using that port, and you can go from there to deciding what to do..