Control Web Panel
WebPanel => Apache => Topic started by: ohandy1 on November 05, 2015, 01:25:25 PM
-
I spent a day trying to sort out getting owncloud to work. I wanted access to it with a FQDN so I went about trying to install it the same as I did on my cpanel server... without luck.
Tried Softaculous but it's broken at the moment.
The php installer script from ownCloud threw a 500.. found the permissions problem and fixed it.
With OwnCloud installed I moved to sync my files... no dice. I got these three error messages:
- Your web server is not yet set up properly to allow file synchronization because the WebDAV interface seems to be broken.
- This server has no working Internet connection. This means that some of the features like mounting external storage, notifications about updates or installation of third-party apps will not work. Accessing files remotely and sending of notification emails might not work, either. We suggest to enable Internet connection for this server if you want to have all features.
- cURL is using an outdated NSS version (NSS/3.19.1 Basic ECC). Please update your operating system or features such as installing and updating apps via the app store or Federated Cloud Sharing will not work reliably.
I don't manage servers daily so I'm the type who looks for instructions; I've usually got a decent idea of what they're talking about and pretty good at following them. I've never had to deal with webDAV before (it's always been there) so I'm looking for something to work from in the centos 6.6/cwp environment. Best I can find so far is centos 5 without a web panel.
I don't mind starting over and reinstalling if there's simply a way to do that, but I'm reasonably sure someone else has or will have this same question.
Thanks for this panel, I'm trying to move away from cpanel and webmin makes my head hurt.
-
Enable Web DAV
-----------------
nano /usr/local/apache/conf/httpd.conf
#Include conf/extra/httpd-dav.conf (Uncomment This Line)
#LoadModule dav_module modules/mod_dav.so (Uncomment This Line)
#LoadModule dav_fs_module modules/mod_dav_fs.so (Uncomment This Line)
#LoadModule auth_digest_module modules/mod_auth_digest.so (Uncomment This Line)
Save and restart apache
service httpd restart
Inside your owncloud folder edit .htaacess file (nano .htaccess) and add the lines below at the end of file.
<Limit GET POST>
order allow,deny
allow from all
</Limit>
<Limit PUT DELETE>
order allow,deny
allow from all
</Limit>
Upgrade CURL.
rpm -Uvh http://nervion.us.es/city-fan/yum-repo/city-fan.org-release-1-13.rhel6.noarch.rpm
nano /etc/yum.repos.d/city-fan.org.repo
change enabled=1 to 0
yum --enablerepo=city-fan.org update curl -y
Now check ....
-
Hello , I followed the directions , uncommented lines to enable the WebDav and this error occurred .
Searching the internet I found out that the problem is with the module. I did not understand whether to install it or just load . But I can not do any of the things .
Can someone help me? My owncloud not sync in desktop without webdav
THANKS
Starting httpd: Syntax error on line 15 of /usr/local/apache/conf/extra/httpd-dav.conf:
Invalid command 'DavLockDB', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]
Starting httpd: httpd: Syntax error on line 55 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/mod_dav.so into server: /usr/local/apache/modules/mod_dav.so: cannot open shared object file: No such file or directory
[FAILED]
-
No one here had problem with webdav? I can not synchronize calendar, but now nothing more in sync owncloud.
Someone could enable webdav smoothly? Someone has idei how to install a module?
-
Hello.
If you did recompile Apache throught CWP, check if the module loaded:
httpd -M | grep -i dav
-
[root@server1 ~]# httpd -M | grep -i dav
-bash: httpd: command not found
He gave command not found. Apache is installed automatically when installed CWPanel.
How do I reinstall through CWPanel? It is to do this without losing the settings all?
thank you.
-
/usr/local/apache/bin/httpd -M|grep -i dav
you will not lose anything except if you did a custom manual changes in apache configuration, you should use apache rebuilder in cwp.admin
-
The command returned an error. What does it mean?
[root@server1 ~]# /usr/local/apache/bin/httpd -M | grep -i dav
Syntax OK
-
I used the Apache Re-build, chose the most current version .31. But when I make changes to the httpd.conf, continues giving error in module use:
Starting httpd: httpd: Syntax error on line 404 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/mod_dav.so into server: /usr/local/apache/modules/mod_dav.so: cannot open shared object file: No such file or directory
[FAILED]
Any suggestion?
thank you.
-
The command returned an error. What does it mean?
[root@server1 ~]# /usr/local/apache/bin/httpd -M | grep -i dav
Syntax OK
It means, you 're don't have the module.
Contact the CWP support http://centos-webpanel.com/support-services for compile it for you.
-
First I would like to thank your help.
I would not like to do this? I can not spend money at this point (and the dollar here in Brazil is very expensive).
If anyone has a tutorial for me to try before.
thank you
-
we didn't test it so there is no tutorial for it and that is why it was recommended to contact support.
You can google for apache recompile instructions and add this into your cwp apache rebuilder flags.
-
Thank you for your help. I researched and I think I could recompile Apache with modules, for now they appear in the Apache Status tab as Loaded Modules.
And that previous command now returns different:
/ Usr / local / apache / bin / httpd -M | grep -i dav
httpd: Could not reliably determine the server's fully qualified domain name, using server1.edicoescobra.com.br for ServerName
Syntax OK
dav_module (static)
dav_fs_module (static)
dav_lock_module (static)
Now when I edit the httpd.conf and descomento the line to activate the DAV can restart apache without problems. But when the adicono LoadModules lines in conf get this error when starting apache:
dav_module module is built-in and can not be loaded
This means that it has already been loaded? The problem is that the error persists and ownCloud continues with the error messages.
Can anyone give me some direction?
And again thank you for the help already given.
-
They work!
Modules started to work after compiling Apache. In fact just missed this step jumped.
Inside your owncloud folder edit .htaacess file (nano .htaccess) and add the lines below at the end of file.
<Limit GET POST>
order allow, deny
allow from all
</ Limit>
<Limit PUT DELETE>
order allow, deny
allow from all
</ Limit>
For those who have the same problem. I recompiled Apache by the panel in APACHE RE-BUILD entering the options:
--enable-dav
--enable-dav-fs
--enable-dav-lock
--enable-auth-digest
I thank you all for your help.
Thank you very much.
-
I will report the problem I had and how I solved it.
After a lot of work I managed to install Nextcloud 19.
Procedures performed:
1) Rebuild Apache with the following added switches – you can use Apache 2.4.x
Add..
--enable-dav
--enable-dav-fs
--enable-dav-lock
--enable-auth-digest
--enable-authn-core
--enable-authz-core
2) Enable the Apache modules: nano /usr/local/apache/conf/httpd.conf
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 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
Include conf/extra/httpd-dav.conf
3) Restart Apache:
systemctl restart httpd
4) Check for dav modules:
/usr/local/apache/bin/httpd -M | grep -i dav
The result should look like this:
dav_module (shared)
dav_fs_module (shared)
dav_lock_module (shared)
5) Edit your “httpd-userdir.conf” nano /usr/local/apache/conf/extra/httpd-userdir.conf
…replace everything in this file with the following text…
<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>
6) Change the vhosts for nextcloud
Find your vhost file(s) (/usr/local/apache/conf.d/vhosts) Modify both the ordinary vhost and the one marked “ssl” if using an SSL certificate (which I advise…)
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^/ocm-provider /Cloud/ocm-provider/ [R=301,L]
RewriteRule ^/ocs-provider /Cloud/ocs-provider/ [R=301,L]
RewriteRule ^/\.well-known/carddav /Cloud/remote.php/dav/ [R=301,L]
RewriteRule ^/\.well-known/caldav /Cloud/remote.php/dav/ [R=301,L]
</IfModule>
7)
Edit your Nextcloud .htaccess file
…adding the following data to the end of the file:
<Limit GET POST>
order deny,allow
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
allow from all
</Limit>
8) The most important.
For me it only works when I disabled mod security in:
CWP > Segurity > Flap Accounts > Disable.
-
Look forward to getting hacked - maybe a lesson will be learnt, the hard way.
Just because you think you have a solution doesn't mean it is right.
Nextcloud/Owncloud uses sabreDAV, not Apache DAV.
RTFM
You don’t need the WebDAV module for your Web server (i.e. Apache’s mod_webdav), as Nextcloud has a built-in WebDAV server of its own, SabreDAV. If mod_webdav is enabled you must disable it for Nextcloud. (See Apache Web server configuration for an example configuration.)
Mod Security
Disable any triggered rules - do not disable modsec.