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

eZ debug

Timing: Jan 18 2025 11:38:55
Script start
Timing: Jan 18 2025 11:38:55
Module start 'content'
Timing: Jan 18 2025 11:38:56
Module end 'content'
Timing: Jan 18 2025 11:38:56
Script end

Main resources:

Total runtime0.9297 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 588.8594180.8359
Module start 'content' 0.00770.7395 769.6953565.1719
Module end 'content' 0.74720.1823 1,334.8672336.7813
Script end 0.9295  1,671.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.4714210.0002
Check MTime0.00170.1829210.0001
Mysql Total
Database connection0.00090.100410.0009
Mysqli_queries0.838690.21001970.0043
Looping result0.00230.25021950.0000
Template Total0.881594.820.4408
Template load0.00220.232520.0011
Template processing0.879494.590620.4397
Template load and register function0.00020.020410.0002
states
state_id_array0.00130.136610.0013
state_identifier_array0.00300.328020.0015
Override
Cache load0.00190.2011450.0000
Sytem overhead
Fetch class attribute can translate value0.00360.388230.0012
Fetch class attribute name0.00110.115650.0002
XML
Image XML parsing0.00100.104630.0003
class_abstraction
Instantiating content class attribute0.00000.001150.0000
General
dbfile0.00180.1980270.0001
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs