Enabling webdav

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Enabling webdav

Postby ethicalhack3r » 30. August 2010 01:48

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?
ethicalhack3r
 
Posts: 2
Joined: 30. August 2010 01:45

Re: Enabling webdav

Postby Nobbie » 30. August 2010 12:01

ethicalhack3r wrote:Any ideas?


SImply look into the error_log
Nobbie
 
Posts: 8770
Joined: 09. March 2008 13:04

Re: Enabling webdav

Postby ethicalhack3r » 30. August 2010 15:04

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.
ethicalhack3r
 
Posts: 2
Joined: 30. August 2010 01:45


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 1 guest