Hi, On 06/03/2009 09:48 AM london...@hushmail.com wrote:
<snip /> > However, I get the following error when connecting to the webdav > directory using the Cadaver webdav client: > > $ cadaver http://localhost/test > > Could not access /test/ (not WebDAV-enabled?): > Could not parse response status line > Connection to `localhost' closed. > dav:!> > I also have tried connecting to http://localhost/test using normal > browser and I just get a blank page/ Do you have display_errors = on and error_reporting = E_ALL | E_STRICT set in your php.ini? Otherwise you could miss some errors, when accessing the WebDAV share with a browser. > Please can anyone help? I must be missing something silly ;-( > This is my setup below: > > - eZ Components 2008.2.3 (installed via pear into: > /usr/share/php/ezc/) > - lighttpd 1.4.19 (ubuntu hardy package) > - PHP 5.2.4 (ubuntu hardy package) > - cadaver 0.23.2 (I can connect to other non ez webdav shares) > Lighttpd.conf rewrite line - to point to the index.php: > > url.rewrite-once = ( > "^/.*$" => "/index.php/$1" > ) > index.php (calling ez's webdav classes): > --- BEGIN FILE --- > > <?php > > // Include the EZ Components (which is extracted to the PHP include > path: /usr/share/php) in your PHP path: > set_include_path( "/usr/share/php/ezc/" . PATH_SEPARATOR . > get_include_path()); > > // Enable autoload so that classes are found without requires: > require_once "Base/base.php"; // dependent on installation method, > see below > > function __autoload( $className ) > { > ezcBase::autoload( $className ); > } > > $server = ezcWebdavServer::getInstance(); > > $pathFactory = new ezcWebdavBasicPathFactory( > 'http://localhost/index.php' > ); If you have rewrite turned on, you just need http://localhost/. > foreach ( $server->configurations as $conf ) > { > $conf->pathFactory = $pathFactory; > } > > $backend = new ezcWebdavFileBackend( > dirname( __FILE__ ) . '/backend' > ); > > $server->handle( $backend ); The back end directory exists and is read-/writeable for the server? > ?> > --- END FILE ---- > WebDav directories on lighttpd server: > > I have a 'backend' directory under my document root with a 'test' > subdirectory. backend is the toplevel directory that I the > ezcomponent index.php refers to and should be the top level dir for > the webdav share. For testing: Put some text file into the back end dir and try to access this one via browser. > Lighttpd logs: > > The lighttpd /var/log/lighttpd/access.log shows two http requests > (OPTIONS and PROPFIND): > > 127.0.0.1 localhost - [03/Jun/2009:08:21:04 +0100] "OPTIONS /test/ > HTTP/1.1" 200 5 "-" "cadaver/0.23.2 neon/0.28.0" > 127.0.0.1 localhost - [03/Jun/2009:08:21:05 +0100] "PROPFIND /test/ > HTTP/1.1" 207 0 "-" "cadaver/0.23.2 neon/0.28.0" > > and there are no errors in the lighttpd /var/log/lighttpd/error.log: > > 2009-06-03 08:20:28: (log.c.75) server started If the above hints do not lead to a result you can try to trace the communication using Wireshark [1] or create an Xdebug trace of the server. The latter one could help us to help you debugging. HTH, Toby [1] http://www.wireshark.org/ -- Mit freundlichen Grüßen / Med vennlig hilsen / With kind regards Tobias Schlitt (GPG: 0xC462BC14) eZ Components Developer t...@ez.no | eZ Systems AS | ez.no -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components