Author Topic: WebDAV is working on Centos 7?  (Read 4322 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
WebDAV is working on Centos 7?
« on: February 02, 2017, 04:02:17 PM »
Hi,

How I can enable WebDAV and other modules?

--enable-dav
--enable-dav-fs
--enable-dav-lock
--enable-auth-digest

It's not working this flags.

Offline
*
Re: WebDAV is working on Centos 7?
« Reply #1 on: February 03, 2017, 06:07:44 AM »
?

Offline
*****
Re: WebDAV is working on Centos 7?
« Reply #2 on: February 03, 2017, 06:23:42 AM »
add this to httpd.conf (from apache configuration) -- restart apache
Code: [Select]
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule auth_digest_module modules/mod_auth_digest.so
« Last Edit: February 03, 2017, 06:46:15 AM by Sandeep »

Offline
*
Re: WebDAV is working on Centos 7?
« Reply #3 on: February 03, 2017, 07:44:05 AM »
I added, After insertion is 'Apache ReBuild' required?

Thank you for answer

Offline
*****
Re: WebDAV is working on Centos 7?
« Reply #4 on: February 03, 2017, 03:16:10 PM »
restart apache after adding it. no need to rebuild

Offline
*
Re: WebDAV is working on Centos 7?
« Reply #5 on: February 06, 2017, 10:29:14 AM »
I edited,

Code: [Select]
/usr/local/apache/bin/httpd -M | grep -i dav
Syntax OK
  dav_module (static)
  dav_fs_module (static)
  dav_lock_module (static)

but I still getting this error:

Quote
Your web server is not yet set up properly to allow file synchronization because the WebDAV interface seems to be broken.

on Nextcloud admin panel.. Do you know alternative road or what is this problem?

Offline
*
Re: WebDAV is working on Centos 7?
« Reply #6 on: February 07, 2017, 07:13:58 PM »
up

Offline
*****
Re: WebDAV is working on Centos 7?
« Reply #7 on: February 08, 2017, 12:24:22 PM »
please contact support for more investigations

Offline
*
Re: WebDAV is working on Centos 7?
« Reply #8 on: February 08, 2017, 03:51:58 PM »
please contact support for more investigations

You know, don't need investigation. cwp team always give missing information.
I had imagined this would result in such matters.  :)

even so thank you
« Last Edit: February 08, 2017, 04:00:17 PM by Emsanator »

Offline
*****
Re: WebDAV is working on Centos 7?
« Reply #9 on: February 10, 2017, 11:15:51 AM »
Required modules:
mod_alias,
mod_auth_digest,
mod_authn_core,
mod_authn_file,
mod_authz_core,
mod_authz_user,
mod_dav,
mod_dav_fs,
mod_setenvif

go to apache configuration, search modules and uncomment the lines (include)

also
uncomment Include conf/extra/httpd-dav.conf - do the necessory settings according to your needs

systemctl restart httpd

you need to add this lines to vhost :

<location />
DirectoryIndex disabled
Dav On
</location>

Offline
*
Re: WebDAV is working on Centos 7?
« Reply #10 on: February 10, 2017, 04:08:12 PM »
...

  • I edited again Apache configure file and I activated the modules.
  • I have not made any changes to this file: /usr/local/apache/conf/extra/httpd-dav.conf
  • I inserted this file into: /usr/local/apache/conf.d/vhosts.conf

Code: [Select]
# vhost_start Sandeep.com
<VirtualHost 192.168.1.2:8181>
ServerName Sandeep.com
ServerAlias www.sandeep.com
ServerAdmin hello@sandeep.com
DocumentRoot "/home/sandeep/public_html"
ScriptAlias /cgi-bin/ "/home/sandeep/public_html/cgi-bin/
#
# Custom settings are loaded below this line (if any exist)
# Include "/usr/local/apache/conf/userdata/sandeep/sandeep.com/*.conf

<IfModule mod_suexec.c>
        SuexecUserGroup Sandeep Sandeep
</IfModule>

<IfModule mod_suphp.c>
        suPHP_UserGroup Sandeep Sandeep
        suPHP_ConfigPath /Sandeep/Sandeep
</IfModule>

<Directory "/home/Sandeep/public_html">
        AllowOverride All
</Directory>

<location />
DirectoryIndex disabled
Dav On
</location>

</VirtualHost>
# vhost_end Sandeep.com


Unfortunately I did not reach the successful result.
Thank you for your interest

Offline
*****
Re: WebDAV is working on Centos 7?
« Reply #11 on: February 10, 2017, 04:31:34 PM »
hello
for applications/scripts the settings will be different webdav is working fine for me.

like :

AuthType basic
AuthName "webdav"
AuthUserFile /home/test/public_html/passwd.dav
Require valid-user
« Last Edit: February 10, 2017, 04:34:18 PM by Sandeep »

Offline
*
Re: WebDAV is working on Centos 7?
« Reply #12 on: February 11, 2017, 01:18:39 PM »
Ive been [having quite some troble getting webdav working with a Nextclound installation tried everything rebuilding apache, /usr/local/apache/bin/httpd -M | grep -i dav
SHOWS
 dav_module (shared)
 dav_fs_module (shared)
 dav_lock_module (shared)
 But I cannot get it working any sugestions

Also where do I place
AuthType basic
AuthName "webdav"
AuthUserFile /home/test/public_html/passwd.dav
Require valid-user

Sorry for such a newbie question but ive been on Google and this forum but no luck

Thanks

Offline
*
Re: WebDAV is working on Centos 7?
« Reply #13 on: February 12, 2017, 07:51:10 PM »
I made it.. Some people, they can give you false information but do not give up on finding the right answer

Step 1:

You can edit httpd.conf (from Apache Configuration in "Apache Settings")

Search modules and uncomment the lines (include)

Quote
LoadModule alias_module modules/mod_alias.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_user_module modules/mod_authz_core.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_lock_module modules/mod_dav_lock.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule setenvif_module modules/mod_setenvif.so

LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so

Step 2:

Code: [Select]
/usr/local/apache/bin/httpd -M | grep -i dav
Quote
Syntax OK
  dav_module (static)
  dav_fs_module (static)
  dav_lock_module (static)

If you show like this, okey go to step 3

Step 3:

Code: [Select]
/usr/local/apache/conf/extra/httpd-userdir.conf

Replace with these codes:

Code: [Select]
<Directory "/home/*/public_html">
  AllowOverride FileInfo AuthConfig Limit Indexes
  Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  <Limit GET POST OPTIONS>
  Order allow,deny
  Allow from all
  </Limit>
  <LimitExcept GET POST OPTIONS>
  Order deny,allow
  Deny from all
  </LimitExcept>
</Directory>

Step 4: (for Nextcloud/Owncloud and other cloud app)

Code: [Select]
/home/USERNAME/public_html/nextcloud/.htaccess
Add the bottom of the page

Code: [Select]
<Limit GET POST>
  order deny,allow
  allow from all
</Limit>
<Limit PUT DELETE>
  order deny,allow
  allow from all
</Limit>

Step 5:

Code: [Select]
systemctl restart httpd
« Last Edit: February 12, 2017, 07:53:21 PM by Emsanator »

Offline
*
Re: WebDAV is working on Centos 7?
« Reply #14 on: February 13, 2017, 01:32:08 PM »
YAY that did it for thanks Emsanator