WebDAV configuration trouble

Author Message

Brendan Pike

Monday 25 February 2008 7:25:35 pm

I'm having some trouble getting ez3.10.0 to work under webdav and would like some help.

The only lead I currently have is from ez's error.log

[ Feb 26 2008 13:17:00 ] [121.45.11.179] eZMySQLDB:
Connection error: Couldn't connect to database. Please try again later or inform the system administrator.
Access denied for user 'root'@'localhost' (using password: NO)

I don't get any response at all at the client end, any ideas what could be the problem?

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Linh Vu

Wednesday 27 February 2008 7:04:58 pm

What are your site.ini, webdav.ini settings and Apache Rewrite rules?

If I had more time, I would write less code.

Brendan Pike

Wednesday 27 February 2008 7:14:04 pm

Thanks.

Apache rewrite rules:

<VirtualHost 000.00.00.00:80>
  <Directory /data/vservers/dev/www/mysite>
    Options FollowSymLinks Indexes ExecCGI
    AllowOverride All
  </Directory>

    ErrorLog /data/log/apache/error-mysite-dev.log
    CustomLog /data/log/apache/totals-mysite-dev.log combined

  DocumentRoot /data/vservers/dev/www/mysite
  RewriteEngine On
  RewriteRule . /webdav.php
  ServerName webdav.mysite.com
</VirtualHost>

settings/siteaccess/mysite_webdav/site.ini

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

[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=localhost
User=xxxx
Password=xxxx
Database=mysite
Transactions=enabled
SQLOutput=disabled

[SiteSettings]
LoginPage=embedded
RootNodeDepth=1

[SiteAccessSettings]
RequireUserLogin=true
ShowHiddenNodes=true

[DesignSettings]
SiteDesign=mysite_design
AdditionalSiteDesignList[]=ezwebin
AdditionalSiteDesignList[]=base
*/ ?>

settings/override/webdav.ini.append.php

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

[GeneralSettings]
EnableWebDAV=true

*/ ?>

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Linh Vu

Wednesday 27 February 2008 9:04:50 pm

Put this in your override/site.ini.append.php

[SiteSettings]
SiteList[]=mysite /* siteaccess name */
SiteList[]=myothersite

That variable is used by WebDAV to identify the siteaccesses you want webdav access to.

The error is probably because ezp couldn't find the siteaccess it needs, so it couldn't get the database access account.

See how you go. :)

If I had more time, I would write less code.

Brendan Pike

Wednesday 27 February 2008 9:13:41 pm

Spot on Linh!

After I added SiteList it then worked flawlessly.

Many thanks for taking the time to help. :)

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Linh Vu

Wednesday 27 February 2008 9:21:06 pm

No worries, mate. :)

If I had more time, I would write less code.

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 19 2025 10:43:40
Script start
Timing: Jan 19 2025 10:43:40
Module start 'layout'
Timing: Jan 19 2025 10:43:40
Module start 'content'
Timing: Jan 19 2025 10:43:41
Module end 'content'
Timing: Jan 19 2025 10:43:41
Script end

Main resources:

Total runtime0.8579 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.2734152.6406
Module start 'layout' 0.00600.0034 741.914139.4766
Module start 'content' 0.00940.8470 781.3906567.1563
Module end 'content' 0.85630.0015 1,348.546916.1484
Script end 0.8579  1,364.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3796160.0002
Check MTime0.00130.1571160.0001
Mysql Total
Database connection0.00060.070610.0006
Mysqli_queries0.792492.3679660.0120
Looping result0.00060.0732640.0000
Template Total0.816695.220.4083
Template load0.00240.283620.0012
Template processing0.814294.903020.4071
Template load and register function0.00030.029510.0003
states
state_id_array0.00130.156110.0013
state_identifier_array0.00140.161520.0007
Override
Cache load0.00230.2730360.0001
Sytem overhead
Fetch class attribute can translate value0.00070.081120.0003
Fetch class attribute name0.00110.132970.0002
XML
Image XML parsing0.00220.256820.0011
class_abstraction
Instantiating content class attribute0.00000.005490.0000
General
dbfile0.00240.2830160.0002
String conversion0.00000.001240.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
6content/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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/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: 7

Time used to render debug report: 0.0001 secs