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.

(98)Address already in use when switching PHP from CGI to DSO.

Discussion in 'General Discussion' started by afdg, Sep 8, 2008.

  1. afdg

    afdg Registered

    Joined:
    Jul 31, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I'm currently running PHP5 as CGI and PHP4 as DSO. I would like to switch that and use PHP5 as DSO and PHP4 as CGI.

    If I go to "Configure Suexec and PHP" and change things around to what I want it to be, all of a sudden, Apache cannot start and won't bind to port 80.

    If I try to restart it, I get the following in SSH: "httpd not running, trying to start
    (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs"

    If I go back to "Configure Suexec and PHP" and switch back to PHP5 as CGI and PHP4 as DSO, everything goes back to normal.

    Any idea what I should do?
     
  2. vishwas

    vishwas Well-Known Member

    Joined:
    Feb 9, 2004
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Front of PC
    If your trying to restart the apache service then try to stop and then Start it

    It works many time for me
     
  3. afdg

    afdg Registered

    Joined:
    Jul 31, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the reply. I've tried that actually, but it didn't work either.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You'll need to login to the root shell and stop apache and then check whether anything has bound to port 80 and stop that too:

    /etc/init.d/httpd stop
    netstat -lpn | grep 80


    Once checked:

    /scripts/restartsrv_httpd

    (beware of chkservd restarting httpd in the meantime. It might be prudent to stop chkservd beforehand and then restart it afterwards)
     
Loading...

Share This Page