Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Jul 2005
    Posts
    46

    Default apache and ssl problems

    I'm having a problem accessing backend ports 2083 & 2087 (ssl), both ports are open in the firewall, also I can't seem to get SSL going on a site with dedicated IP, I added the cert/key/ca-bundle and it installed okay with WHM, but it won't pull up in a browser at all, I stopped apache and ran /usr/local/apache/bin/apachectl startssl but get the following error:

    [Wed Aug 3 09:49:19 2005] [notice] caught SIGTERM, shutting down
    [Wed Aug 3 09:49:25 2005] [crit] (98)Address already in use: make_sock: could not bind to port 80
    [Wed Aug 3 09:49:40 2005] [crit] (98)Address already in use: make_sock: could not bind to port 80

    --------------------------------------

    also to get apache (and sometimes mysql) going after reboot, I have to run /etc/init.d/chkservd restart & /etc/init.d/httpd restart or it won't come up:

    [Wed Aug 3 09:51:35 2005] [notice] Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2635 configured -- resuming normal operations
    [Wed Aug 3 09:51:35 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Wed Aug 3 09:51:35 2005] [notice] Accept mutex: sysvsem (Default: sysvsem)

    Thanks in advance

  2. #2
    Member nickb's Avatar
    Join Date
    Feb 2005
    Location
    India
    Posts
    347

    Default

    [Wed Aug 3 09:49:19 2005] [notice] caught SIGTERM, shutting down
    [Wed Aug 3 09:49:25 2005] [crit] (98)Address already in use: make_sock: could not bind to port 80
    [Wed Aug 3 09:49:40 2005] [crit] (98)Address already in use: make_sock: could not bind to port 80
    What are you running on port 80?

    Code:
    netstat -anp | grep 80
    ...it will display the processrunning on port 80...kill it and restart apache

    also run
    Code:
    /usr/local/apache/bin/apachectl configtest
    Either Zero Or Hundred...

  3. #3
    Member
    Join Date
    Jul 2005
    Posts
    46

    Default

    netstat -anp | grep 80 shows only httpd is running on port 80 ,

    root@host [~]# /usr/local/apache/bin/apachectl configtest
    Syntax OK

    Thanks

  4. #4
    Member nickb's Avatar
    Join Date
    Feb 2005
    Location
    India
    Posts
    347

    Default

    Make sure httpd.conf have following lines

    <IfDefine SSL>
    Listen 80
    Listen 443
    </IfDefine>
    Either Zero Or Hundred...

  5. #5
    Member
    Join Date
    Jul 2005
    Posts
    46

    Default

    Yes, this is in there

    Quote Originally Posted by nickb
    Make sure httpd.conf have following lines

    <IfDefine SSL>
    Listen 80
    Listen 443
    </IfDefine>

  6. #6
    Member nickb's Avatar
    Join Date
    Feb 2005
    Location
    India
    Posts
    347

    Default

    It seems that something is hanging on port 80 ..may be an another instance of apache ..you need to first kill the process binded on port 80..then try restarting apache...and also have a close look to your httpd.conf
    Either Zero Or Hundred...

  7. #7
    Member
    Join Date
    Jul 2005
    Posts
    46

    Default

    Opened ticket with cpanel and problem solved by them (rather quickly I might add)

    problem with apache:

    There was an extra Listen directive in httpd.conf (how it got there i don't know?), removed & restarted apache, https works fine now

    problem with 2083/2087:

    System was configured to start stunnel from /usr/bin/stunnel-4.05local, which did not exist. Symlinked this file from /usr/bin/stunnel-4.04local, restarted stunnel, and cpanel is now listening on secure ports.

    Thanks

  8. #8
    Member nickb's Avatar
    Join Date
    Feb 2005
    Location
    India
    Posts
    347

    Default

    Great........
    Either Zero Or Hundred...

Similar Threads & Tags
Similar threads

  1. Huge Problems with Apache Rebuild | Apache Templates | Apache Conf Caching
    By hodfords in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 03-15-2010, 07:28 PM
  2. SSL Problems
    By rootuser in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-30-2005, 05:04 AM
  3. SSL Problems, please help!
    By coolbluenet in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-15-2004, 11:33 AM
  4. SSL / Shared SSL - Install Problems.. Please help
    By Budwron in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-19-2003, 12:46 PM
  5. SSL problems
    By butch in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-02-2003, 05:47 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube