configure_ubuntu_server_20_04_host_nextcloud_hub_21
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
configure_ubuntu_server_20_04_host_nextcloud_hub_21 [2021/04/28 04:12] – [Extract the Downloaded nextcloud.zip file to the root directory of the Website virtual directory] wikiadmin | configure_ubuntu_server_20_04_host_nextcloud_hub_21 [2021/04/29 03:56] (current) – [Configure an Apache Virtual Host File for the Fully Qualified Domain and Local IP] wikiadmin | ||
---|---|---|---|
Line 945: | Line 945: | ||
Unzip the freshly downloaded nextcloud.zip file into the directory one step in the path before the root ' | Unzip the freshly downloaded nextcloud.zip file into the directory one step in the path before the root ' | ||
+ | |||
+ | You can make the directory path first, or just properly extract the nextcloud.zip file to create the path. For example, run the following and substitute your fully qualified secondary domain name instead of domain_org in the following new web path. | ||
+ | |||
+ | < | ||
+ | cd /var/www/ | ||
+ | |||
+ | sudo mkdir / | ||
+ | |||
+ | cd / | ||
+ | |||
+ | sudo mkdir / | ||
+ | |||
+ | cd / | ||
+ | |||
+ | sudo mkdir / | ||
+ | </ | ||
< | < | ||
cd /downloads/ | cd /downloads/ | ||
- | sudo unzip nextcloud.zip -d /var/www/exampledomain/ | + | sudo unzip nextcloud.zip -d /var/www/domain_org/ |
</ | </ | ||
Line 955: | Line 971: | ||
< | < | ||
- | sudo chown www-data: | + | sudo chown www-data: |
+ | </ | ||
+ | |||
+ | ===== Setup a MySQL Database for the Nextcloud Installation using PhpMyAdmin ===== | ||
+ | |||
+ | Login as rootuser in PhpMyAdmin from a Web Browser on the local network and Create a Database for the Nextcloud Installation: | ||
+ | |||
+ | Select the Database Tab, and where it says New Database Name, provide the following information. | ||
+ | |||
+ | Example: | ||
+ | |||
+ | database name: yourusername_nextcloud | ||
+ | Create it. | ||
+ | |||
+ | Select that new empty Database from the left panel. | ||
+ | |||
+ | Select the Privileges tab. | ||
+ | |||
+ | Create the Username - yourusername - and select 'Grant All Privileges' | ||
+ | |||
+ | db username: yourusername | ||
+ | |||
+ | on: localhost | ||
+ | |||
+ | db Password: $Pwd# | ||
+ | |||
+ | |||
+ | ===== Configure Apache for Nextcloud ===== | ||
+ | Enable a few Apache modifications for Nextcloud to properly run. I believe that this enables the URL Rewrite Module. | ||
+ | |||
+ | < | ||
+ | sudo a2enmod headers env dir mime rewrite | ||
+ | |||
+ | sudo service apache2 restart | ||
+ | </ | ||
+ | ===== Configure an Apache Virtual Host File for the Fully Qualified Domain and Local IP ===== | ||
+ | |||
+ | Change directories to the sites available virtual host subdirectory. | ||
+ | |||
+ | < | ||
+ | cd / | ||
+ | |||
+ | ls | ||
+ | |||
+ | </ | ||
+ | |||
+ | < | ||
+ | sudo cp 000-default.conf yourdomain-org.conf | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | sudo vim yourdomain-org.conf | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | ServerName yourdomain.org | ||
+ | DocumentRoot / | ||
+ | |||
+ | < | ||
+ | Require all granted | ||
+ | AllowOverride All | ||
+ | Options FollowSymLinks MultiViews | ||
+ | |||
+ | < | ||
+ | Dav off | ||
+ | </ | ||
+ | |||
+ | RewriteEngine On | ||
+ | RewriteRule ^/ | ||
+ | RewriteRule ^/ | ||
+ | RewriteRule ^/ | ||
+ | RewriteRule ^/ | ||
+ | RewriteRule ^/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | ErrorLog ${APACHE_LOG_DIR}/ | ||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Enable the Virtual Host ===== | ||
+ | |||
+ | < | ||
+ | cd / | ||
+ | |||
+ | sudo a2ensite yourdomain-org.conf | ||
+ | |||
+ | sudo systemctl reload apache2 | ||
</ | </ |
configure_ubuntu_server_20_04_host_nextcloud_hub_21.1619583129.txt.gz · Last modified: 2021/04/28 04:12 by wikiadmin