Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    3

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

    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. #2
    Member vishwas's Avatar
    Join Date
    Feb 2004
    Location
    Front of PC
    Posts
    61

    Default

    If your trying to restart the apache service then try to stop and then Start it

    It works many time for me
    Life is short Have fun.

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    3

    Default

    Thanks for the reply. I've tried that actually, but it didn't work either.

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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)
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Replies: 21
    Last Post: 03-27-2010, 05:41 PM
  2. DSO to fast cgi
    By ASTRAPI in forum New User Questions
    Replies: 0
    Last Post: 01-06-2010, 03:15 PM
  3. Pitfalls after rebuild and switching PHP from DSO to suPHP
    By santrix in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-20-2009, 04:22 AM
  4. PHP DSO missing from drop down on SuExec/PHP page??
    By Reado in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 09-18-2009, 09:32 AM
  5. confuse with php as CGI or DSO
    By timltm in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-05-2008, 08:28 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube