Hi,
I am posting this in the hopes that it helps someone. It has taken me all morning to find the answer.
fckeditor/editor/filemanager/browser/default/connectors/perl/connector.cgi refused to work for us. We are running Apache 1.3 on Redhat Enterprise 3. The non-helpful error message in the apache log was:
[error] (2)No such file or directory: exec of /home/httpd/htdocs/editpage/fckeditor/editor/filemanager/browser/default/connectors/perl/connector.cgi failed
[error] Premature end of script headers: /home/httpd/htdocs/editpage/fckeditor/editor/filemanager/browser/default/connectors/perl/connector.cgi
After much toil and trouble, we discovered that apache will not exec a DOS-type cgi script without a -w in the declaration line. In other words, if the first line of the the cgi is:
#!/usr/bin/perl
The script will fail with the error message above, if the file is a DOS-type file. If you add -w, as in:
#!/usr/bin/perl -w
The script will work. If you convert the DOS file to unix (with the dos2unix utility, for instance), the cgi will execute without the -w.
We thought this behavior was quite strange - and we ran across it working on fckeditor, so we thought it might help someone else who encounters the problem.
Fri, 04/27/2007 - 07:41
#1
Re: (2)No such file or directory - connector.cgi