in reply to Re^2: Parse HTML content
in thread Parse HTML content

The first step when getting an internal server error would typically be to check the error log of the webserver.

The script goes fine in the terminal but as the html file is too large...

How large is the HTML?  Maybe the webserver process is running under a memory limit lower than your terminal user?   (assuming you've verified that the CGI script runs in principle...)

Replies are listed 'Best First'.
Re^4: Parse HTML content
by mailmeakhila (Sexton) on Mar 09, 2012 at 20:36 UTC
    How can i check if the webserver process is running under a memory limit lower than my teminal user?

      Depends on a variety of factors...  On newer Linux boxes you could, for example, do

      print qx(cat /proc/self/limits);

      from within your CGI script.  (And then compare it with the contents of /proc/self/limits when queried from the terminal.)