You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Adam Moffett <ad...@clarityconnect.com> on 2003/04/17 21:40:41 UTC

[users@httpd] helluva time with DAV. can't upload CGI's

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


Re: [users@httpd] helluva time with DAV. can't upload CGI's

Posted by Adam Moffett <ad...@clarityconnect.com>.
>On Thu, 17 Apr 2003, Adam Moffett wrote:
>  > My problem is that I can't upload a CGI with DAV (apache 2.0.45).
>  > excerpts from the logs follow:
>
>See:
>http://www.webdav.org/mod_dav/install.html#complex
>

hey thanks, that's just what I needed.

Next time you're in Ithaca, NY I'll buy you a beer ;)

---------------------------------------------------------------------
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


Re: [users@httpd] helluva time with DAV. can't upload CGI's

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 17 Apr 2003, Adam Moffett wrote:
> My problem is that I can't upload a CGI with DAV (apache 2.0.45).
> excerpts from the logs follow:

See:
http://www.webdav.org/mod_dav/install.html#complex

The trick is to create a second URL that references the same content, but
where the content will be treated as static not dynamic.  If you need more
help, post again.

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

http://httpd.apache.org/docs-2.0/faq/
which is mostly just a reference to
http://httpd.apache.org/docs/misc/FAQ.html
which is the 1.3 FAQ, but most of the questions there apply to 2.0 as
well.

Joshua.

---------------------------------------------------------------------
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