Forums / Developer / eZpublish 4 and WebDAV - Doesn't work

eZpublish 4 and WebDAV - Doesn't work

Author Message

Salvatore Guarino

Wednesday 23 April 2008 5:46:13 am

Hi,

I'm trying to enable webdvav on a test environment with eZpublish 4.0.

According to the documentation, I followed these steps:

1. I created a file "webdav.ini.append.php" in settings/override, this is the content:

<?php /* #?ini charset="utf-8"?

[GeneralSettings]
EnableWebDAV=true
*/ ?>

2. I checked the file site.ini.append in settings/override, it seem ok, this is the content:

<?php /* #?ini charset="utf-8"?

[ExtensionSettings]
ActiveExtensions[]
ActiveExtensions[]=ezwebin
ActiveExtensions[]=ezdhtml
ActiveExtensions[]=ezodf

[Session]
SessionNameHandler=custom

[SiteSettings]
DefaultAccess=ita
SiteList[]
SiteList[]=mysite
SiteList[]=ita
SiteList[]=ger
SiteList[]=eng
SiteList[]=fre
SiteList[]=mysite_admin
RootNodeDepth=1

[UserSettings]
LogoutRedirect=/

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]
AvailableSiteAccessList[]=mysite
AvailableSiteAccessList[]=ita
AvailableSiteAccessList[]=ger
AvailableSiteAccessList[]=eng
AvailableSiteAccessList[]=fre
AvailableSiteAccessList[]=mysite_admin
MatchOrder=uri
HostMatchMapItems[]

[FileSettings]
VarDir=var/ezwebin_site

[MailSettings]
Transport=sendmail
AdminEmail=sg@mysite.com
EmailSender=

[EmbedViewModeSettings]
AvailableViewModes[]
AvailableViewModes[]=embed
AvailableViewModes[]=embed-inline
InlineViewModes[]
InlineViewModes[]=embed-inline
*/ ?>

3. I edited the vhost config file, adding

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

and

webdav.mysite.com

Thi is the complete content:

<VirtualHost *>
ServerName www2.mysite.com
ServerAlias www2.mysite.it www2.mysite.com www2.mysite.eu webdav.mysite.com
ErrorLog /var/log/apache2/www.mysite.com/error_log
CustomLog /var/log/apache2/www.mysite.com/access_log combined
DocumentRoot "/var/www/www.mysite.com"

    <Directory "/var/www/www.mysite.com">
        Options FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
	
    <IfModule peruser.c>
        ServerEnvironment apache apache
        MinSpareProcessors 4
        MaxProcessors 20
    </IfModule>	
	<IfModule mod_php5.c>
        php_admin_flag safe_mode Off
        php_admin_value register_globals 0
        php_value magic_quotes_gpc 0
        php_value magic_quotes_runtime 0
        php_value allow_call_time_pass_reference 0
    </IfModule>

    DirectoryIndex index.php
 
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteRule content/treemenu/?$ /index_treemenu.php [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|javascripts?)/.* - [L]
        RewriteRule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
        RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
        RewriteRule ^/favicon\.ico - [L]
        RewriteRule ^/robots\.txt - [L]
        # Uncomment the following lines when using popup style debug.
        # RewriteRule ^/var/cache/debug\.html.* - [L]
        # RewriteRule ^/var/[^/]+/cache/debug\.html.* - [L]
		RewriteCond %{HTTP_HOST} ^webdav\..*
		RewriteRule ^(.*) /webdav.php [L]
        RewriteRule .* /index.php
    </IfModule>
	
</VirtualHost>

It doesn't work. I treid with explorer in win xp, windows vista and in dreamweaver. There aren't error in the apache log.

Any idea?

Thx and bye

Kristof Coomans

Wednesday 23 April 2008 7:40:14 am

Hi Salvatore

What exactly is "it doesn't work"? I presume you have a working DNS entry for webdav.mysite.com or added it to your operating system's hosts file?

I also recommend you putting

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

right after RewriteEngine On.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Salvatore Guarino

Thursday 24 April 2008 2:26:19 am

Thank you Kristof,

yes, I have an host in my DNS for webdav.mysite.com. I tried putting the rules after RewriteEngine On, but when I try to connect using win xp (I know that I have to create a special web folder connection, not simply using ie), the folder is empty, I cannot see any structure, and I cannot upload images or files...

Salvatore Guarino

Thursday 24 April 2008 2:46:39 am

I suspect that problem is in the Windows xp webdav client... I will try with a Linux host, and I will post the result...

eZ debug

Timing: Jan 18 2025 15:51:20
Script start
Timing: Jan 18 2025 15:51:20
Module start 'content'
Timing: Jan 18 2025 15:51:21
Module end 'content'
Timing: Jan 18 2025 15:51:21
Script end

Main resources:

Total runtime0.7633 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.0053 587.7344180.8281
Module start 'content' 0.00530.6460 768.5625576.6875
Module end 'content' 0.65120.1120 1,345.2500336.7734
Script end 0.7633  1,682.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5302210.0002
Check MTime0.00160.2121210.0001
Mysql Total
Database connection0.00070.086210.0007
Mysqli_queries0.694490.97451970.0035
Looping result0.00170.22071950.0000
Template Total0.738296.720.3691
Template load0.00200.265420.0010
Template processing0.736196.439920.3681
Template load and register function0.00010.010010.0001
states
state_id_array0.00120.156410.0012
state_identifier_array0.00080.110220.0004
Override
Cache load0.00180.2311340.0001
Sytem overhead
Fetch class attribute can translate value0.00100.130630.0003
Fetch class attribute name0.00110.141660.0002
XML
Image XML parsing0.00110.145630.0004
class_abstraction
Instantiating content class attribute0.00000.002580.0000
General
dbfile0.00180.2293340.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/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: 26
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs