|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello,
I did a standard installation of Apache 1.3.12. Only extra option i added was --prefix="/usr/local/apache" Now, i keep trying to run my cgi scripts in Perl, from the cgi-bin/ directory and i keep getting an internal error! I look at my error logs and all i get is : [Wed Sep 20 15:07:17 2000] [error] (2)No such file or directory: exec of /usr/local/apache/cgi-bin/test.cgi failed Wed Sep 20 15:07:17 2000] [error] [client 192.168.0.101] Premature end of script headers: /usr/local/apache/cgi-bin/test.cgi What am i doing wrong? I have Perl installed (v5.something) Plesae any help would be most appreciated! ------------------ |
|
#2
|
|||
|
|||
|
>>[error] (2)No such file or directory: exec of /usr/local/apache/cgi-bin/test.cgi failed
The first line of your script is neither: #!/usr/bin/perl Nor #!/usr/local/bin/perl |
|
#3
|
|||
|
|||
|
This is exactly what i have as test.cgi:
#!/usr/bin/perl print "Content-type: text/htmlnn"; $x="10+20"; print "$x"; print "Hello!<br>" x 10; anything else that might be wrong? ------------------ |
|
#4
|
|||
|
|||
|
>>.(2)No such file or directory
According to (2) error, your first line is incorrect. Make sure there is no trailing space nor ^M. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > "Premature End of Script" errors...please help! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|