Hi Toby,

Thank you for the quick reply.

I have turned on the logging in php.ini, created testfile.txt, 
changed index.php to take into account rewrite.

I now get warnings in the browser relating to EZ components. But 
still the same result in cadaver.

See below for details..

Regards

On Wed, 03 Jun 2009 09:36:39 +0100 Tobias Schlitt <t...@ez.no> wrote:
>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.
>

Ok, - done this, I now get the following warnings in browser when 
accessing http://locahost/testfile.txt

Strict Standards: DateTime::__construct() [function.DateTime---
construct]: It is not safe to rely on the system's timezone 
settings. Please use the date.timezone setting, the TZ environment 
variable or the date_default_timezone_set() function. In case you 
used any of those methods and you are still getting this warning, 
you most likely misspelled the timezone identifier. We selected 
'Europe/London' for 'BST/1.0/DST' instead in 
/usr/share/php/ezc/Webdav/backends/file.php on line 640

Strict Standards: DateTime::__construct() [function.DateTime---
construct]: It is not safe to rely on the system's timezone 
settings. Please use the date.timezone setting, the TZ environment 
variable or the date_default_timezone_set() function. In case you 
used any of those methods and you are still getting this warning, 
you most likely misspelled the timezone identifier. We selected 
'Europe/London' for 'BST/1.0/DST' instead in 
/usr/share/php/ezc/Webdav/backends/file.php on line 645

Strict Standards: date() [function.date]: It is not safe to rely on 
the system's timezone settings. Please use the date.timezone 
setting, the TZ environment variable or the 
date_default_timezone_set() function. In case you used any of those 
methods and you are still getting this warning, you most likely 
misspelled the timezone identifier. We selected 'Europe/London' for 
'BST/1.0/DST' instead in 
/usr/share/php/ezc/Webdav/backends/file.php on line 733

Strict Standards: date() [function.date]: It is not safe to rely on 
the system's timezone settings. Please use the date.timezone 
setting, the TZ environment variable or the 
date_default_timezone_set() function. In case you used any of those 
methods and you are still getting this warning, you most likely 
misspelled the timezone identifier. We selected 'Europe/London' for 
'BST/1.0/DST' instead in 
/usr/share/php/ezc/Webdav/backends/file.php on line 733

Warning: Cannot modify header information - headers already sent by 
(output started at /usr/share/php/ezc/Webdav/backends/file.php:640) 
in /usr/share/php/ezc/Webdav/transport.php on line 526

Warning: Cannot modify header information - headers already sent by 
(output started at /usr/share/php/ezc/Webdav/backends/file.php:640) 
in /usr/share/php/ezc/Webdav/transport.php on line 526

Warning: Cannot modify header information - headers already sent by 
(output started at /usr/share/php/ezc/Webdav/backends/file.php:640) 
in /usr/share/php/ezc/Webdav/transport.php on line 526

Warning: Cannot modify header information - headers already sent by 
(output started at /usr/share/php/ezc/Webdav/backends/file.php:640) 
in /usr/share/php/ezc/Webdav/transport.php on line 533

Are these normal warnings for ezcomponent?

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

Ok, I have changed this - same result tho ;-(

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

Yes, the backend directory is owned by lighttpd user (www-data:www-
data) and it and its children are all r+w.

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

Ok, i have added testfile.txt into backend.

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

--
Find precision scales that can weigh anything. Click now!
 
http://tagline.hushmail.com/fc/BLSrjkqbRRpO7q7dkz3SPgaJYfzEjCeoEzfIfMkGXFWpHer0C46exuIYBf6/

-- 
Components mailing list
Components@lists.ez.no
http://lists.ez.no/mailman/listinfo/components

Reply via email to