Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Help with apache and webdav setup

  1. #1
    Join Date
    Aug 2009
    Location
    Somewhere in Oregon
    Beans
    43
    Distro
    Ubuntu 9.10 Karmic Koala

    Help with apache and webdav setup

    Well, I have been working with apache and webdav all day and I have made some progress I have made a Vhost that correctly points to the folder I want it to and webdav that was able to allow a windows XP box with dreamweaver download the files in the server using webdav protocol. The only problem is that when I try to edit the files with dreamweaver and reupload them to the server acess is denied by the server(I think).
    I'm just wondering if anyone else has had any similer problems and can help me.

    I am using this tutorial which is desinged for 8.10 I'm currently using 9.04. Everything seemed to be working.

    If anyone could help me out I would appiciate very much.

  2. #2
    Join Date
    Jun 2009
    Location
    Dublin, IRL
    Beans
    130
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Help with apache and webdav setup

    Is it a Permission issue with the web server directory. Other users don't have write access so you can't upload from the XP machine.You need to go research the chmod command. I just did some chmod things on my web server before I posted as a test and it caused other problems so I'm not posting chmod commands..

  3. #3
    Join Date
    Aug 2009
    Location
    Somewhere in Oregon
    Beans
    43
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Help with apache and webdav setup

    I think its a permission issue but I thought I set up the permissions in the tutorial. Ill go look it up. Thanks Ill update to any change.

  4. #4
    Join Date
    Aug 2008
    Beans
    285
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Help with apache and webdav setup

    Looks like the tutorial you used has you chown the files to be owned by root with the group of www-data, then it has you chmod 640 the files. Since Apache runs as www-data by default, the web server won't have access to write the files, but can read.

  5. #5
    Join Date
    Aug 2009
    Location
    Somewhere in Oregon
    Beans
    43
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Help with apache and webdav setup

    Well I dont understand chown command yet or what "640" means but it seems that I can read the files fine. How do I change it so www-data can also write to the files. I created a webdav user and password in a file called "var/www/web1/passwd.dav" which created the webdav user. How do I give that webdav user permission to edit the files?

    Edit > Well it seems that I need to use the chmod command to add premissions to the directory /var/www/web1/web/ But the chown command gives the group "www-data" access to the directory but it also need permissions for the directory as well.
    Tell me if I'm wrong or dont understand.
    Last edited by munchi3s; August 21st, 2009 at 05:32 PM.

  6. #6
    Join Date
    Aug 2008
    Beans
    285
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Help with apache and webdav setup

    I think you've got it, but I'm not sure..

    Anyway, you'll want to do something like:
    Code:
    chmod -R g+w /var/www/web1/web/
    That will give the group www-data access to write to that directory as well as any files underneath.

  7. #7
    Join Date
    Aug 2009
    Location
    Somewhere in Oregon
    Beans
    43
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Help with apache and webdav setup

    I tried what you gave me, yet to no avail. Its frustrating being so close I can taste it.
    I'm going to keep trying things if you come up with something else let me know .

    Edit> The chmod commands dont seem to do anything(unless its already done) but this is what I'm looking at. At this point dreamweaver still cannot write index.html to the server.

    root@apache-webserver:/var/www/web1# ls -l
    total 12
    -rw-r----- 1 root www-data 47 2009-08-21 09:41 passwd.dav
    -rw-r----- 1 root www-data 28 2009-08-20 18:39 passwd.dav~
    drw-r----- 3 www-data root 4096 2009-08-20 20:09 web
    root@apache-webserver:/var/www/web1# chmod -R g+w /var/www/web1/web/
    root@apache-webserver:/var/www/web1# ls =l
    ls: cannot access =l: No such file or directory
    root@apache-webserver:/var/www/web1# ls -l
    total 12
    -rw-r----- 1 root www-data 47 2009-08-21 09:41 passwd.dav
    -rw-r----- 1 root www-data 28 2009-08-20 18:39 passwd.dav~
    drw-r----- 3 www-data root 4096 2009-08-20 20:09 web
    root@apache-webserver:/var/www/web1#
    Last edited by munchi3s; August 21st, 2009 at 06:13 PM.

  8. #8
    Join Date
    Aug 2009
    Location
    Somewhere in Oregon
    Beans
    43
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Help with apache and webdav setup

    It may be a lock issue. DAVlock has given other people issues.

  9. #9
    Join Date
    Aug 2008
    Beans
    285
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Help with apache and webdav setup

    Quote Originally Posted by munchi3s View Post
    It may be a lock issue. DAVlock has given other people issues.
    Hmm.. Good point. Is "access denied" just the error in Dreamweaver?

    Perhaps a tail of /var/log/apache/error.log would help.

  10. #10
    Join Date
    Aug 2009
    Location
    Somewhere in Oregon
    Beans
    43
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Help with apache and webdav setup

    Access denied is only in dreamweaver. ill look at the file you specified and see if there is anything there that could help me.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •