apache wont startup after upgrade php4 to php5

Discussion in 'Apache' started by potato, May 4, 2007.

  1. #1
    Hi,

    i just upgraded php4 to php5.
    Everything looked fine, resarted apache from ssh, it said ok.
    I can access the directadmin, but all the accounts are not accesible.

    I received a system message from directadmin that sais that httpd is down.
    In directadmin i try to restart httpd, but it stays off.

    How can i see what is causing httpd from not starting up?

    Or what can i dis wrong?

    Somebody please helps me, i have about 35 sites that are down now (from clients) :(

    friendly greetings,
    tom
     
    potato, May 4, 2007 IP
  2. ndreamer

    ndreamer Guest

    Messages:
    339
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    if you followed the install correctly everything should work, if you have external extensions try removing them all and try starting the server again to see if that changes anything.
     
    ndreamer, May 4, 2007 IP
  3. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try running
    in shell, to see if it kicks up any errors. - It should say Syntax ok, if your config file isn't messed
     
    cyanide, May 4, 2007 IP
  4. phpbb24

    phpbb24 Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Which dist are you using? What gives apachectl configtest ?
     
    phpbb24, May 7, 2007 IP
  5. Noodles25

    Noodles25 Active Member

    Messages:
    75
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    73
    #5
    Have a look in your apache error log {apachedir}/logs/error.log

    Apache may be seg fault'ing when trying to start or something's going wrong
     
    Noodles25, May 7, 2007 IP
  6. Juan Pablo Olivera

    Juan Pablo Olivera Peon

    Messages:
    53
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Is the command "php -v" printing something in your shell?
    Is the libphp module loaded in httpd.conf?
    Can you run php scripts from command line like this: "php index.php"?
    Do "php -i | grep ini" to find where php.ini is. Is it a php.ini.bak or something like that on that location? If it is then backup up the current and mv php.ini.bak to php.ini
    Also if you have zend optimizer, eaccelerator installed comment them out from php.ini.

    Good luck ;)
     
    Juan Pablo Olivera, May 11, 2007 IP
  7. koolasia

    koolasia Banned

    Messages:
    1,413
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #7
    did u change any apache files manually just recheck the edits
     
    koolasia, May 11, 2007 IP
  8. sspt

    sspt Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Try the following:
    1 - Restart Apache
    2 - Open your site
    3 - Run 'cat /var/log/httpd/error_log'

    The last lines will give you the reason why it crashed
     
    sspt, May 11, 2007 IP