Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Member
    Join Date
    Feb 2007
    Posts
    79

    Default Internal server error after apache update

    Hi,

    I recompiled apache and now all php scripts give an internal server error


    WHM 11.2.0 cPanel 11.8.0-C15921
    CENTOS Enterprise 4.5 i686 - WHM X v3.1.0

    Thanks for any help

  2. #2
    Member
    Join Date
    Feb 2007
    Posts
    79

    Default

    Ok i have fixed this by downgrading php to 4.7.7 from 5.2.3

    Can anybody tell me what went wrong? i need to use php5 but i get an internal server error using it

    I also get this in all the accounts error_logs that use php:

    [04-Aug-2007 20:10:38] PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20020429//etc/ixed/ixed.4.4.lin' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429//etc/ixed/ixed.4.4.lin: cannot open shared object file: No such file or directory in Unknown on line 0
    Last edited by _Sam_; 08-04-2007 at 11:33 PM.

  3. #3
    Member
    Join Date
    Jan 2007
    Posts
    46

    Default

    Try using .htaccess in php 4 in order to use php5

    AddHandler application/x-httpd-php5 .php

    Also, try to upgrade to php 5.21 instead of php 5.23

  4. #4
    Member
    Join Date
    Aug 2005
    Posts
    13

    Default

    Exactly the same problem.

    But seems working fine with 5.2.0

    Tried 5.2.2, 5.2.3 : all php program give an Internal Error.

    Marc

  5. #5
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    Quote Originally Posted by _Sam_ View Post
    Ok i have fixed this by downgrading php to 4.7.7 from 5.2.3

    Can anybody tell me what went wrong? i need to use php5 but i get an internal server error using it

    I also get this in all the accounts error_logs that use php:

    [04-Aug-2007 20:10:38] PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20020429//etc/ixed/ixed.4.4.lin' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429//etc/ixed/ixed.4.4.lin: cannot open shared object file: No such file or directory in Unknown on line 0
    You are using the Source Guardian loader for php 4, you would need to upgrade the loader to 5.2 if you want to run SG on php5.

  6. #6
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    Quote Originally Posted by zella View Post
    Exactly the same problem.

    But seems working fine with 5.2.0

    Tried 5.2.2, 5.2.3 : all php program give an Internal Error.

    Marc
    After you upgrade to php5.2.3, check httpd.conf and be sure your php5 module did not get commented out.

    whats the output for this command?

    httpd configtest

  7. #7
    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

    I'm not sure whether cPanel have put in the workaround for the latest PHP SNAFU, but if you have phpsuexec enabled, then with PHP v5.2.3 you may need to rename /usr/bin/php-cgi to /usr/bin/php and then restart apache.
    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

  8. #8
    Member
    Join Date
    Aug 2005
    Posts
    13

    Default

    Hi,

    I tried to rename /usr/bin/php-cgi to /usr/bin/php but problem remains the same.

    When trying to execute a PHP program i receive an Internal Server Error 500

    Strange with the same cPanel release R15076 the result depends of the OS used.

    With a VPS Centos 4.5 all PHP 5.x.x give the Internal Server Error 500

    With a VPS FC4 all works fine till PHP 5.2.2, if i try to compile o 5.2.3 with the same options (always with phpsuexec) i receive the the Internal Server Error 500

    This takes a lot of time to compile and test.

    Marc

  9. #9
    Member
    Join Date
    Aug 2005
    Posts
    13

    Default

    Oups !

    Found a solution of this problem , helped with Eugene from knownhost.com

    If you try to compile with "phpsuexec" and have enabled the "security center" the option "Shell Fork Bomb Protection" you will receive the "Internal server error 500".

    I disabled the "Shell Fork Bomb protection" and all seems working fine.

    Again thanks to Eugene from knownhost.com

    Hoping this can help you.

    Regards,

    Marc

  10. #10
    Member
    Join Date
    Feb 2007
    Posts
    79

    Default

    Quote Originally Posted by jayh38 View Post
    You are using the Source Guardian loader for php 4, you would need to upgrade the loader to 5.2 if you want to run SG on php5.
    Hi, i dont use SG, ive never installed it

  11. #11
    Member
    Join Date
    Feb 2007
    Posts
    79

    Default

    Ok i have fixed the error posted above by removing from php.ini (they were there when i got the server):

    extension=/etc/ixed/ixed.4.4.lin
    zend_extension=/etc/ioncube/ioncube_loader_lin_4.4.so

  12. #12
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    Look in your php.ini and comment out the line for the module it is trying to load since you aren't using it. These will be at the very bottom.

  13. #13
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    Quote Originally Posted by _Sam_ View Post
    Ok i have fixed the error posted above by removing from php.ini (they were there when i got the server):

    extension=/etc/ixed/ixed.4.4.lin
    zend_extension=/etc/ioncube/ioncube_loader_lin_4.4.so

    The ioncube loader you may consider enabling. Many clients would use them and it would better to have it available server wide.

    You may just need just change the version to 5.2 since it most likely has all the loaders available at the location its pointing to. Also be sure ioncube is the very first item on the list.

    zend_extension=/etc/ioncube/ioncube_loader_lin_5.2.so

Similar Threads & Tags
Similar threads

  1. Internal Server Error on all sites after PHP update
    By rqsweat in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 11-16-2009, 07:13 AM
  2. WHM Easy Apache Internal Server Error
    By jedalaurin in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-29-2009, 02:31 AM
  3. Internal Server Error on all sites - CPanel Update / CentOS 4.5 Related
    By marsupillami in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-14-2007, 12:46 AM
  4. After update - Bandwitch - 500 Internal Server Error
    By folk in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-09-2004, 07:41 AM
  5. Counters all have internal server error after update to stable 25
    By krisdv in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-04-2004, 01:58 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube