Sunday 04 December 2005 12:03:04 pm
Trying to setup webdav on EZ 3.7.2 with plesk 7.5 - php 4.3.11 - apache 2 Based on what I have tried so far - details below - the following happen:
Under the browsers firefox 1.0.7 and IE 6 sp2 1) Going to http://webdav.mydomian.com/# results in the page webdav.php file being downloaded to my local machine with entire php code intact. (seems as if the php code is not being compiled – I tried to force php to execute for that file but that did not work)
2) Going to http://webdav.mydomian.com/webdav.php results in a Error kernel (20) - Module not found - error message What I have done so far is based on the instructions at http://ez.no/doc/ez_publish/technical_manual/3_6/features/webdav/setting_it_up
1) Changed in the file /var/www/vhosts/mydomian.com/httpdocs/settings/webdav.ini:
[GeneralSettings]
EnableWebDAV=false
Logging=disabled
to
[GeneralSettings]
EnableWebDAV=true Logging=disabled
2) My file /var/www/vhosts/mydomian.com/httpdocs/settings/override/site.ini.append.php has the following settings:
[SiteSettings]
DefaultAccess=corporate_user
SiteList[]=corporate_user
3) Clear all caches
4) For the webdav.mydomain.com url to be used to access the ez webdav, I created the following config file:
Location:
/etc/httpd/conf/vhost-webdav.conf This file was included in the file: /etc/httpd/conf/httpd.include by the use of Include /etc/httpd/conf/vhost-webdav.conf which was placedat the bottom of /etc/httpd/conf/httpd.include
<Virtualhost 123.123.22.12:80>
ServerName webdav.mydomian.com:80
ServerAdmin [email protected]
DocumentRoot /var/www/vhosts/mydomian.com/httpdocs
<Directory /var/www/vhosts/mydomian.com/httpdocs>
php_admin_flag engine on
AddType application/x-httpd-php .php .php4 .php3 .phtml
<IfModule sapi_apache2.c>
php_admin_flag engine on
AddType application/x-httpd-php .php .php4 .php3 .phtml
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
AddType application/x-httpd-php .php .php4 .php3 .phtml
</IfModule>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>
RewriteEngine On
RewriteRule . /webdav.php </VirtualHost>
My vhost file for mydomain.com looks like:
Location
/var/www/vhosts/mydomian.com/conf/vhost.conf
<Directory /var/www/vhosts/mydomian.com/httpdocs>
<IfModule sapi_apache2.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>
<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>
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^crm/.* - [L]
RewriteRule ^billing/.* - [L]
RewriteRule ^cms/.* - [L]
Rewriterule ^/var/storage/.* - [L]
Rewriterule ^/var/[^/]+/storage/.* - [L]
RewriteRule ^/var/cache/texttoimage/.* - [L]
RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
Rewriterule ^/share/icons/.* - [L]
Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
RewriteRule ^/favicon.ico - [L]
RewriteRule ^/robots.txt - [L]
# Uncomment the following lines when using popup style debug.
# RewriteRule ^/var/cache/debug.html.* - [L]
# RewriteRule ^/var/[^/]+/cache/debug.html.* - [L]
RewriteRule .* /index.php </IfModule> The http.include file that the above vhost files was included into /var/www/vhosts/mydomian.com/conf/vhost.conf looks like the one below:
Location:
/var/www/vhosts/mydomian.com/conf/httpd.include
<VirtualHost 123.123.22.12:80>
ServerName mydomian.com:80
ServerAlias www.mydomian.com
UseCanonicalName Off
ServerAdmin "[email protected]"
DocumentRoot /var/www/vhosts/mydomian.com/httpdocs
CustomLog /var/www/vhosts/mydomian.com/statistics/logs/access_log plesklog
ErrorLog /var/www/vhosts/mydomian.com/statistics/logs/error_log
<IfModule mod_userdir.c>
UserDir /var/www/vhosts/mydomian.com/web_users
</IfModule>
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /var/www/vhosts/mydomian.com/httpdocs>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_value open_basedir "/var/www/vhosts/mydomian.com/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_value open_basedir "/var/www/vhosts/mydomian.com/httpdocs:/tmp"
</IfModule>
Options +Includes -ExecCGI
</Directory>
<Directory /var/www/vhosts/mydomian.com/web_users>
<IfModule sapi_apache2.c>
AddType text/plain .php .php4 .php3 .phtml
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
AddType text/plain .php .php5 .php4 .php3 .phtml
php_admin_flag engine off
</IfModule>
</Directory>
Include /var/www/vhosts/mydomian.com/conf/vhost.conf </VirtualHost>
5) I then ran he following linux command: /usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=mydomian.com 6) Then restarted the apache server from the plesk admin. Note - I did not use plesk to create any subdomain nor did I manually create any symbolic links to an already created sub domain called webdav.mydomain.com Many Thanks In advance
|