I just upload a simple script like this:
#!/usr/bin/perl
print "Hello,world!\n";
And after uploaded to my server, changed it to 755. But when executed, it will report internl server error. I tried the same script on 2 servers, and still the same problem.
What wrong with the script or the server?
if you run it as a CGI from a webbrowser it needs an http header printed first:
Code:#!/usr/bin/perl print "Content-type: text/html\n\n"; print "Hello,world!\n";
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks