Page 1 of 1

Enabling webdav

PostPosted: 30. August 2010 01:48
by ethicalhack3r
I'm trying to implement webdav into a project of mine using the latest xampp for Linux (ubuntu server 10.04).

httpd.conf:
Code: Select all
DavLockDB "/opt/lampp/htdocs/hackable/uploads"
Alias /webdav /opt/lampp/htdocs/hackable/uploads

<Location /webdav>
Dav On
</Location>


Apache is running as user 'nobody' in the 'nogroup' group.

I can connect but not execute any commands. Using a webdav client 'cadaver' I get an internal server error 500 when trying to execute any commands.

I assumed this was down to permissions so I changed the permissions as such:

Code: Select all
chown -R nobody /opt/lampp/htdocs/hackable/uploads


Still no joy.

Any ideas?

Re: Enabling webdav

PostPosted: 30. August 2010 12:01
by Nobbie
ethicalhack3r wrote:Any ideas?


SImply look into the error_log

Re: Enabling webdav

PostPosted: 30. August 2010 15:04
by ethicalhack3r
Nothing really indicative in the error_log apart from the server error 500 and 'permission denied'. Which only confirmed my suspicion that it was a permissions based error.

In fact the solution was that I was using a directory instead of a file for the DavLockDB.

Code: Select all
DavLockDB "/opt/lampp/htdocs/hackable/uploads"


Should have been:
Code: Select all
DavLockDB "/opt/lampp/htdocs/hackable/uploads/[anyfilename]"


Problem solved.