httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] Apache and Samba problem
Date Wed, 16 Oct 2002 07:38:36 GMT
The essential problem is that you have a perl program which was written
on a Linux machine but you are trying to execute it on a Windows
machine. That is, a CGI program is executed on the machine running the
server which called it, not on the machine on which the program file

Even if you have perl installed on the windows machine, this cannot work
because the first line of a perl program contains the path to the perl
interpreter. On the Linux machine, this will be like:


but on windows, it will be like:


Obviously, these are not interchangeable :-)

If you simply want to store the programs on Linux and will only execute
them on the windows server, then change the shebang line to the windows
version. Otherwise, I don't think there is any way to have alternative
shebangs in the file..

>-----Original Message-----
>From: Susanne Pfeiffer []
>Sent: Dienstag, 15. Oktober 2002 21:06
>Subject: [users@httpd] Apache and Samba problem
>can anybody help me? I didn't find any hint in the web, what's 
>wrong with my
>network or my web server configuration.
>I have got a tiny network with an linux fileshare and a W2k client. I
>mounted (via samba) my linux home share to my Windows pc as 
>drive "M:". Now
>I installed Apache 2.0.43 on my Windows PC and want to call a 
>located on this M:-drive - unfortunatly without success.
>The Apache Web Server is able to
>- execute the cgi-scripts if they are lying in an cgi-dir on my local
>- get html-files lying in appropriate dirs located on the M:-drive
>When calling an cgi-script located on this M:-dir I get an 
>error message:
>Internal Server Error
>The server encountered an internal error or misconfiguration 
>and was unable
>to complete your request.
>I checked the permissions of the cgi-scripts and they seem to be o.k.
>(readable and executable by all)
>Perhaps it is a samba problem, but I can't imagine which...
>Here are the respective sections in my httpd.conf:
>Alias /pl4pd "M:/projekte/bluecarat/pl4pd/public_html"
><Directory "M:/projekte/bluecarat/pl4pd/public_html">
>    Options Indexes FollowSymLinks MultiViews
>    AddOutputFilter Includes html
>    AllowOverride None
>    Order allow,deny
>    Allow from all
>ScriptAlias /cgi-bin/ "C:/Programme/Apache/Apache2/cgi-bin/"
><Directory "C:/Programme/Apache/Apache2/cgi-bin">
>    AllowOverride None
>    Options None
>    Order allow,deny
>    Allow from all
>ScriptAlias /pl4pdcgi/ "M:/projekte/bluecarat/pl4pd/cgi-bin/"
><Directory "M:/projekte/bluecarat/pl4pd/cgi-bin/">
>    AllowOverride None
>    Options None
>    Order allow,deny
>    Allow from all
>And here is the corresponding error log entry:
>[Tue Oct 15 20:28:35 2002] [error] [client] (720005)Zugriff
>verweigert  : Failed to read cgi file
>M:/projekte/bluecarat/pl4pd/cgi-bin/ for testing
>[Tue Oct 15 20:28:35 2002] [error] [client] (720005)Zugriff
>verweigert  : don't know how to spawn child process:
>Any ideas what's wrong??
>Thanks in advance & best regards,
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message