httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Moffett <adaml...@clarityconnect.com>
Subject [users@httpd] helluva time with DAV. can't upload CGI's
Date Thu, 17 Apr 2003 19:40:41 GMT
This is my very first day on this list, so I apologize if this has 
been covered.  I've been trying to figure out how to do this for a 
couple of days.

My problem is that I can't upload a CGI with DAV (apache 2.0.45).
excerpts from the logs follow:


error log
[Tue Apr 15 14:03:59 2003] [error] (13)Permission denied: exec of 
'PM3Lines.pl' failed
[Tue Apr 15 14:03:59 2003] [error] [client 209.150.235.126] Premature 
end of script headers: PM3Lines.pl

access log
209.150.235.126 - adam [15/Apr/2003:14:03:59 -0400] "PROPFIND 
/adam/cgi-bin/PM3Lines.pl HTTP/1.1" 404 222 "-
" "WebDAVFS/1.2.3 (01238000) Darwin/6.4 (Power Macintosh)" 666 397
209.150.235.126 - adam [15/Apr/2003:14:03:59 -0400] "PUT 
/adam/cgi-bin/PM3Lines.pl HTTP/1.1" 201 197 "-" "We
bDAVFS/1.2.3 (01238000) Darwin/6.4 (Power Macintosh)" 461 569
209.150.235.126 - adam [15/Apr/2003:14:03:59 -0400] "PROPFIND 
/adam/cgi-bin/PM3Lines.pl HTTP/1.1" 207 438 "-
" "WebDAVFS/1.2.3 (01238000) Darwin/6.4 (Power Macintosh)" 666 757
209.150.235.126 - - [15/Apr/2003:14:03:59 -0400] "GET 
/adam/cgi-bin/PM3Lines.pl HTTP/1.1" 500 544 "-" "WebDA
VFS/1.2.3 (01238000) Darwin/6.4 (Power Macintosh)" 442 750

Apparently apache is trying to execute the script.  The file ended up 
in the right place...but with a length of 0 bytes.  So I guess it's 
trying to execute it during the PUT(?).

This works if I change the handler for .pl and .cgi files, or if I 
set Options -ExecCGI.  But either way the CGI won't be useful after 
it's uploaded.  Does anyone know a way to configure apache such that 
CGI's won't be executed when you're trying to upload them with DAV, 
but will be executed when a client tries to GET or POST them?

Thanks in Advance,
Adam

P.S.:  Does anyone know when there might be a FAQ for apache 2.0.x?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message