SSL Failed on cpanel server
Issue: If ssl service failed on Linux cpanel server while restarting, you can follow the below commands:While Restarting Cpanel it shows SSL service failed as :
===================================================================
Starting eximstats: [ OK ]
Starting cPanel services: [ OK ]
Starting cPanel Log services: [ OK ]
Starting pop3 services: [ OK ]
Starting cPanel Chat services:
Starting Melange Chat services:
Starting cPanel ssl services: [FAILED]
Starting mailman services: Starting Mailman’s master qrunner.
====================================================
Then just follow the below steps to solve the error:
1) Please check the stunnel version running on the Server / VPS by using the command “ps -aux | grep stunnel”
===================================================================
root@server [~]# ps -aux | grep stunnel
cpanel 23844 0.0 0.0 3832 1620 ? S Aug22 0:00 /usr/bin/stunnel-4.15local /usr/local/cpanel/etc/stunnel/default/stunnel.conf.run
root 1620 0.0 0.0 1432 444 pts/0 S Aug24 0:00 grep stunnel
===================================================================
Here the stunnel version is 4.15 “stunnel-4.15local”
2) Open stop stunnel file using vi and it will show the following contents:
===================================================================
root@server [~]# vi /usr/local/cpanel/etc/init/stopstunnel
#!/usr/bin/perl
killstunnel();
sub killstunnel {
system(”/scripts/ckillall -9 stunnel”);
system(”/scripts/ckillall -9 stunnel-3.22local”);
system(”/scripts/ckillall -9 stunnel-4.00local”);
system(”/scripts/ckillall -9 stunnel-4.02local”);
system(”/scripts/ckillall -9 stunnel-4.04local”);
system(”/scripts/ckillall -9 stunnel-4.05local”);
}
===================================================================
3) Copy the second last line and paste it below that line and change the stunnel version to 4.15 local. The file should look as :
===================================================================
root@server [~]# vi /usr/local/cpanel/etc/init/stopstunnel
#!/usr/bin/perl
killstunnel();
sub killstunnel {
system(”/scripts/ckillall -9 stunnel”);
system(”/scripts/ckillall -9 stunnel-3.22local”);
system(”/scripts/ckillall -9 stunnel-4.00local”);
system(”/scripts/ckillall -9 stunnel-4.02local”);
system(”/scripts/ckillall -9 stunnel-4.04local”);
system(”/scripts/ckillall -9 stunnel-4.05local”);
system(”/scripts/ckillall -9 stunnel-4.15local”);
}
===================================================================
Save and exit from the file.
4) Restart the cPanel and check if error persist.
===================================================================
Starting eximstats: [ OK ]
Starting cPanel services: [ OK ]
Starting cPanel Log services: [ OK ]
Starting pop3 services: [ OK ]
Starting cPanel Chat services:
Starting Melange Chat services:
Starting cPanel ssl services: [ OK ]
Starting mailman services: Starting Mailman’s master qrunner.
===========================================================