aseee has asked for the wisdom of the Perl Monks concerning the following question:

Monks

I am trying to upload my index.cgi file, whose code is:

#!/usr/bin/perl -w print "Content-type: text/html\r\n\r\n"; use Bio::Graphics; print "Hello there!<br />\nJust testing .<br />\n"; for ($i=0; $i<10; $i++) { print $i."<br />"; }

I installed the Bio::Graphics module at my server. when I use Bio::Graphics module in index.cgi then it shows:

Internal Server Error

The server encountered an internal error or misconfiguration and was u +nable to complete your request. Please contact the server administrator, webmaster@fi-pk.com and infor +m them of the time the error occurred, and anything you might have do +ne that may have caused the error. More information about this error may be available in the server error + log. Additionally, a 404 Not Found error was encountered while trying to us +e an ErrorDocument to handle the request.

with out use Bio::Graphics it works. please guide how to configure Bioperl at Web server side as they enable C compiler for me.

Replies are listed 'Best First'.
Re: Bioperl upload problem
by poj (Abbot) on Jul 17, 2013 at 08:29 UTC

    If you add CGI::Carp module you should see the error in your browser. Like this ;

    #!/usr/bin/perl -w use strict; use CGI ':standard'; use CGI::Carp 'fatalsToBrowser'; use Bio::Graphics; print header,start_html; print 'Hello there!<br/>Just testing.<br/>'; for my $i (0..9){ print $i.'<br/>'; } print end_html;
    poj
Re: Bioperl upload problem
by McA (Priest) on Jul 17, 2013 at 07:37 UTC

    Hi,

    please have a look at your web server error log. Herein you should see a message describing your problem.

    Best regards
    McA