Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


configure_ubuntu_server_20_04_host_nextcloud_hub_21

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
configure_ubuntu_server_20_04_host_nextcloud_hub_21 [2021/04/28 05:21] – [Extract the Downloaded nextcloud.zip file to the root directory of the Website virtual directory] wikiadminconfigure_ubuntu_server_20_04_host_nextcloud_hub_21 [2021/04/29 03:26] – [Configure Apache for Nextcloud] wikiadmin
Line 986: Line 986:
  
 Select that new empty Database from the left panel. Select that new empty Database from the left panel.
 +
 +Select the Privileges tab.
  
 Create the Username - yourusername - and select 'Grant All Privileges' for the username on the new Database. Create the Username - yourusername - and select 'Grant All Privileges' for the username on the new Database.
Line 994: Line 996:
  
 db Password: $Pwd#4646116 (Something that meets the applicable complexity requirements) db Password: $Pwd#4646116 (Something that meets the applicable complexity requirements)
 +
 +
 +===== Configure Apache for Nextcloud =====
 +Enable a few Apache modifications for Nextcloud to properly run. I believe that this enables the URL Rewrite Module.
 +
 +<code>
 +sudo a2enmod headers env dir mime rewrite
 +
 +sudo service apache2 restart
 +</code>
 +===== Configure an Apache Virtual Host File for the Fully Qualified Domain and Local IP =====
 +
 +Change directories to the sites available virtual host subdirectory.
 +
 +<code>
 +cd /etc/apache2/sites-available/
 +
 +ls
 +
 +</code>
 +
 +<code>
 +sudo cp 000-default.conf yourdomain-org.conf
 +</code>
 +
 +<code>
 +sudo vim yourdomain-org.conf
 +</code>
 +
 +<code>
 +<VirtualHost *:80>
 +
 +    ServerName yourdomain.org  www.yourdomain.org
 +    DocumentRoot /var/www/yourdomain_org/public_html/yourdomain_org/nextcloud
 +
 +    <Directory /var/www/domain_org/public_html/domain_org/nextcloud/>
 +        Require all granted
 +        AllowOverride All
 +        Options FollowSymLinks MultiViews
 +
 +        <IfModule mod_dav.c>
 +            Dav off
 +        </IfModule>
 +
 +        RewriteEngine On
 +        RewriteRule ^/\.well-known/carddav https://%{SERVER_NAME}/remote.php/dav/ [R=301,L]
 +        RewriteRule ^/\.well-known/caldav https://%{SERVER_NAME}/remote.php/dav/ [R=301,L]
 +        RewriteRule ^/\.well-known/host-meta https://%{SERVER_NAME}/public.php?service=host-meta [QSA,L]
 +        RewriteRule ^/\.well-known/host-meta\.json https://%{SERVER_NAME}/public.php?service=host-meta-json [QSA,L]
 +        RewriteRule ^/\.well-known/webfinger https://%{SERVER_NAME}/public.php?service=webfinger [QSA,L]
 +
 +    </Directory>
 +
 +    ErrorLog ${APACHE_LOG_DIR}/error.log
 +    CustomLog ${APACHE_LOG_DIR}/access.log combined
 +
 +</VirtualHost>
 +</code>
configure_ubuntu_server_20_04_host_nextcloud_hub_21.txt · Last modified: 2021/04/29 03:56 by wikiadmin