Author Topic: Anyone have luck installing Nextcloud 15.02 on CWP?  (Read 25567 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Anyone have luck installing Nextcloud 15.02 on CWP?
« on: February 01, 2019, 10:24:25 AM »
CentOS 7, CWP v0.9.8.763 - running Apache only.

I have recompiled Apache and enabled everything I can imagine matters in httpd.conf by following the directions here:

http://forum.centos-webpanel.com/centos-7-problems/webdav-is-working-on-centos-7/msg10048/#msg10048

I still am having issues with getting Nextcloud 15.02 to run properly.

I get:
Code: [Select]
Your web server is not properly set up to resolve "/.well-known/caldav".and
Code: [Select]
Your web server is not properly set up to resolve "/.well-known/carddav".
...and ajax updates don't seem to be working on their own. Finally, I put the logging in debug and am seeing a lot of errors about Nextcloud not being able to find certain cached files (as their directory doesn't even exist.) Any help from someone with a working instance would be greatly appreciated.

It's too bad as it is so simple to configure and get running on an ordinary LAMP stack with CentOS 7.
« Last Edit: February 01, 2019, 11:03:17 AM by DA_MAN »

Offline
*
Re: Anyone have luck installing Nextcloud 15.02 on CWP?
« Reply #1 on: April 11, 2019, 07:21:21 AM »
Rebuild Apache with options:
-–enable-dav
-–enable-dav-fs
-–enable-dav-lock
-–enable-auth-digest
-–enable-authn-core
-–enable-authz-core

Uncomment:
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

Uncomment also:
Include conf/extra/httpd-dav.conf

then restart httpd:
systemctl restart httpd

check apache:
/usr/local/apache/bin/httpd -M | grep -i dav

If results this it'all right:
dav_module (shared)
dav_fs_module (shared)
dav_lock_module (shared)

Edit
/usr/local/apache/conf/extra/httpd-userdir.conf

Replace with this code:
<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>

restart httpd:
systemctl restart httpd

add on the bottom of .htaccess file of nextcloud directory

<Limit GET POST>
order deny,allow
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
allow from all
</Limit>

That's all
 :)

Offline
*
Re: Anyone have luck installing Nextcloud 15.02 on CWP?
« Reply #2 on: September 15, 2019, 07:14:41 PM »
Yes I did all of that procedure. The problem was that Nextcloud is in a subfolder in the domain. The following needed added to the vhost files:

We will use /nextcloud as our example Nextcloud installation folder.

We need to 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.

Open the proper vhost in an editor and add the following before the final </VirtualHost> tag.

Code: [Select]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^/ocm-provider /nextcloud/ocm-provider/ [R=301,L]
    RewriteRule ^/ocs-provider /nextcloud/ocs-provider/ [R=301,L]
    RewriteRule ^/\.well-known/carddav /nextcloud/remote.php/dav/ [R=301,L]
    RewriteRule ^/\.well-known/caldav /nextcloud/remote.php/dav/ [R=301,L]
    </IfModule>
« Last Edit: September 15, 2019, 07:17:23 PM by DA_MAN »

Offline
*
Re: Anyone have luck installing Nextcloud 15.02 on CWP?
« Reply #3 on: October 09, 2019, 11:44:10 AM »
Recompiled apache with -–enable-dav-lock but no "mod_dav_lock.so" in the folder as error on restart.
Any sugestions

Thanks

Re: Anyone have luck installing Nextcloud 15.02 on CWP?
« Reply #4 on: October 11, 2019, 07:07:16 PM »
I've tried unsuccessfully to get Nextcloud fully working with CWP on a number of occasions. I end up going with debian and horrible webmin. My latest attempt was just last week.

What's with the messing around with apache dav? Nextcloud uses its' own SabreDAV and says explicitly to disable apache dav.

Offline
*
Re: Anyone have luck installing Nextcloud 15.02 on CWP?
« Reply #5 on: October 31, 2019, 09:20:09 AM »
Is there any Solution Nextcloud SabreDav???