Forums / Install & configuration / eZ Publish and WebDAV

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 [email protected]
<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 [email protected]

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