Internal Server Error

Discussion in 'Apache' started by ritesh416, Aug 25, 2010.

  1. #1
    Dear All,

    I am new to Apache. I am hosting a Web-server that process pdf documents using cgi-bin. The website is able to process small size (size <= 1 MB) PDF documents. But if a bigger Document is uploaded, the website fails to process and gives Internal Server Error with the following error message:

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    There is no syntax error in the perl code, as I am able to run the cgi-script using SSH.

    I tried changing the following parameters in httpd.conf file:
    MaxKeepAliveRequests to 0
    MaxRequestPerChild to 0

    Still it fails. I doubt it's memory allocation issue to every child process, but I am not sure which parameter to tweak. Any suggestion or pointer will be greatly appreciated.

    Best Regards,
    Ritesh
     
    ritesh416, Aug 25, 2010 IP
  2. Falter

    Falter Member

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    38
    #2
    Have you taken a log at the logfile? What does it say?
     
    Falter, Aug 26, 2010 IP
  3. ritesh416

    ritesh416 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Sorry for asking the dumb question, but what's the name of the log file, and where can I find it?
     
    ritesh416, Aug 26, 2010 IP
  4. Fremont

    Fremont Greenhorn

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    look in httpd.conf, log file name should be written somewhere, searh for "log" word.
     
    Fremont, Aug 26, 2010 IP
  5. ritesh416

    ritesh416 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hey,

    As you mentioned, I have found the log file from the httpd.conf file. It mentions the following error:

    [Fri Aug 27 10:15:16 2010] [warn] [client <IP Address> ] Timeout waiting for output from CGI script <Path to CGI-Bin Folder>/test1.pl, referer: <URL>l

    I guess there is some time-out issue. I changed Timeout parameter from 120 (seconds) to 1800 (seconds), but I still get the same error. Any other suggestion?

    I am getting much clear picture now, thanks for your helpful pointers.

    Best Regards,
    Ritesh
     
    ritesh416, Aug 26, 2010 IP