Share » Forums » Install & configuration » WebDAV configuration; webdav.php is...

WebDAV configuration; webdav.php is not running. (Win XP SP3, xampp1.7.3)

WebDAV configuration; webdav.php is not running. (Win XP SP3, xampp1.7.3)

Monday 21 February 2011 1:31:27 pm - 7 replies

Author Message

Yannick Komotir

Tuesday 22 February 2011 1:03:03 am

Hi,

I had work with webdav with eZ some time ago it worked fine. Can you turn off Apache webdav module and try again ?

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

Falkmar Fischer

Tuesday 22 February 2011 9:09:14 am

Thanks Yannick, for the reply. There is not the right way. DAV_Module off and exclude the hhtp-dav.conf does not help. The way from the manual does not work.

http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Installation/Virtual-host-setup

The normal configuration for DAV in the http-dav.conf results for all other domains "403". Do not worry, eZ continues. Someone had an idea. How is working the WebDAV from eZ? Where is my wrong? I show you something nice too. The following example matches all domains of the server.

http-dav.conf

DavLockDB "C:/Testserver/xampp/apache/logs/Dav.Lock"
...
Alias / "E:/proj/www/ez/htdocs/"
<Directory "E:/proj/www/ez/htdocs">
Dav On
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

http-vhost.conf

http-vhost.conf
...
RewriteRule .* index\.php
#RewriteRule .* /index\.php
...

Result for 10.0.0.2 (www/contao.loc)

Warning: require() [function.require]: open_basedir restriction in effect. File(E:\proj\www\ez\htdocs\autoload.php) is not within the allowed path(s): (E:/proj/www/contao/htdocs/) in E:\proj\www\ez\htdocs\index.php on line 45
Warning: require(E:\proj\www\ez\htdocs\autoload.php) [function.require]: failed to open stream: Operation not permitted in E:\proj\www\ez\htdocs\index.php on line 45
Fatal error: require() [function.require]: Failed opening required 'autoload.php' (include_path='.;C:\Testserver\xampp\php\PEAR') in E:\proj\www\ez\htdocs\index.php on line 45

Today, I have switched all Hosts on IP-based and use for this a virtual interface (Microsoft Loopack adapter). Tomorrow I test everything in name-based hosts, and then I'm going to throw stones into the Pacific.Below my configuration of today. "Order allow, deny" and "Allow from all" do not come from the manual. Without these rules, I could not install.
I hope I have not buried eZ and wish a good night.
Falkmar

<VirtualHost 10.0.0.7:80>
<Directory "E:/proj/www/ez/htdocs">
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<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
RewriteCond %{HTTP_HOST} ^webdav\..*
RewriteRule ^(.*) /webdav.php [L]
RewriteRule ^/([^/]+/)?content/treemenu.* /index_treemenu\.php [L]
RewriteRule ^/var/([^/]+/)?storage/images(-versioned)?/.* - [L]
RewriteRule ^/var/([^/]+/)?cache/(texttoimage|public)/.* - [L]
RewriteRule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
RewriteRule ^/share/icons/.* - [L]
RewriteRule ^/extension/[^/]+/design/[^/]+/(stylesheets|flash|images|lib|javascripts?)/.* - [L]
RewriteRule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
RewriteRule ^/var/storage/packages/.* - [L]
RewriteRule ^/favicon\.ico - [L]
RewriteRule ^/design/standard/images/favicon\.ico - [L]
RewriteRule .* /index\.php
</IfModule>
RewriteLog "C:\Testserver\xampp\apache\logs\rewrite.log"
RewriteLogLevel 9
ErrorLog "E:/proj/www/ez/logs/ez-error.log"
CustomLog "E:/proj/www/ez/logs/ez-access.log" combined
DocumentRoot "E:/proj/www/ez/htdocs/"
php_admin_value upload_tmp_dir "E:/proj/www/ez/htdocs/tmp/"
php_admin_value session.save_path "E:/proj/www/ez/htdocs/tmp/"
ServerAdmin postmaster@ez.loc
ServerName ez.loc
ServerAlias webdav.ez.loc
ServerAlias www.ez.loc
</VirtualHost>

webshop - extension searched

Yannick Komotir

Wednesday 23 February 2011 12:54:08 am

Hi,

For resuming, WebDAV work like follow : the eZ Webdav suppose that not mod_dav is not installed, the class create appropriate webdav header to send in client according request.

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

Bayron Guevara

Wednesday 23 February 2011 2:09:22 pm

First, I'd like to answer your questions:

1. Includes 4.4 ez really an own WebDAV server?.
Yes, eZ currently comes with a WebDav php handler that behaves like a WebDav Server.

2. If so, can Apache WebDAV and WebDAV eZ run atthe same time?
Yes, but you shouldn't do it over the same directory or domain, so turn off the Apache Dav Module and try again.

3. I set up WebDAV drives. These work. Sorry, no php files are executed. Is my configuration correct?
I guess that you've configured those drivers under an IP based schema and not using a domain, so in this way only the Dav Module is invoked. I suggest that you use only the eZ Publish Web Dav implementation.

Your last vhost configuration seems well. eZ Publish comes with its own WebDav Server, so turn off all the WebDav server configurations that applies to the eZ Publish installation directory and then test it using webdav.ez.loc as URL.

Web Developer & Modern Philosopher
Visit http://www.laprensa.hn, http://www.diez.hn, http://www.estilo.hn

Falkmar Fischer

Thursday 24 February 2011 12:07:39 am

Thanks Bayron. These are good descriptions. I had to figure it out experimentally. I just wanted to learn eZ and now I dream of Indians.
1. I switched off the Apache DAV complete. eZ continues to work with DAV clients.
2. Joo, Byron. I have tried this route and lost the complete server. There are many problems with user rights and override if the server is not configured correctly. Here I miss a sentence in the manual. "Never use the DAV modules of the Apache for WebDAV server from eZ in a vhost basing IP." (ok, with better english)
3. Thank you for the very important point. Yes, I only use IP-based hosts on the basis of a virtual interface.

Everything works. I just had a global rule in the "httpd.conf" set for my project paths.

<Directory "E:/proj/www/*/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Now everything is running fine in the standard. The configuration can be copied directly from the manual. Only the temporary storage needs to be adjusted if necessary. This advice comes in the setup wizard if you do not have write permission on the root master server.
eZ is probably a really well-designed system, if one knows how it works :-)

Now I have time for the next problem. WebClient. The choice was not difficult. Nothing works in Windows. Only the WebClient Windows and BitKinex.
The WebClient in XP is super comfortable, but just MSIE + service "WebClient"+ problems.
"BitKinex" needs "Webclient" service not, is super easy to install and run without problems (so far)

Thanks Bayron and Yannick my Problem is fixed

webshop - extension searched

Yannick Komotir

Thursday 24 February 2011 1:17:20 am

Now I have time for the next problem. WebClient. The choice was not difficult. Nothing works in Windows. Only the WebClient Windows and BitKinex.

Do you try with Dav Explorer ? http://www.davexplorer.org/ i usually use it.

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

Falkmar Fischer

Thursday 24 February 2011 3:06:39 am

Wow, that's something really challenging. Link from the desktop to the "DAVExplorer.bat" and ready. My Dos was a little shaken. Probably too much Dust (2005) :-). works great, thanks

webshop - extension searched

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu