Forums / Install & configuration / WebDAV configuration trouble

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.

eZ debug

Timing: Jan 31 2025 01:14:56
Script start
Timing: Jan 31 2025 01:14:56
Module start 'content'
Timing: Jan 31 2025 01:14:56
Module end 'content'
Timing: Jan 31 2025 01:14:57
Script end

Main resources:

Total runtime0.2202 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 588.0469370.2891
Module start 'content' 0.00750.0161 958.33591,005.6875
Module end 'content' 0.02360.1965 1,964.02343,894.2188
Script end 0.2201  5,858.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00462.0951200.0002
Check MTime0.00140.6511200.0001
Mysql Total
Database connection0.00080.373810.0008
Mysqli_queries0.119254.14711410.0008
Looping result0.00150.68721390.0000
Template Total0.196089.010.1960
Template load0.00100.432010.0010
Template processing0.195088.587310.1950
Override
Cache load0.00070.297110.0007
Sytem overhead
Fetch class attribute can translate value0.00220.988810.0022
XML
Image XML parsing0.00020.104110.0002
General
dbfile0.01034.6693200.0005
String conversion0.00000.002830.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs