Sunday, June 29, 2008

Starting cPanel ssl services: [FAILED]

If you find following output in cpanel restart,

Starting cPanel ssl services: [FAILED]

Then check if the stunnel is running by following command,

ps ax | grep stunnel

This should show following output,

root@server1 [/etc/xinetd.d]# ps ax | grep stunnel
3919 ? S 0:00 /usr/bin/stunnel-4.04local /usr/local/cpanel/etc/stunnel/mycabundle/stunnel.conf.run
4281 pts/0 S 0:00 grep stunnel
root@server1 [/etc/xinetd.d]#

If it's just showing,

root@server1 [/etc/xinetd.d]# ps ax | grep stunnel
4281 pts/0 S 0:00 grep stunnel
root@server1 [/etc/xinetd.d]#

Then again restart cpanel and fire command tail -100 /var/log/messages

check why stunnel is failed. And then fix as per the error.

I got the error in messages,

Dec 17 19:10:42 server1 stunnel[1790]: stunnel 4.04 on i686-pc-linux-gnu PTHREAD+LIBWRAP with OpenSSL 0.9.7a Feb 19 2003
Dec 17 19:10:42 server1 stunnel[1790]: FD_SETSIZE=16384, file ulimit=1024 -> 500 clients allowed
Dec 17 19:10:42 server1 stunnel[1790]: Error binding pop3s to 0.0.0.0:995
Dec 17 19:10:42 server1 stunnel[1790]: bind: Address already in use
Dec 17 19:10:42 server1 cpanel: startstunnel startup failed

The reason is in file /etc/xinetd.d/pop3s it's set as desable = no it should be desable = yes

make these changes and then restart xinetd and cpanel....

No comments: