Hi,
I am attempting to follow the EzComponents WebDav tutorial
(http://ezcomponents.org/docs/tutorials/Webdav) to setup their
webdav component on my local test Lighttpd server.
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/
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'
);
foreach ( $server->configurations as $conf )
{
$conf->pathFactory = $pathFactory;
}
$backend = new ezcWebdavFileBackend(
dirname( __FILE__ ) . '/backend'
);
$server->handle( $backend );
?>
--- 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.
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
Kind regards
Londoner1
--
Hit it out of the park with a new bat. Click now!
http://tagline.hushmail.com/fc/BLSrjkqjJLLjxWjpINVPpxlB29YzRPBceu5F62HkQfbGOsApgnbBhVY9D6w/
--
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components