|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
i have a cgi scipt which simply do a printf on a web page but when i place in at the cgi-bin & run..it says internal server error. when i do a perl ***.cgi, it is able to run.
i have already change the permission of the file to 755 but still cannot work... i would like to ask if any more configurations have to be done in order to run cgi-scripts on web. |
|
#2
|
|||
|
|||
|
Did you set the rights on the file? chmod 755 ***.cgi
------------------ Good luck, Bas ------------------ E-mail me at: b.vandermeijden@pecoma.nl |
|
#3
|
|||
|
|||
|
if (you can run the script via telnet simply by entering the scriptname ("./script.cgi)) {
I don't know } else { check the shebang-operator (this is the #!/usr/bin/perl line) if it is pointing to your perl-binary } |
|
#4
|
|||
|
|||
|
If the permission is fine, you just need to add the appropriate line before the output of your script:
print "Content-type: text/htmlnn"; |
|
#5
|
|||
|
|||
|
thanks guys but i'm still trying the solutions u all have offered...so wish me luck..
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Error in cgi scipt |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|