eZ Publish and WebDAV

Author Message

PO Michel

Friday 29 September 2006 1:28:12 am

Hello all,

I am very interseted in using eZ Publish and Web DAV.

I have followed the steps described in the article http://ez.no/doc/ez_publish/technical_manual/3_8/features/webdav/setting_it_up but I can't get my eZ siteaccess in my WebDAV client (IE 6.0).

First : question : could WebDAV be used to copy articles from an eZ installation to another ?

Another question : how should I setup Web DAV ?

My Apache server has been compild with the --enable-dav and --enable-rewrite options.

My httpd.conf looks like the following :

<Virtualhost *:80>
ServerName testdav.tpg.ch
ServerAdmin admin@example.com
<Directory /var/www/test383>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
DAV On
</Directory>
DocumentRoot /var/www/test383
ErrorLog logs/testdav-error_log
</VirtualHost>

I have created :

settings/override/webdav.ini with the content :

[GeneralSettings]
EnableWebDAV=true

settings/override/site.ini.append.php with the content :

[SiteSettings]
SiteList[]=tpg

But I don't get anything in my WebDAV client...

Any idea ?

Thanks,

PO

Björn Dieding@xrow.de

Friday 29 September 2006 2:28:41 am

Yourt vhost setup is incorrect... do not use apache module dav

 	#RewriteLog "/home/httpd/vhosts/rewrite.log"
    #RewriteLogLevel 5

    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteRule ^/plesk-stat/webstat(.*) %{DOCUMENT_ROOT}/../statistics/webstat$1 [L]
        RewriteRule ^/plesk-stat(.*) %{DOCUMENT_ROOT}/../statistics$1 [L]
        RewriteRule ^/webstat-ssl(.*) %{DOCUMENT_ROOT}/../statistics/webstat-ssl$1 [L]
        RewriteRule ^/webstat(.*) %{DOCUMENT_ROOT}/../statistics/webstat$1 [L]
        RewriteRule ^/anon_ftpstat(.*) %{DOCUMENT_ROOT}/../statistics/anon_ftpstat$1 [L]
        RewriteRule ^/ftpstat(.*) %{DOCUMENT_ROOT}/../statistics/ftpstat$1 [L]
        RewriteRule ^/error_docs(.*) %{DOCUMENT_ROOT}/../error_docs$1 [L]
    </IfModule>

    # have fallback if mod_rewrite is not existent
    DirectoryIndex index.php index.htm index.html

    <IfModule mod_php4.c>
        # If you are using Apache 2, you have to use <IfModule sapi_apache2.c>
        # instead of <IfModule mod_php4.c>.

        # Make sure we do use error reporting
        php_flag  display_errors        on
        php_flag  display_startup_errors on
        php_value error_reporting        2045
        
        # some parts/addons might only run safe mode on
        php_admin_flag safe_mode Off
        # security just in case
        php_admin_value register_globals    0
        # performance
        php_value magic_quotes_gpc  0
        # performance
        php_value magic_quotes_runtime  0
        #http://www.php.net/manual/en/ini.sect.language-options.php#ini.allow-call-time-pass-reference
        php_value allow_call_time_pass_reference 0
        # Do not show errors in the output. SOAP services might have troubles with it.
        php_value display_errors Off  
    </IfModule>

    <IfModule sapi_apache2.c>
        # If you are using Apache 2, you have to use <IfModule sapi_apache2.c>
        # instead of <IfModule mod_php4.c>.

        # Make sure we do use error reporting
        php_flag  display_errors        on
        php_flag  display_startup_errors on
        php_value error_reporting        2045
        
        # some parts/addons might only run safe mode on
        php_admin_flag safe_mode Off
        # security just in case
        php_admin_value register_globals    0
        # performance
        php_value magic_quotes_gpc  0
        # performance
        php_value magic_quotes_runtime  0
        #http://www.php.net/manual/en/ini.sect.language-options.php#ini.allow-call-time-pass-reference
        php_value allow_call_time_pass_reference 0
        # Do not show errors in the output. SOAP services might have troubles with it.
        php_value display_errors Off  
    </IfModule>

    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{HTTP_HOST} ^webdav\..*
        RewriteRule ^(.*) /webdav.php [L]

        RewriteCond %{HTTP_HOST} ^soap\..*
        RewriteRule ^(.*) /soap.php [L]

        RewriteRule ^/robots\.txt - [L]  
        RewriteRule ^/var/cache/debug.html.* - [L]
        RewriteRule ^/var/[^/]+/cache/debug.html.* - [L]
        Rewriterule ^/var/storage/.* - [L]
        Rewriterule ^/var/[^/]+/storage/.* - [L]
        RewriteRule ^/var/cache/texttoimage/.* - [L]
        RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
        Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
        Rewriterule ^/share/icons/.* - [L]
        Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|flash|javascripts?)/.* - [L]
        Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
        
        #Catch all and map to eZ publish but not or stats
        RewriteRule .* /index.php
    </IfModule>

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/

PO Michel

Friday 29 September 2006 2:40:46 am

OK done.

I now have an access right problem : HTTP1.1/301 Moved permanently

I don't have any .htaccess file in my eZ root directory.

Any idea ?

PO Michel

Friday 29 September 2006 7:09:48 am

How should I address my eZ site with WebDAV ?

Is it : webdav://vhost.domain.com/my_site_access ?

Thanks

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

eZ debug

Timing: Jan 31 2025 01:31:35
Script start
Timing: Jan 31 2025 01:31:35
Module start 'layout'
Timing: Jan 31 2025 01:31:35
Module start 'content'
Timing: Jan 31 2025 01:31:35
Module end 'content'
Timing: Jan 31 2025 01:31:35
Script end

Main resources:

Total runtime0.0263 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.1328151.2109
Module start 'layout' 0.00530.0038 739.3438220.7031
Module start 'content' 0.00910.0155 960.04691,001.9297
Module end 'content' 0.02460.0016 1,961.976637.9922
Script end 0.0262  1,999.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002710.4172140.0002
Check MTime0.00114.1970140.0001
Mysql Total
Database connection0.00093.301710.0009
Mysqli_queries0.00248.977030.0008
Looping result0.00000.049010.0000
Template Total0.00114.310.0011
Template load0.00093.496010.0009
Template processing0.00020.811810.0002
Override
Cache load0.00062.220210.0006
General
dbfile0.002910.866680.0004
String conversion0.00000.026340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs