KitsuneRamen
08-02-2007, 08:53 AM
So, I've done some extensive developing with my professor at my college, and he has been teaching me perl and all that mysql/database fun. I'm still really new, and its sometimes REALLY hard to troubleshoot things. After designing and building two websites with him on his server (which is very pretty sitting in its rack amongst the other bazillion that the school has) I thought I would be ready to work on my own. Of course I don't own my own server, so I'm paying yahoo for space (http://smallbusiness.yahoo.com), so he helped me set up a database there and helped me work on my perl on his server before uploading onto yahoo. (and it worked fine on his server) Unfortunately after coping all the necessary files and database information, it just didn't work. We got a lovely error message:
500 Internal Server Error
The server has encountered an internal error or misconfiguration and was unable to complete your request.
Yes, because that tells me jack squat. Anyways, I've been doing little test runs with bits and pieces of my coding and I think what is causing the problem is ImageMagick. I'm currently defining(?) it at the top of my perl:
#!/usr/bin/perl -w
#use strict;
use Image::Magick;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
use DBI;
my $q = new CGI;
my $time;
my $pname;
my $name=$q->param('name');
my $type=$q->param('type');
my $page=$q->param('page');
etc...
I tried doing this to test it (which worked just fine):
#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
print "<html><head><title>Perl</title></head>\n<body>\n";
print "testingtesting";
print "</body></html>";
and then added in the ImageMagick:
#!/usr/bin/perl -w
use Image::Magick;
print "Content-type: text/html\n\n";
print "<html><head><title>Perl</title></head>\n<body>\n";
print "testingtesting";
print "</body></html>";
and I get nada! I get the "website cannot display the page" error... which like I said means jack squat to me. Am I simply doing something terribly wrong? I feel like there is an easy fix.
PS: The first of the two websites I did is here: http://bio2.elmira.edu/WISE and the second I can't give out yet, since it hasn't been approved by the college quite yet.
500 Internal Server Error
The server has encountered an internal error or misconfiguration and was unable to complete your request.
Yes, because that tells me jack squat. Anyways, I've been doing little test runs with bits and pieces of my coding and I think what is causing the problem is ImageMagick. I'm currently defining(?) it at the top of my perl:
#!/usr/bin/perl -w
#use strict;
use Image::Magick;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
use DBI;
my $q = new CGI;
my $time;
my $pname;
my $name=$q->param('name');
my $type=$q->param('type');
my $page=$q->param('page');
etc...
I tried doing this to test it (which worked just fine):
#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
print "<html><head><title>Perl</title></head>\n<body>\n";
print "testingtesting";
print "</body></html>";
and then added in the ImageMagick:
#!/usr/bin/perl -w
use Image::Magick;
print "Content-type: text/html\n\n";
print "<html><head><title>Perl</title></head>\n<body>\n";
print "testingtesting";
print "</body></html>";
and I get nada! I get the "website cannot display the page" error... which like I said means jack squat to me. Am I simply doing something terribly wrong? I feel like there is an easy fix.
PS: The first of the two websites I did is here: http://bio2.elmira.edu/WISE and the second I can't give out yet, since it hasn't been approved by the college quite yet.