-
Notifications
You must be signed in to change notification settings - Fork 0
Set up Nextcloud
For all the following procedures we start with:
- Log in to admin.nogalliance.org
- In the top menu select "Sites"
- In the left menu select "Subdomain (Vhost)"
- Click the green button "Add new subdomain"
- As "Hostname" use
cloud
- Under "Domain" select the domain of the NOG
- As "Web folder" use
cloud
- As "Auto-Subdomain" select "None"
- Select "Let's Encrypt SSL"
- Save
Now wait a while until the website is created and the SSL certificate has been created. Test this by opening http://cloud.<domain>
in your browser. When that works and shows a welcome page also try https://cloud.<domain>
and check that SSL works. Sometimes ISPConfig fails when creating the SSL certificate. When that happens:
- In the left menu select "Subdomain (Vhost)"
- Select the website from the list
- Enable "Let's Encrypt SSL" again (the failure will have turned it off)
- Save
Now that http and https both work let's make sure that we always use https:
- In the left menu select "Subdomain (Vhost)"
- Select the website from the list
- Click on the "Redirect" tab
- Enable "Rewrite HTTP to HTTPS"
- Save
- In the left menu select "Database Users"
- Click the green button "Add new user"
- Select the Client account of the NOG
- As "Database user" use
cloud
(this will automatically be prefixed byc..
where..
is the ID of the client account, you can look that up by selecting "Client" in the top menu) - Set or generate a password for the database user
- Save
- In the left menu select "Databases"
- Click on the green button "Add new database"
- Select the NOG's website
- As "Database name" use
cloud
(this will automatically be prefixed byc..
where..
is the ID of the client account, you can look that up by selecting "Client" in the top menu) - As "Database user" select the user you created in the previous step
- As "Database charset" select "UTF8MB4"
- Save
As there is no app package for Nextcloud that we can install we need to do it manually. To access the files we need an FTP user:
- In the left menu select "FTP-Accounts"
- Click the green button "Add new FTP-User"
- Select the NOG's website
- Under "Username" use
ftp
- Set or generate a password for the ftp user
Then wait a bit until the FTP user is created.
- Go to https://nextcloud.com/install/#instructions-server
- At the top choose "Web Installer"
- Save the
setup-nextcloud.php
file - Connect using your FTP client to
admin.nogalliance.org
using the username (for exampleugnogftp
) and password you created before - Upload the
setup-nextcloud.php
file to the/cloud
folder - Open
https://cloud.<domain>/setup-nextcloud.php
in your browser - Click "Next"
- Enter
.
as the directory name - Keep clicking "Next"
- When asked to create an administrator account use username
admin
and a secure password - Open the "Storage & database" options
- Select "MySQL/MariaDB"
- Fill in the database name and user (including the
c..
prefix) and password that you created previously - Click "Finish installation"
Now the basic Nextcloud server is ready.
By default Nextcloud uses its own user database. To use the WordPress user database follow these steps:
- Open
https://cloud.<domain>/
in your browser and log in asadmin
- Click on the button in the top-right corner (looks like a cogwheel or the letter A) and select "Apps"
- In the list on the left select "Security"
- Find the "User and Group SQL Backends" plugin and click "Download and enable"
- Click on the button in the top-right corner (looks like a cogwheel or the letter A) and select "Settings"
- In the list on the left select "SQL Backends"
- As "SQL driver" select "MySQL"
- As "Hostname" use
localhost
- As "Database" use the database created when installing WordPress
- As "Username" use the database username created when installing WordPress
- As "Password" use the database password created when installing WordPress
- As "Hash algorithm" select "Portable PHP password"
- As "Table name" use
wp_users
- As "Username" column use
user_login
- As "Email" column use
user_email
- As "Password" column use
user_pass
- As "Display name" column use
display_name
- Click "Save"