Plesk and WebDav

Need to get WebDav running on a directory within a domain hosted on Plesk 8.4 for Linux (Fedora 8).

These URLs were helpful:

Created the following files: /var/www/vhost/domain.com/conf/vhost.conf and /var/www/vhost/domain.com/conf/vhost_ssl.conf

And populated them with:

# vhost.conf
Alias /webdav_directory /var/www/vhosts/domain.com/httpdocs/webdav_directory
<Location /managementdocs>
DAV On
Options +Indexes
</Location>

And…

# vhost_ssl.conf
Alias /webdav_directory /var/www/vhosts/domain.com/httpdocs/webdav_directory
<Location /managementdocs>
DAV On
SSLRequireSSL
Options +Indexes
</Location>

Obviously you don’t need both as you may just want it accessible via HTTPs.

Then, rebuilt the Plesk webserver configuration file with the following command:  /usr/local/psa/admin/sbin/websrvmng –reconfigure-vhost –vhost-name=domain.com

This appeared to work and allowed adding the URL via windows “Add new network place”.

Other commands we issued (allowing read/write from the apache/psacln user – could possibly do this with chmod 2775?):

 chmod 777 /var/www/vhosts/domain.com/httpdocs/webdav_directory

Also, you probably don’t want it accessible from anyone and everyone.  You can add password authentication via the Plesk interface using protected directories.

Cobalt df: cannot read table of mounted filesystems

Had an old cobalt system with the following issue:

[root /root]# df
df: cannot read table of mounted filesystems

Checking the mtab file it showed:

[root /root]# ls -la /etc/mtab
-rw-r–r–    1 root     root            0 Apr 20 11:32 /etc/mtab

So, for some reason it wasn’t updating the mtab file. Tried the following which pointed the finger at the possible problem:

[root /root]# cat /proc/mounts > /etc/mtab
cat: write error: No space left on device

Searching through the contents of the / partition with “du -sh dirs” show some files that could be moved to another position.  Once moving the files and creating a symlink the mtab could be regenerated with the cat /proc/mounts > /etc/mtab command and then df -h started to work.

The machine was probably rebooted and /etc/mtab recreated, however, as there wasn’t any space on the / partition could not re-populate the mtab file.