Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Oct 2002
    Posts
    5

    Default Sudden 500 Internal Server Error on a 1yo script

    I don't understand what's going on here. I have a cgi script i bought that i've run for 4 yeasrs on many servers with no problems. It's been on this particular server for over a year now, working perfectly. All of a sudden, I"m getting '500 Internal Server bla bla bla' when i try to login to the admin interface.

    I've checked the error logs. All they say is '... malformed header from script. Bad header= bla ..."

    I've done a search on the forums of both the software maker and this site. I can't find anything that even remotely looks like this problem.

    A search of google turned up a similar problem but there was no solution given to the question in that forum.

    Has anybody ever seen this before? What could cause this.

    ASCII is not an issue, this was a working script 2 days ago.
    Owner, group and permissions are correct.
    It's only affecting 1 domain on a box that hosts 55 domains, and none of the others seem to have this problem.

    ??????????????????????????????
    Last edited by invisible; 04-27-2006 at 04:04 AM.

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

    Is it a perl CGI script or a PHP one? Has anything been upgraded on the server recently. If a perl script, could it be a perl module update recently?, if php, has php been upgraded or perhaps Zend Optimizer?

    Also, have to checked the account in question hasn't reached its disk quota, or that the disk itself isn't out of space. Check /tmp and ensure that's got plenty of space.
    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

  3. #3
    Member
    Join Date
    Oct 2002
    Posts
    5

    Default

    Thanks for the quick reply Chirpy. It's a perl script but usees mysql. In fact, 5 of the other sites have scripts that use mysql too. I just incresed the quoota but that didn't do anything.

    /tmp seems pretty empty. Only files are

    .font-unix
    .ICE-unix
    horde_32001.log
    mysql.sock
    sess_15f1fd0dc1a0e3565a74a0d20fa51e78
    total size 473Mb

    Is it possible that heavy mysql usage from the other sites could cause this?

  4. #4
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Have you checked error_log in /etc/httpd/logs, and also audit_log (and in fact all logs on the machine) to see if you can see more details? 9 times out of 10 this solves it for me.

  5. #5
    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 might also try adding this after the shebang at the top of the perl script:

    (shebang is the #/path/to/interpreter)

    use CGI::Carp qw(fatalsToBrowser);

    Then try browsing to it again and see if it throws anything into your browser other than the 500 error.
    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. Running a PHP script gives 500 internal server error
    By mikeg1971 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-05-2011, 06:57 PM
  2. 500 Internal Server Errors all of a sudden
    By fishfreek in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 04-16-2009, 04:54 PM
  3. !!Help~!! 500 Internal Server Error! (Perl Script)
    By goodgbb in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-01-2006, 04:06 AM
  4. All of a sudden 500 server error
    By jackie46 in forum cPanel and WHM Discussions
    Replies: 19
    Last Post: 11-15-2005, 07:20 PM
  5. Internal Server Error 500
    By ukpro in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-07-2004, 09:30 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube