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.