New in CWP Edge / LTSFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers. Available now in the Edge-Latest and LTS-Stable versions. Discuss in the forum

LSPHP / Cache ›
CWP Secure KernelKernel-level protectionEvery site in its own sandbox

Every PHP site, cron job and SSH session runs in its own profile that the kernel enforces. A hacked WordPress cannot read other accounts’ files, and crypto miners and unexpected processes are stopped. Discuss in the forum

Secure Kernel ›
CWP DataCenter PanelFree for CWPpro serversAll your servers on one screen

Manage all your CWP servers from one panel: live health, every hosting account, CWP and OS updates on many servers at once, backups, SSL, firewall and Telegram alerts. Discuss in the forum

DataCenter Panel ›
CWP Backup ServerFree for CWPpro serversBackups that ransomware cannot reach

Protected backups of all your CWP servers on a separate machine. Snapshots a hosting server cannot delete, and restore of files, databases, mail and whole accounts in the admin and user panel. Discuss in the forum

Backup Server ›
WordPress ManagerIncluded & freeWordPress managed from the panel

Install, secure, update, back up and clone WordPress sites without FTP. Updates are tested on a staging clone first and applied to the live site only when they pass, with a backup taken first. Discuss in the forum

WordPress Manager ›
CWP CageIsolationEvery account in its own cage

Per-account isolation built from Linux namespaces and cgroups. A break-in or a runaway script on one site cannot reach another account, the panel or the rest of the server; resource limits per hosting package. Discuss in the forum

CWP Cage ›
Script InstallerOne-click appsWordPress, Joomla, Moodle and more in one click

CWP’s own script installer in the user panel: pick an app, choose the domain and folder, and it is live in seconds with its database and admin login created automatically. Ready for LSPHP and LSAPI-Cache. Discuss in the forum

Script Installer ›
DNS ClusterFor every control panelOne DNS cluster for all your servers

Your servers keep creating domains as usual; the zones are collected into one authoritative PowerDNS cluster you control, with DNSSEC, roles and a full activity trail. Accepts CWP, cPanel, Plesk, DirectAdmin and BIND. Discuss in the forum

DNS Cluster ›
CWP BillingFree to useBilling and support system for hosting providers

Clients, services, invoices, payments, domains, server provisioning and support tickets in one place. All gateways, server modules and registrars are free, with free migration from WHMCS, ClientExec and Blesta. Discuss in the forum

CWP Billing ›
CWPproFrom $1.49 per monthEvery CWP feature unlocked

CWPpro is the professional version of Control Web Panel: all features, unlimited accounts, the latest CWP version and security fixes first. $1.49 per month or $11.99 per year. Discuss in the forum

Get CWPpro ›

OwnCloud needs webDAV

Started by ohandy1, November 05, 2015, 01:25:25 PM

Previous topic - Next topic

ohandy1

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.

brijendrasial

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 ....

cristiancobra2

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]

cristiancobra2

#3
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?

Igor S.

Hello.

If you did recompile Apache throught CWP, check if the module loaded:
httpd -M | grep -i dav



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

cristiancobra2

[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.

Administrator

/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

cristiancobra2

The command returned an error. What does it mean?

[root@server1 ~]# /usr/local/apache/bin/httpd -M | grep -i dav                                                               
Syntax OK 

cristiancobra2

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.

Igor S.

Quote from: cristiancobra2 on April 12, 2016, 02:33:30 PM
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.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

cristiancobra2

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

Administrator

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.

cristiancobra2

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.

cristiancobra2

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.

thiagodifoiz

#14
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.