I have installed DocPerl on a Windows XP system running Apache on localhost.
I'm having the following problems:
- The files docperl.png and info.png are being interpreted as executables, which is producing an error.
The error log on the webserver contains the following messages:
[error] [client 127.0.0.1] C:/DOCPERL/docperl/docperl.png is not executable; ensure interpreted scripts have "#!" first line
[Wed Aug 22 11:29:53 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/DOCPERL/docperl/docperl.png
[Wed Aug 22 11:29:57 2007] [error] [client 127.0.0.1] C:/DOCPERL/docperl/docperl.png is not executable; ensure interpreted scripts have "#!" first line
[Wed Aug 22 11:29:57 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/DOCPERL/docperl/docperl.png
[Wed Aug 22 11:29:58 2007] [error] [client 127.0.0.1] Use of uninitialized value in split at DocPerl.pm line 415., referer: http://localhost/cgi-bin/docperl.cgi
[Wed Aug 22 11:29:58 2007] [error] [client 127.0.0.1] Use of uninitialized value in split at DocPerl.pm line 415., referer: http://localhost/cgi-bin/docperl.cgi
[Wed Aug 22 11:29:58 2007] [error] [client 127.0.0.1] The cache file './data/cache/list' does not have a suffix at DocPerl.pm line 287, referer: http://localhost/cgi-bin/docperl.cgi
[Wed Aug 22 11:29:58 2007] [error] [client 127.0.0.1] The cache file './data/cache/perlfunc' does not have a suffix at DocPerl.pm line 287, referer: http://localhost/cgi-bin/docperl.cgi
[Wed Aug 22 11:29:59 2007] [error] [client 127.0.0.1] C:/DOCPERL/docperl/info.png is not executable; ensure interpreted scripts have "#!" first line, referer: http://localhost/cgi-bin/docperl.cgi?page=list
[Wed Aug 22 11:29:59 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/DOCPERL/docperl/info.png, referer: http://localhost/cgi-bin/docperl.cgi?page=list
[Wed Aug 22 11:29:59 2007] [error] [client 127.0.0.1] C:/DOCPERL/docperl/docperl.png is not executable; ensure interpreted scripts have "#!" first line
[Wed Aug 22 11:29:59 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/DOCPERL/docperl/docperl.png
I am not sure whether this problem stems from something within docperl, or the way I have the Apache webserver set up. I followed the installation documentation that came with docperl and placed the following lines in the web server config file:
I have installed DocPerl on a Windows XP system running Apache on localhost.
I'm having the following problems:
- The files docperl.png and info.png are being interpreted as executables, which is producing an error.
The error log on the webserver contains the following messages:
[error] [client 127.0.0.1] C:/DOCPERL/docperl/docperl.png is not executable; ensure interpreted scripts have "#!" first line
[Wed Aug 22 11:29:53 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/DOCPERL/docperl/docperl.png
[Wed Aug 22 11:29:57 2007] [error] [client 127.0.0.1] C:/DOCPERL/docperl/docperl.png is not executable; ensure interpreted scripts have "#!" first line
[Wed Aug 22 11:29:57 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/DOCPERL/docperl/docperl.png
[Wed Aug 22 11:29:58 2007] [error] [client 127.0.0.1] Use of uninitialized value in split at DocPerl.pm line 415., referer: http://localhost/cgi-bin/docperl.cgi
[Wed Aug 22 11:29:58 2007] [error] [client 127.0.0.1] Use of uninitialized value in split at DocPerl.pm line 415., referer: http://localhost/cgi-bin/docperl.cgi
[Wed Aug 22 11:29:58 2007] [error] [client 127.0.0.1] The cache file './data/cache/list' does not have a suffix at DocPerl.pm line 287, referer: http://localhost/cgi-bin/docperl.cgi
[Wed Aug 22 11:29:58 2007] [error] [client 127.0.0.1] The cache file './data/cache/perlfunc' does not have a suffix at DocPerl.pm line 287, referer: http://localhost/cgi-bin/docperl.cgi
[Wed Aug 22 11:29:59 2007] [error] [client 127.0.0.1] C:/DOCPERL/docperl/info.png is not executable; ensure interpreted scripts have "#!" first line, referer: http://localhost/cgi-bin/docperl.cgi?page=list
[Wed Aug 22 11:29:59 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/DOCPERL/docperl/info.png, referer: http://localhost/cgi-bin/docperl.cgi?page=list
[Wed Aug 22 11:29:59 2007] [error] [client 127.0.0.1] C:/DOCPERL/docperl/docperl.png is not executable; ensure interpreted scripts have "#!" first line
[Wed Aug 22 11:29:59 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/DOCPERL/docperl/docperl.png
I am not sure whether this problem stems from something within docperl, or the way I have the Apache webserver set up. I followed the installation documentation that came with docperl and placed the following lines in the web server config file:
<Directory "C:/DOCPERL/docperl/">
Options +ExecCGI
AllowOverride Limit
DirectoryIndex docperl.cgi
AddHandler cgi-script .cgi
</Directory>
in addition, i also changed the script alias to:
ScriptAlias /cgi-bin/ "C:/DOCPERL/docperl/"
This is the directory where i installed docperl.
Any advice would be helpful
regards
Hi
Could you send your whole apache config. From what you have shown of your apache cofig, there is nothing I can see that would cause that problem.
Ivan