WEBDAV Debugging/Error ... take a look

Author Message

Björn Dieding@xrow.de

Wednesday 17 September 2003 3:05:35 pm

Hmmm I setup the vhost tried the following requests on the Webdav interface. What might be the failure.

GET / HTTP/1.1
Host: www

HTTP/1.1 500 Internal Server Error
Date: Wed, 17 Sep 2003 21:53:35 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Accept-Ranges: bytes
X-Powered-By: PHP/4.2.2
Content-Length: 0
Connection: close
Content-Type: text/html; charset=ISO-8859-1

Verbindung zu Host verloren. (Disconnected from host)

PROPFIND / HTTP/1.1
Host: www

GET / HTTP/1.1
Host: www

HTTP/1.1 500 Internal Server Error
Date: Wed, 17 Sep 2003 21:53:35 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Accept-Ranges: bytes
X-Powered-By: PHP/4.2.2
Content-Length: 0
Connection: close
Content-Type: text/html; charset=ISO-8859-1

Verbindung zu Host verloren. (Disconnected from host)

PROPFIND / HTTP/1.1
Host: www

HTTP/1.1 405 Method Not Allowed
Date: Wed, 17 Sep 2003 22:05:27 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Allow: GET,HEAD,POST,OPTIONS,TRACE
Content-Length: 296
Content-Type: text/html; charset=iso-8859-1

Verbindung zu Host verloren.

Verbindung zu Host verloren.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Björn Dieding@xrow.de

Wednesday 17 September 2003 3:26:34 pm

my vhost
#webdav
<Virtualhost 192.168.0.3:96>
<Directory /home/www/ezpublish3/>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>
RewriteEngine On
RewriteRule !\.(css|jar|js|html|php)$ /home/www/ezpublish3/webdav.php
ServerAdmin root@localhost
DocumentRoot /home/www/ezpublish3/
ServerName 192.168.0.3
</VirtualHost>

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Tony Wood

Wednesday 17 September 2003 4:16:21 pm

Hi Björn,

It does work, it looks like its setup from the httpd side. I found trying different URLs.. the /content does not work for me, I used / then I could see the directories.

I have tested on RH 9 with Konqueror (client) and PHP 4.3.3 (server), but doesn't seem to work with authentication on IE... I need to play more with the windows box..

I hope this helps

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Balazs Halasy

Thursday 18 September 2003 4:25:57 am

According to your virtual host settings in your apache config file, you're trying to listen for an IP address (instead of a hostname) with an additional non-standard port. I suggest that you remove the port (during testing) and that you try to access the webdav module using the following set of commands (in UNIX/Linux) :

telnet 192.168.0.3 80

[will output some info.. now type in:]

PROPFIND / HTTP/1.1
Host: localhost

[and press enter (sometimes twice)]

what is the output?

Björn Dieding@xrow.de

Thursday 18 September 2003 5:54:36 am

Hmmm... This is a dumb question... But do I need to load the apache webdav modul in to apache?

[root@www root]# telnet 192.168.0.3 80
Trying 192.168.0.3...
Connected to 192.168.0.3.
Escape character is '^]'.
PROPFIND / HTTP/1.1
Host: localhost

HTTP/1.1 405 Method Not Allowed
Date: Thu, 18 Sep 2003 12:52:12 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Allow: GET,HEAD,POST,OPTIONS,TRACE
Content-Length: 296
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>405 Method Not Allowed</title>
</head><body>
<h1>Method Not Allowed</h1>
<p>The requested method PROPFIND is not allowed for the URL /.</p>
<hr />
<address>Apache/2.0.40 Server at 192.168.0.3 Port 80</address>
</body></html>
Connection closed by foreign host.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Björn Dieding@xrow.de

Thursday 18 September 2003 6:02:33 am

I also enabled now the dav modul... still no change in the output

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Balazs Halasy

Friday 19 September 2003 12:09:23 am

No, you do not need the Apache WebDAV module. eZ publish has code that takes care of the WebDAV communication.

The dumps: it looks like that the WebDAV messages (from the client, such as PROPFIND) are not reaching the eZ publish WebDAV server. Did you remember to enable WebDAV from within the webdav.ini file? You may also enable WebDAV debugging from the ini file; debug output will reside in the following file: /tmp/webdavlog.txt

Enable debug, do a *single* PROPFIND and look at the log file, what does it say?

Which version of Apache and PHP are you running? Seems like you're running Apache 2.0.40 and PHP 4.2.2 - we have not tested WebDAV with the Apache 2.x series; it might or might not work. In addition: the WebDAV setup documentation clearly states that you should use PHP 4.3.2 (or later). This is (if I remember correctly) because earlier versions of PHP did not send the HTTP requests to the PHP script (which resulted in no response from the script). Please, try to upgrade to 4.3.2 (or later). Good luck! :-)

Björn Dieding@xrow.de

Saturday 11 October 2003 11:49:57 am

I am using now apache 1.3 and php 4.3.1...

I am receiving now something. LOL

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.