Forums / Setup & design / Webdav ?

Webdav ?

Author Message

Maxime Thomas

Thursday 06 December 2007 7:30:37 am

Hi,

I've just unpacked a eZ4 version but I have some troubles to set up the webdav.
It's running on windows XP, Apache 2.2.6, PHP 5.2.5.
Here are step I've done :

1 - Set up the ini file (ok)
2 - Siteaccess are already listed (ok)

SiteList[]=ezflow_site
SiteList[]=fre
SiteList[]=eng
SiteList[]=ezflow_site_admin
SiteList[]=iphone

3 - Clear the cache (ok, it's my speciality)
4 - Set up the DNS in the /windows/system32/drivers/etc/hosts file (ok)

127.0.0.1 webdav.local

5 - Configure the web server (ok)

<Virtualhost webdav.local:80>
	DocumentRoot D:\mtho\workspacePHP\ezflow
	
	<Directory D:\mtho\workspacePHP\ezflow>
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<IfModule mod_rewrite.c>
		RewriteEngine On
		RewriteRule ^(.*) /webdav.php [L]
	</IfModule>

	ServerAdmin admin@example.com
	ServerName webdav.local
</VirtualHost>

6 - Test (not ok)

When I use DAV Explorer or the web folder feature, I don't access the webdav folder.
I've searched some information but don't found a particular solution.

Using NetDrive, I can access to the root but that's empty. :-/

I have no log in /var/log and in /var/ezflow_site/log.

I have no more ideas, so if someone is experiencing the same troubles...

Max

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Nicolas Lescure

Friday 07 December 2007 2:20:04 am

Hi,

Have you activated the rewrite module and the webdav modules in your apache ?

Try to put an "exit;" at the top of your webdav.php to see if your apache configuration is ok.

Then, try to use a site access in your url : http://webdav.local/fre

Maxime Thomas

Friday 07 December 2007 4:55:40 am

Ok, I've got it. It was a bad configuration in httpd.conf.
I had an error in the apache error log concerning precedence of the NameVirtualHost directive. My conf was :

NameVirtualHost *:80
Listen 80

And I declared two virtual hosts : localhost and webdav.local.

So I tried :

NameVirtualHost localhost:80
NameVirtualHost webdav.local:80
Listen 80

I restart Apache and tried to access : http://webdav.local/fre with DAV explorer and it works.

You don't need to enable the DAV module for Apache, it works without it.

Anyway thanks.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Maxime Thomas

Friday 07 December 2007 5:23:34 am

I tried to change the webdav.ini.append.php to add the Gallery class as a folder class.
I doesn't seem to work. I deconnect and reconnect my web folder but my gallery content still doesn't appear... I clean the cache of eZ and explorer but nothing happens.

Any ideas ?

Max

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Maxime Thomas

Friday 07 December 2007 5:33:52 am

Like always, I spent two hours to decide if I'm going to put a post on ez.no and after five minutes I find the solution.

When you try to connect to the ez webdav server, you must specify the sitaccess that you want to connect to by adding the siteaccess to the url. In my case : http://webdav.local/fre where fre is the siteaccess.

And, naturally, eZ will check permissions and translations.

In my issue, I was trying to see an english gallery in the french siteaccess... :-/

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Nicolas Lescure

Friday 07 December 2007 5:38:37 am

Don't modify the webdav.ini to add a class, use the upload.ini instead.

Maxime Thomas

Thursday 13 March 2008 6:18:46 am

Hi again,

I already got problems with this functionality and specially with the connection.
I've got the right Apach config which allows me to have to virtual hosts :
- one for the standard site : site:80
- one for the webdav : site:81

It's working, I can access separately the webdav and the standard site.

<b>But</b> when I use cadaver to access the content file, I can only reach the list of siteaccess. If I try to enter one siteaccess, I've got an error :

Could not access /wascou/ (not WebDAV-enabled?):
404 Not found

This is very weird because I have not to login to reach the list of siteaccess.
Does someone has an idea ?

Here's my webdav log :

2008-03-13 18:35:37 : ========================================
2008-03-13 18:35:37 : Requested URI is: / [webdav.php]
2008-03-13 18:35:37 : WebDAV server started... [processClientRequest]
2008-03-13 18:35:37 : start url: / [CS:processURL]
2008-03-13 18:35:37 : indexdir url:  [CS:processURL]
2008-03-13 18:35:37 : ----------------------------------------
2008-03-13 18:35:37 : Client says: PROPFIND [processClientRequest]
2008-03-13 18:35:37 : Target: / [processClientRequest]
2008-03-13 18:35:37 : ----------------------------------------
2008-03-13 18:35:37 : PROPFIND was issued from client. [processClientRequest]
2008-03-13 18:35:37 : Depth: 1. [processClientRequest]
2008-03-13 18:35:37 : Root: Fethcing site list [CS:getCollectionContent]
2008-03-13 18:35:37 : Client requested 7 properties. [outputCollectionContent]
2008-03-13 18:35:37 : XML was parsed [outputCollectionContent]
2008-03-13 18:35:37 : handle function was called with status: 11 [handle]
2008-03-13 18:35:48 : ========================================
2008-03-13 18:35:48 : Requested URI is: /wascou/ [webdav.php]
2008-03-13 18:35:48 : start path: /wascou/ [CS:currentSiteFromPath]
2008-03-13 18:35:48 : indexdir: wascou/ [CS:currentSiteFromPath]
2008-03-13 18:35:48 : no valid site was found.. [CS:currentSiteFromPath]

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

eZ debug

Timing: Jan 19 2025 21:32:37
Script start
Timing: Jan 19 2025 21:32:37
Module start 'content'
Timing: Jan 19 2025 21:32:39
Module end 'content'
Timing: Jan 19 2025 21:32:39
Script end

Main resources:

Total runtime1.2499 sec
Peak memory usage4,096.0000 KB
Database Queries206

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.7734180.8594
Module start 'content' 0.00571.1106 769.6328623.1719
Module end 'content' 1.11630.1335 1,392.8047345.0859
Script end 1.2499  1,737.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3035210.0002
Check MTime0.00140.1109210.0001
Mysql Total
Database connection0.00080.063010.0008
Mysqli_queries1.157292.58282060.0056
Looping result0.00250.20222040.0000
Template Total1.219197.520.6095
Template load0.00200.156420.0010
Template processing1.217197.373920.6086
Template load and register function0.00010.011010.0001
states
state_id_array0.00200.156110.0020
state_identifier_array0.00230.183220.0011
Override
Cache load0.00180.1404690.0000
Sytem overhead
Fetch class attribute can translate value0.00140.112230.0005
Fetch class attribute name0.00130.101690.0001
XML
Image XML parsing0.00180.145730.0006
class_abstraction
Instantiating content class attribute0.00000.0033140.0000
General
dbfile0.00650.5240330.0002
String conversion0.00000.000630.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
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/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: 48
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs