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

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 18 2025 19:27:42
Script start
Timing: Jan 18 2025 19:27:42
Module start 'layout'
Timing: Jan 18 2025 19:27:42
Module start 'content'
Timing: Jan 18 2025 19:27:43
Module end 'content'
Timing: Jan 18 2025 19:27:43
Script end

Main resources:

Total runtime1.5465 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.3672152.6250
Module start 'layout' 0.00500.0025 741.992239.4453
Module start 'content' 0.00751.5373 781.4375571.6094
Module end 'content' 1.54480.0017 1,353.046916.1563
Script end 1.5464  1,369.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.2746160.0003
Check MTime0.00220.1415160.0001
Mysql Total
Database connection0.00060.038910.0006
Mysqli_queries1.485096.0241600.0247
Looping result0.00070.0442580.0000
Template Total1.508897.620.7544
Template load0.00290.185620.0014
Template processing1.505997.376720.7530
Template load and register function0.00010.009010.0001
states
state_id_array0.00140.091210.0014
state_identifier_array0.00290.188720.0015
Override
Cache load0.00250.1626340.0001
Sytem overhead
Fetch class attribute can translate value0.00070.043920.0003
Fetch class attribute name0.00160.104160.0003
XML
Image XML parsing0.00110.071720.0006
class_abstraction
Instantiating content class attribute0.00000.001080.0000
General
dbfile0.00090.0556230.0000
String conversion0.00000.000440.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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