The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mod_dav issue

Discussion in 'General Discussion' started by bmcclure, Feb 4, 2005.

  1. bmcclure

    bmcclure Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    196
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Racine, WI
    I'm trying to set up webDav so that I can chare my calendars between work and home through Mozilla Sunbird.

    I followed the instructions for configuring it with apxs and everything went successfully. It inserted the AddModule and LoadModule lines liek it should. I then added this:

    Code:
    DAVLockDB /usr/local/apache/var/DAVLock
    DAVMinTimeout 600
    DAVDepthInfinity off
    LimitXMLRequestBody 1000000
    <Directory /home/thedigit/public_html/webdav>
            DAV On
            AllowOverride None
            Options None
            <Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
                    Require user thedigit
            </Limit>
    </Directory>
    I'm not very good at editing the httpd.conf file, does that look right to everyone? Is there a better way I should do it?

    Anyway, whenever I try to get on it I get a 403: Forbidden message and it never asks for a username/password or anything. I've tried it with Sunbird as well as BitKinex to make sure it wasn't the client. I can provide any further information you may need, I'm just not sure what is related to my issue. I've never used any type of DAV before and just installed it in order to sync this calendar. Thanks!

    Ben
     
  2. bmcclure

    bmcclure Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    196
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Racine, WI
    Oh, and I started off with 755 permissions on the directory and changed them to 777 to make sure it wasn't a permissions issue--same problem both times. The directory is empty and it IS owned by nobody:nobody. Thanks.
     
  3. DavidR

    DavidR Well-Known Member

    Joined:
    Feb 25, 2003
    Messages:
    177
    Likes Received:
    0
    Trophy Points:
    16
    Wow, I just started my search for information on exactly the same thing, and for the same reason. I'll post any success I have.

    David
     
  4. bmcclure

    bmcclure Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    196
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Racine, WI
    Thanks for the message David, good to know I'm not alone with this issue ;-) I'll also post any fixes I find, as mine still doesn't work. Thanks again!

    Ben
     
  5. DavidR

    DavidR Well-Known Member

    Joined:
    Feb 25, 2003
    Messages:
    177
    Likes Received:
    0
    Trophy Points:
    16
    I've been instructed to use the same apxs instructions you did. I haven't installed yet as this page http://www.webdav.org/mod_dav/install.html#apache seems to indicate that at least Apache 1.3.4 is needed? I have Apache 1.3.33 according to WHM. Can anyone confirm this?

    Update: there doesn't appear to be a 1.3.4 version so I don't know what they mean.
    David
     
    #5 DavidR, Feb 16, 2005
    Last edited: Feb 16, 2005
  6. shacker23

    shacker23 Well-Known Member

    Joined:
    Feb 20, 2005
    Messages:
    263
    Likes Received:
    1
    Trophy Points:
    16
    Ditto. Followed all instructions, tweaked (and opened up) permissions until I'm blue in the face. But litmus fails tests with 403 Forbidden messages. I've set up DAV on other servers, but DAV on this cPanel/RHEL installation is kicking my butt. Starting to become convinced there's something non-standard about it that's getting in the way...
     
  7. kerosin

    kerosin Well-Known Member

    Joined:
    Aug 27, 2002
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6

    Read 1.3.4 version as a 1.3.04 ..... :)
     
  8. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    Do the error logs report anything interesting regarding the 403 error?
    The logs may help to pinpoint the issue.
     
  9. DavidR

    DavidR Well-Known Member

    Joined:
    Feb 25, 2003
    Messages:
    177
    Likes Received:
    0
    Trophy Points:
    16
    Did you get anywhere with installing WebDAV? I've tried every configuration and example I could find but I can't even get apache to restart after adding it. If someone has this working, I would really love a copy of the relevant sections of your httpd.conf.

    David
     
  10. krellen

    krellen Member

    Joined:
    Oct 1, 2002
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    so does anyone have webdav working?
     
  11. kowalke

    kowalke Registered

    Joined:
    Sep 2, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I'm currently trying to get webDAV working, too. The problem is the version of apache we're using, as I understand it. cpanel only is stable with apache 1.3.33, but we need at least 1.3.4 for the limit directive in mod_dav to work; limit doesn't exist in apache before 1.3.4, which probably is why you're not asked for a password--and why you're getting errors.

    I'm getting the sinking feeling that cpanel and webDAV are incompatible with each other until cpanel certifies a newer version of apache.

    So, cpanel folk: PLEASE certify a newer version of apache!!! We really need webdav!
     
  12. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
  13. DavidR

    DavidR Well-Known Member

    Joined:
    Feb 25, 2003
    Messages:
    177
    Likes Received:
    0
    Trophy Points:
    16
  14. timdorr

    timdorr Well-Known Member
    PartnerNOC

    Joined:
    Jul 9, 2002
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Atlanta, GA

    Sorry to bump an old topic, but Apache 1.3.33 is a newer version than 1.3.4. 33 > 4 :)

    Also, I've gotten WebDAV working, though without authentication just yet (that part's easy, though). Here's some bits from my httpd.conf file.

    I've got something like this:

    Code:
    LoadModule bwlimited_module   libexec/mod_bwlimited.so
    LoadModule bytes_log_module   libexec/mod_log_bytes.so
    LoadModule auth_passthrough_module libexec/mod_auth_passthrough.so
    LoadModule dav_module        libexec/libdav.so
    Then later on I've got this:

    Code:
    AddModule mod_bwlimited.c
    AddModule mod_log_bytes.c
    AddModule mod_auth_passthrough.c
    AddModule mod_dav.c
    (note, I'm including those extra lines for context, they don't need to be added)

    Below that, I've got this line:

    Code:
    DAVLockDB /usr/local/apache/DAVLock
    I did these to make this file properly:

    Code:
    touch /usr/local/apache/DAVLock
    chmod 777 /usr/local/apache/DAVLock
    I added this inside of the VirtualHost of any user I'd like to enable WebDAV on:

    Code:
    Alias /dav /home2/timdorr/public_html
    
    <Location /dav>
        DAV On
        ForceType text/plain
    </Location>
    I used an alias so that I could do the ForceType to ensure that PHP scripts don't get parsed as PHP. I also don't have any authentication in there, but that would go with a <Limit> directive under the <Location /dav> one.

    So, not that hard to do. However, I will need to automate it by popping something into the new httpd.conf template system in cPanel. That may get a little more tricky :)
     
  15. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Just as an fyi 1.3.33 is not newer than 1.3.4

    Think of it like this - .33 is "major 3, minor3" , where 4 would be "major 4 minor 0"
     
  16. Chew

    Chew Well-Known Member

    Joined:
    Dec 31, 2003
    Messages:
    96
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Maryland
    Acctually, 1.3.33 is newer than 1.3.4

    And on another note... has anyone gotten authentication working with webdav?

    Thanks
    Chew
     
  17. deadsoulz

    deadsoulz Member

    Joined:
    Mar 2, 2004
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Bluehost as well gets a ton of requests per day for support for Webdav, windows and mac users alike.
     
Loading...

Share This Page