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:58] – [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 972: | Line 972: | ||
< | < | ||
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.1619585936.txt.gz · Last modified: 2021/04/28 04:58 by wikiadmin