Centos CWP install NextCloud
2 min readJul 7, 2020
Two free app CWP and NextCloud. Secure file sharing and backup.
First login CWP panel
https://ip:2031/token/admin/index.php?module=apache_builder
or menu
Webserver Setting > Apache Re-build
--enable-mod_dav_lock.so
--enable-mod_dav_fs.so
--enable-mod_dav.so
-–enable-auth-digest
-–enable-authn-core
-–enable-authz-core
Look the file uncommend remove “ # “
#sudo 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 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# Import
Include conf/extra/httpd-dav.confsystemctl restart httpd
Next step check
/usr/local/apache/bin/httpd -M | grep -i davSyntax OK
dav_module (static)
dav_fs_module (static)
dav_lock_module (static) otherwise it's not important
Next # sudo nano /usr/local/apache/conf/extra/httpd-userdir.conf chage
<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>
Is there a user?
User Accounts > New Account
Add website next step go to command line
cd /home/username/public_html/wget -P /tmp https://download.nextcloud.com/server/releases/nextcloud-19.0.0.zipunzip /tmp/nextcloud-19.0.0.zip -d ./sudo chown username:username ./ -R (CWP panel > User Accounts > Fix permission )
Open CWP Panel and Mysql Manager > Create Create Database
Next step go to webpage http://site.com/nextcloud setting and setup
next step nano /home/username/public_html/.htaccess enter bottom the page save
<Limit GET POST>
order deny,allow
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
allow from all
</Limit>