You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by azeem ahmad <az...@msn.com> on 2006/03/01 16:57:31 UTC
[users@httpd] write prob in webdav
hi list
i have configured webdav, its working well while copying or reading the
contents, but its not writing or deleting any file, y is that so.
apache is working as user apache
below is the config
Alias /webdav/ "/var/www/webdav/"
<Directory /var/www/webdav>
DAV on
AuthType Basic
AuthName "WebDAV Storage"
AuthUserFile /etc/httpd/passwd/passwd.dav
AuthMySQLEnable off
</Directory>
<Directory /var/www/webdav/must/>
Options All
require user must
</Directory>
and below is dir permissions
drwxr-x--- 2 apache apache 4096 Nov 28 02:32 must
Regards
Azeem
---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] write prob in webdav
Posted by Joshua Slive <jo...@slive.ca>.
On 3/1/06, azeem ahmad <az...@msn.com> wrote:
> strace httpd -X gives quite a long output and i dont know what to do with it
> n yea i sent it on fedora list also, ok i'll keep it in mind next time
> SELinux isnt enabled on the system, but if u tell me the way i could
> re-check it and turn it off
Put the strace output on a website and send us the URL.
SELinux FAQs linked from the bottom of this page:
http://httpd.apache.org/docs/2.2/faq/error.html#error.permissiondenied
SELinux is turned on by default in fedora.
Joshua.
---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] write prob in webdav
Posted by azeem ahmad <az...@msn.com>.
>From: "Joshua Slive" <jo...@slive.ca>
>Reply-To: users@httpd.apache.org
>To: users@httpd.apache.org
>Subject: Re: [users@httpd] write prob in webdav
>Date: Wed, 1 Mar 2006 12:07:54 -0500
>
>On 3/1/06, azeem ahmad <az...@msn.com> wrote:
> >
> >
> > and i have deleted lockdb, changed dav permissions to
> > drwxr-xr-x 2 apache apache 4096 Nov 29 04:27 dav
> >
> > restarted httpd
> > but even neither apache is creating a lockdb nor the problem resolved
>
>Check the error log again. (You should be doing this constantly.)
>
>If that doesn't help, you'll need to do something like "strace httpd
>-X" to see what exact syscall is failing.
>
>Oh, wait a second. I didn't notice you also sent this to a fedora
>list. (That is impolite, by the way. Try one list at a time. Don't
>scatter-shot to every available forum.) This implies that the problem
>is likely SELinux. Try turning off SELinux and see if the problem
>goes away.
>
>Joshua.
strace httpd -X gives quite a long output and i dont know what to do with it
n yea i sent it on fedora list also, ok i'll keep it in mind next time
SELinux isnt enabled on the system, but if u tell me the way i could
re-check it and turn it off
Regards
Azeem
---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] write prob in webdav
Posted by Joshua Slive <jo...@slive.ca>.
On 3/1/06, azeem ahmad <az...@msn.com> wrote:
>
>
> and i have deleted lockdb, changed dav permissions to
> drwxr-xr-x 2 apache apache 4096 Nov 29 04:27 dav
>
> restarted httpd
> but even neither apache is creating a lockdb nor the problem resolved
Check the error log again. (You should be doing this constantly.)
If that doesn't help, you'll need to do something like "strace httpd
-X" to see what exact syscall is failing.
Oh, wait a second. I didn't notice you also sent this to a fedora
list. (That is impolite, by the way. Try one list at a time. Don't
scatter-shot to every available forum.) This implies that the problem
is likely SELinux. Try turning off SELinux and see if the problem
goes away.
Joshua.
---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] write prob in webdav
Posted by azeem ahmad <az...@msn.com>.
>From: "Joshua Slive" <jo...@slive.ca>
>Reply-To: users@httpd.apache.org
>To: users@httpd.apache.org
>Subject: Re: [users@httpd] write prob in webdav
>Date: Wed, 1 Mar 2006 11:42:43 -0500
>
>On 3/1/06, azeem ahmad <az...@msn.com> wrote:
>
> > here is lockdb directive in my httpd.conf
> > <IfModule mod_dav_fs.c>
> > # Location of the WebDAV lock database.
> > DAVLockDB /etc/httpd/dav/lockdb
> > </IfModule>
> >
> > i also tried it by getting out of ifmodule directive, but it doesnt work
>
>Gettind rid of <IfModule> is a good idea. It only hides errors, since
>you need DavLockDB.
>
> > one more thing, may be i m wrong on it, i created a file myself by
>"touch
> > lockdb" in dir /etc/httpd/dav
> > is it a right way
>
>No, the server should create it itself. You've likely created a file
>that has permissions that don't allow apache to write to it. Delete
>it.
>
>Joshua.
>
its now out of <IfModule>
DAVLockDB /etc/httpd/dav/lockdb
and i have deleted lockdb, changed dav permissions to
drwxr-xr-x 2 apache apache 4096 Nov 29 04:27 dav
restarted httpd
but even neither apache is creating a lockdb nor the problem resolved
Regards
Azeem
---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] write prob in webdav
Posted by Joshua Slive <jo...@slive.ca>.
On 3/1/06, azeem ahmad <az...@msn.com> wrote:
> here is lockdb directive in my httpd.conf
> <IfModule mod_dav_fs.c>
> # Location of the WebDAV lock database.
> DAVLockDB /etc/httpd/dav/lockdb
> </IfModule>
>
> i also tried it by getting out of ifmodule directive, but it doesnt work
Gettind rid of <IfModule> is a good idea. It only hides errors, since
you need DavLockDB.
> one more thing, may be i m wrong on it, i created a file myself by "touch
> lockdb" in dir /etc/httpd/dav
> is it a right way
No, the server should create it itself. You've likely created a file
that has permissions that don't allow apache to write to it. Delete
it.
Joshua.
---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] write prob in webdav
Posted by azeem ahmad <az...@msn.com>.
>From: "Joshua Slive" <jo...@slive.ca>
>Reply-To: users@httpd.apache.org
>To: users@httpd.apache.org
>Subject: Re: [users@httpd] write prob in webdav
>Date: Wed, 1 Mar 2006 11:17:55 -0500
>
>On 3/1/06, azeem ahmad <az...@msn.com> wrote:
> >
> > [Wed Nov 29 03:43:57 2000] [error] [client 192.168.3.6] The locks could
>not
> > be queried for verification against a possible "If:" header. [500, #0]
> > [Wed Nov 29 03:43:57 2000] [error] [client 192.168.3.6] Could not open
>the
> > lock database. [500, #400]
> > [Wed Nov 29 03:43:57 2000] [error] [client 192.168.3.6] (13)Permission
> > denied: Could not open property database. [500, #1]
>
>Take a look at the DavLockDB directive. Yours appears to be set
>incorrectly (probably to a directory without write permissions for the
>server).
>
>Joshua.
>
i tried following mode on /etc/httpd/dav dir which contains lockdb
chmod -R 755 dav/
chmod -R 775 dav/
chmod -R 770 dav/
chmod -R 777 dav/
here is lockdb directive in my httpd.conf
<IfModule mod_dav_fs.c>
# Location of the WebDAV lock database.
DAVLockDB /etc/httpd/dav/lockdb
</IfModule>
i also tried it by getting out of ifmodule directive, but it doesnt work
one more thing, may be i m wrong on it, i created a file myself by "touch
lockdb" in dir /etc/httpd/dav
is it a right way
Regards
Azeem
is it right way
---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] write prob in webdav
Posted by Joshua Slive <jo...@slive.ca>.
On 3/1/06, azeem ahmad <az...@msn.com> wrote:
>
> [Wed Nov 29 03:43:57 2000] [error] [client 192.168.3.6] The locks could not
> be queried for verification against a possible "If:" header. [500, #0]
> [Wed Nov 29 03:43:57 2000] [error] [client 192.168.3.6] Could not open the
> lock database. [500, #400]
> [Wed Nov 29 03:43:57 2000] [error] [client 192.168.3.6] (13)Permission
> denied: Could not open property database. [500, #1]
Take a look at the DavLockDB directive. Yours appears to be set
incorrectly (probably to a directory without write permissions for the
server).
Joshua.
---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] write prob in webdav
Posted by azeem ahmad <az...@msn.com>.
>From: "Joshua Slive" <jo...@slive.ca>
>Reply-To: users@httpd.apache.org
>To: users@httpd.apache.org
>Subject: Re: [users@httpd] write prob in webdav
>Date: Wed, 1 Mar 2006 11:08:18 -0500
>
>On 3/1/06, azeem ahmad <az...@msn.com> wrote:
> > hi list
> > i have configured webdav, its working well while copying or reading the
> > contents, but its not writing or deleting any file, y is that so.
> > apache is working as user apache
> > below is the config
> >
> >
> > Alias /webdav/ "/var/www/webdav/"
> > <Directory /var/www/webdav>
> > DAV on
> > AuthType Basic
> > AuthName "WebDAV Storage"
> > AuthUserFile /etc/httpd/passwd/passwd.dav
> > AuthMySQLEnable off
> > </Directory>
> >
> > <Directory /var/www/webdav/must/>
> > Options All
> > require user must
> > </Directory>
> >
> > and below is dir permissions
> > drwxr-x--- 2 apache apache 4096 Nov 28 02:32 must
>
>error_log? access_log?
>
>Joshua.
ssl_access_log
192.168.3.6 - must [29/Nov/2000:03:43:55 +0500] "PROPFIND /webdav/must
HTTP/1.1" 207 825
192.168.3.6 - must [29/Nov/2000:03:43:57 +0500] "HEAD
/webdav/must/offensive.txt HTTP/1.1" 404 -
192.168.3.6 - must [29/Nov/2000:03:43:57 +0500] "PUT
/webdav/must/offensive.txt HTTP/1.1" 500 614
ssl_error_log
[Wed Nov 29 03:43:57 2000] [error] [client 192.168.3.6] File does not exist:
/var/www/webdav/must/offensive.txt
[Wed Nov 29 03:43:57 2000] [error] [client 192.168.3.6] The locks could not
be queried for verification against a possible "If:" header. [500, #0]
[Wed Nov 29 03:43:57 2000] [error] [client 192.168.3.6] Could not open the
lock database. [500, #400]
[Wed Nov 29 03:43:57 2000] [error] [client 192.168.3.6] (13)Permission
denied: Could not open property database. [500, #1]
Regards
Azeem
---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] write prob in webdav
Posted by Joshua Slive <jo...@slive.ca>.
On 3/1/06, azeem ahmad <az...@msn.com> wrote:
> hi list
> i have configured webdav, its working well while copying or reading the
> contents, but its not writing or deleting any file, y is that so.
> apache is working as user apache
> below is the config
>
>
> Alias /webdav/ "/var/www/webdav/"
> <Directory /var/www/webdav>
> DAV on
> AuthType Basic
> AuthName "WebDAV Storage"
> AuthUserFile /etc/httpd/passwd/passwd.dav
> AuthMySQLEnable off
> </Directory>
>
> <Directory /var/www/webdav/must/>
> Options All
> require user must
> </Directory>
>
> and below is dir permissions
> drwxr-x--- 2 apache apache 4096 Nov 28 02:32 must
error_log? access_log?
Joshua.
---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org