Apache fails to restart after ioncube edits

Discussion in 'Apache' started by [NUX]Brett, Feb 1, 2011.

  1. #1
    Hi everyone, wasn't sure if i should put it in php section or not... but since it's effecting apache. I'll post up here.

    When i put aa_ioncube.ini into /etc/php.d and do service httpd restart i get OK both times. Try to load php info file in my web browser... doesn't load. so do service httpd restart again.

    Stopping httpd: [FAILED]
    Starting httpd: [ OK ]

    I keep getting that until i remove aa_ioncube.ini from my /etc/php.d folder - Then apache works fine, any suggestions?
     
    [NUX]Brett, Feb 1, 2011 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Check your error logs for Apache. What does the output of this give you as well:

    
    php -v
    Code (markup):
    Chris
     
    RHS-Chris, Feb 1, 2011 IP
  3. [NUX]Brett

    [NUX]Brett Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Error log:
    [Tue Feb 01 16:25:10 2011] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
    Failed loading /usr/local/ioncube/ioncube_loader_lin_4.3.so: /usr/local/ioncube/ioncube_loader_lin_4.3.so: undefined symbol: zend_hash_add_or_update
    [Tue Feb 01 16:25:11 2011] [notice] caught SIGTERM, shutting down
    Failed loading /usr/local/ioncube/ioncube_loader_lin_4.3.so: /usr/local/ioncube/ioncube_loader_lin_4.3.so: undefined symbol: zend_hash_add_or_update
    [Tue Feb 01 16:25:12 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Tue Feb 01 16:25:12 2011] [notice] Digest: generating secret for digest authentication ...
    [Tue Feb 01 16:25:12 2011] [notice] Digest: done
    [Tue Feb 01 16:25:12 2011] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations



    PHP -v gives me:

    # php -v
    Failed loading /usr/local/ioncube/ioncube_loader_lin_4.3.so: /usr/local/ioncube/ioncube_loader_lin_4.3.so: undefined symbol: zend_hash_add_or_update
    PHP 5.2.10 (cli) (built: Nov 13 2009 11:24:03)
    Copyright (c) 1997-2009 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies
     
    [NUX]Brett, Feb 1, 2011 IP
  4. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #4
    You are using the wrong loader. You are asking it to use the 4.3 loader, when your php version is 5.2.10. You must use the ioncube_loader_lin_5.2.so file.

    Chris
     
    RHS-Chris, Feb 1, 2011 IP
  5. [NUX]Brett

    [NUX]Brett Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Seems to be working now thank you, also had to put it on line 0 at the start of php :)
     
    [NUX]Brett, Feb 1, 2011 IP