From Rex.Abert at tsc.fl.edu Tue Sep 23 09:33:04 2025 From: Rex.Abert at tsc.fl.edu (Rex Abert) Date: Tue, 23 Sep 2025 13:33:04 +0000 Subject: [LON-CAPA-admin] Enabling WebDAV Message-ID: I would like to get WebDAV enabled for LC here at TSC. When I try to connect, I receive a message "Not a WebDAV enabled share." I checked with our IT department to confirm that the dav and dav_fs modules are running and enabled on Apache?they confirmed that they are. In the domain configuration, I have the boxes checked for "Personal Web Page," "Blog," "WebDAV," and "Portfolio." We use internal authentication. I don't know if image attachments are allowed, but I'll try. Any suggestions to help get this going? Rex Abert Professor of Mathematics Science and Mathematics [cid:d19f5275-f0e4-4dd1-9e1e-170f9121696e] ***Due to Florida's very broad public records law, most written communications to or from Tallahassee State College employees regarding College business are public records, available to the public and media upon request. Therefore, this email communication and your response may be subject to public disclosure.*** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook-csufnjbc Type: image/jpg Size: 9787 bytes Desc: Outlook-csufnjbc URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: coordinator.png Type: image/png Size: 28153 bytes Desc: coordinator.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: webdav02.png Type: image/png Size: 43540 bytes Desc: webdav02.png URL: From raeburn at msu.edu Thu Sep 25 14:03:46 2025 From: raeburn at msu.edu (Raeburn, Stuart) Date: Thu, 25 Sep 2025 18:03:46 +0000 Subject: [LON-CAPA-admin] Enabling WebDAV In-Reply-To: References: Message-ID: Rex, On your LON-CAPA server you might check ownership/permissions for the directory where webDAV session files will be stored by LON-CAPA. This directory will have been created when ./UPDATE was used to install or update to loncaapa-2.11.6. The following command will tell you where LON-CAPA will store session files (assuming this is an Ubuntu server): sudo less /etc/apache2/loncapa_apache.conf | grep lonDAVsessDir In the request in your webdav client I would add a trailing forward slash to the Folder, i.e., make that webdav/tccfl/abertr/. Although the web server will likely append one if you didn't include one, your web server logs will include fewer entries if you include one. Assuming this is an Ubuntu server I would look in the access logs in /var/log/apache2/ I would expect there to be a couple of entries similar to: - - [Date Time] "OPTIONS /webdav/tccfl/abertr/ HTTP/1.1" 401 878 "-" "WebDAVLib/1.3" . - - [Date Time] "OPTIONS /webdav/tccfl/abertr/ HTTP/1.1" 401 878 "-" "WebDAVLib/1.3" If authentication succeeded you would next see something similar to - abertr [Date Time] "OPTIONS /webdav/tccfl/abertr/ HTTP/1.1" 200 591 "-" "WebDAVLib/1.3" and I expect you would find a session file in the webDAV session directory. If such a file exists, then from the command line you can use a command similar to the following to see what it contains: sudo /home/httpd/perl/debug/dump_db.pl /home/httpd/webdav/sessionIDs/*.id If authentication failed you would see something similar to: - - [Date Time] "OPTIONS /webdav/tccfl/abertr/ HTTP/1.1" 403 577 "-" "WebDAVLib/1.3" With a standard LON-CAPA session active in your web browser, and the Domain Coordinator role active you might use: Main Menu >"Create users or modify the roles and privileges of users" > "Add/Modify a User" to check the User Tools settings for username: abertr in the tccfl domain. specifically the "WebDAV access to Authoring Spaces (if SSL and author/co-author)" entry. As Domain Coordinator you could also use: Main Menu > Status of domain servers > User Environment for current log-in and check that either environment.availabletools.webdav is set to 1, or if you set a user-specific value for yourself, that environment.tools.webdav is set to 1. The next step would be to start adding: print STDERR "Add some meaningful debug message\n"; lines to /home/httpd/lib/perl/Apache/lonwebdavauth.pm and then reload the web server: sudo systemctl reload apache2 before trying to connect to webDAV, and then look in /var/log/apache2/error_log for debug output. Stuart Raeburn LON-CAPA Academic Consortium ________________________________________ From: LON-CAPA-admin on behalf of Rex Abert via LON-CAPA-admin Sent: Tuesday, September 23, 2025 9:33 AM To: LON-CAPA-admin at mail.lon-capa.org Cc: Kyle Dragovich Subject: [LON-CAPA-admin] Enabling WebDAV I would like to get WebDAV enabled for LC here at TSC. When I try to connect, I receive a message "Not a WebDAV enabled share." I checked with our IT department to confirm that the dav and dav_fs modules are running and enabled on Apache?they confirmed that they are. In the domain configuration, I have the boxes checked for "Personal Web Page," "Blog," "WebDAV," and "Portfolio." We use internal authentication. I don't know if image attachments are allowed, but I'll try. Any suggestions to help get this going? Rex Abert Professor of Mathematics Science and Mathematics