|
#1
|
|||
|
|||
|
Goodafternoon,
Please excuse the CGI n00b question BUT, I just can't get it to run... Script in question - perl.pl #!/usr/bin/perl -w print "Hello, World.\n"; It is saved in my public_html/cgi-bin subdir When I attempt to run it using, via browser: mydomain.com/cgi-bin/perl.pl I receive an "Internal Server Error". What blatantly obvious thing am I doing wrong? Many thanks. |
|
#2
|
||||
|
||||
|
make sure you uploaded in the proper format, and check the permissions on the script. should be 755, most likely.
add: uploaded in ascii, not binary.
__________________
~dix |
|
#3
|
|||
|
|||
|
Yeah, script perms set to 0755, and FTP'd using ASCII switch -- still gettin' Internal Server Error.
Last edited by Shopgeek; 05-05-2008 at 06:07 PM. |
|
#4
|
||||
|
||||
|
Try adding the second line in the code below.
Code:
#!/usr/bin/perl -w print "Content-type: text/plain\n\n"; print "Hello, World.\n"; |
|
#5
|
|||
|
|||
|
That got it. Thanks GvilleRick.
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
All times are GMT -6. The time now is 04:25 AM.




13 Tips for Getting Help in Support Forums



