My problem seems to be with file permissions. I have been able to mount the shared directory and open the file. However, when I try to save the edited file, I cannot. The file permissions seem wide open to me. I tried running litmus but received the error "Server must allow MKCOL." Any suggestions?
====================== Jeff Shearer, CISA, CISSP -----Original Message----- From: "Jeff Shearer" [j...@shearer-family.org] Date: 06/06/2011 12:02 PM To: users@httpd.apache.org Subject: [users@httpd] Trouble implementing webdav on FreeBSD Thanks again for your help. This is my first attempt to implement WebDav. I am using FreeBSD 7.2 and Apache 2.2.11. I am using cadaver on my Ubuntu 11.4 32 bit desktop. I am able to connect to the server from the CLI. When I type in “ls” I see my file, test.txt with a little star to the left. I have no idea what that means. When I try to edit test.txt, I see the message, “Locking `test.txt': failed: 500 Internal Server Error .” When I review my apache error log, I see the following entries: [Mon Jun 06 14:24:25 2011] [error] [client 192.168.9.88] Could not LOCK /share/test.txt due to a failed precondition (e.g. other locks). [500, #0] [Mon Jun 06 14:24:25 2011] [error] [client 192.168.9.88] The locks could not be queried for verification against a possible "If:" header. [500, #0] [Mon Jun 06 14:24:25 2011] [error] [client 192.168.9.88] Could not open the lock database. [500, #400] [Mon Jun 06 14:24:25 2011] [error] [client 192.168.9.88] (13)Permission denied: Could not open property database. [500, #1] Configuration snipits ============================== The directory I am using for the share where files are stored has these permissions initially: drwxr-xr-x 2 root mygroup 512 Jun 6 12:43 share Even though I changed the directory permissions as follows, I still get the same errors: drwxrwxrwx 2 www www 512 Jun 6 12:43 share The test file within that directory is wide open with the following permissions: -rwxrwxrwx 1 www www 51 Jun 6 12:43 test.txt I have added the alias “share” in the virtual host: Alias /share /files/share And configured the directory like this: <Directory /files/share> Dav on Options +Includes +Indexes AuthType Basic AuthName "Development site" AuthUserFile /files/auth/passwords AuthGroupFile /files/auth/accessgroups Require group AuthorizedUsers </Directory> Within the virtual host container I have set the Lock DB: DavLockDB /usr/local/etc/apache22/DavLock Permissions on the Lock DB directory are wide open: drwxrwxrwx 2 www www 512 Jun 6 12:27 DavLock I have played around enabling and disabling mod_unique_id.so. When enabled, I cannot connect to the server using cadaver. Here are the mods that I have configured to load (mod_unique_id.so is not enabled) LoadModule authn_file_module libexec/apache22/mod_authn_file.so LoadModule authn_dbm_module libexec/apache22/mod_authn_dbm.so LoadModule authn_anon_module libexec/apache22/mod_authn_anon.so LoadModule authn_default_module libexec/apache22/mod_authn_default.so LoadModule authn_alias_module libexec/apache22/mod_authn_alias.so LoadModule authz_host_module libexec/apache22/mod_authz_host.so LoadModule authz_groupfile_module libexec/apache22/mod_authz_groupfile.so LoadModule authz_user_module libexec/apache22/mod_authz_user.so LoadModule authz_dbm_module libexec/apache22/mod_authz_dbm.so LoadModule authz_owner_module libexec/apache22/mod_authz_owner.so LoadModule authz_default_module libexec/apache22/mod_authz_default.so LoadModule auth_basic_module libexec/apache22/mod_auth_basic.so LoadModule auth_digest_module libexec/apache22/mod_auth_digest.so LoadModule file_cache_module libexec/apache22/mod_file_cache.so LoadModule cache_module libexec/apache22/mod_cache.so LoadModule disk_cache_module libexec/apache22/mod_disk_cache.so LoadModule dumpio_module libexec/apache22/mod_dumpio.so LoadModule include_module libexec/apache22/mod_include.so LoadModule filter_module libexec/apache22/mod_filter.so LoadModule charset_lite_module libexec/apache22/mod_charset_lite.so LoadModule deflate_module libexec/apache22/mod_deflate.so LoadModule log_config_module libexec/apache22/mod_log_config.so LoadModule logio_module libexec/apache22/mod_logio.so LoadModule env_module libexec/apache22/mod_env.so LoadModule mime_magic_module libexec/apache22/mod_mime_magic.so LoadModule cern_meta_module libexec/apache22/mod_cern_meta.so LoadModule expires_module libexec/apache22/mod_expires.so LoadModule headers_module libexec/apache22/mod_headers.so LoadModule usertrack_module libexec/apache22/mod_usertrack.so #LoadModule unique_id_module libexec/apache22/mod_unique_id.so LoadModule setenvif_module libexec/apache22/mod_setenvif.so LoadModule version_module libexec/apache22/mod_version.so LoadModule ssl_module libexec/apache22/mod_ssl.so LoadModule mime_module libexec/apache22/mod_mime.so LoadModule dav_module libexec/apache22/mod_dav.so LoadModule status_module libexec/apache22/mod_status.so LoadModule autoindex_module libexec/apache22/mod_autoindex.so LoadModule asis_module libexec/apache22/mod_asis.so LoadModule info_module libexec/apache22/mod_info.so LoadModule cgi_module libexec/apache22/mod_cgi.so LoadModule dav_fs_module libexec/apache22/mod_dav_fs.so LoadModule vhost_alias_module libexec/apache22/mod_vhost_alias.so LoadModule negotiation_module libexec/apache22/mod_negotiation.so LoadModule dir_module libexec/apache22/mod_dir.so LoadModule imagemap_module libexec/apache22/mod_imagemap.so LoadModule actions_module libexec/apache22/mod_actions.so LoadModule speling_module libexec/apache22/mod_speling.so LoadModule userdir_module libexec/apache22/mod_userdir.so LoadModule alias_module libexec/apache22/mod_alias.so LoadModule rewrite_module libexec/apache22/mod_rewrite.so LoadModule perl_module libexec/apache22/mod_perl.so --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org