The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

apache and ssl problems

Discussion in 'EasyApache' started by rviradia, Aug 3, 2005.

  1. rviradia

    rviradia Well-Known Member

    Joined:
    Jul 25, 2005
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    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. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    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
     
  3. rviradia

    rviradia Well-Known Member

    Joined:
    Jul 25, 2005
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    netstat -anp | grep 80 shows only httpd is running on port 80 ,

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

    Thanks
     
  4. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Make sure httpd.conf have following lines

    <IfDefine SSL>
    Listen 80
    Listen 443
    </IfDefine>
     
  5. rviradia

    rviradia Well-Known Member

    Joined:
    Jul 25, 2005
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    Yes, this is in there

     
  6. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    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
     
  7. rviradia

    rviradia Well-Known Member

    Joined:
    Jul 25, 2005
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    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. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Great........
     
Loading...

Share This Page