-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation for Synology NAS hosting. (#26)
* Add Synology hosting documentation. * Correct SYnology documentation numbering. * Correct wrongly formated link. * Correct image placement. * Correct angle brackets. * Fix list elements. * Clean MariaDB10 image (red dots were appearing on it...). * Add missing WS-DataFolderRights.png image. * Make sure neither xdebug nor display_error are selected.
- Loading branch information
Showing
13 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
--- | ||
layout: documentation | ||
title: Synology NAS hosting | ||
date: 2021-01-10 | ||
order: 99 | ||
--- | ||
|
||
This procedure if for Synology NAS running DiskStation Manager (DSM) version 6.X. | ||
|
||
# Pre-requisites | ||
|
||
## Packages Installation | ||
|
||
Open the DiskStation Manager interface. Use the Package Center to install the following packages (note they may already be installed): | ||
* Web Station | ||
* MariaDB 10 | ||
* phpMyAdmin (only required for initial set-up of the database, may be removed once Webtrees is running). | ||
|
||
## Webstation configuration | ||
|
||
1. In DSM, open "Web Station". | ||
2. Click on "General Setting" and check which PHP profile is being used ("Default PHP 7.4" in the below example): | ||
|
||
 | ||
|
||
3. Click on "PHP Settings" then select the the PHP profile used by Web Station: | ||
|
||
 | ||
|
||
4. Edit the selected PHP profile, make sure | ||
- all extensions are activated in the Extensions list. | ||
- neither "Enable Xdebug" nor "Enable display_errors to display PHP error messages" are selected. | ||
|
||
 | ||
|
||
5. Click "OK". | ||
## MySQL/MariaDB configuration | ||
|
||
### Confirm MySQL/MariaDB server port | ||
|
||
6. In DSM, open "MariaDB 10". | ||
7. Check/confirm which port MariaDB is running on. Default is 3307. | ||
|
||
 | ||
|
||
### MariaDB user and database configuration | ||
|
||
8. In DSM, open "phpMyAdmin", and log-in using a profile allowed to create databases and profiles/users (e.g. "root"). | ||
9. Click on "User account", then click on "Add user account": | ||
|
||
 | ||
|
||
10. Choose the database sessings: | ||
- "User name" will be both the user name and the database name. **Note it in order not to forget it!** | ||
- "Host name" must be set to "localhost" for safety reasons. | ||
- Generating a complex/random password is recommended. **Note it in order not to forget it!** | ||
- Tick "Create database with same name and grant all privileges." | ||
|
||
 | ||
|
||
11. Click "Go" at the bottom right to generate both the user and its associated database. | ||
|
||
# Webtrees installation | ||
|
||
## Moving the files to your NAS | ||
|
||
12. Synology NAS come with PHP >= 7.1, so you will have to download [webtrees-{{ site.latest_version }}.zip][DOWNLOAD]. | ||
13. Unpack this file on your computer. You should have a folder called `webtrees`. | ||
14. On you NAS, open "File Station", navigate to your `web` folder. | ||
15. Create a `webtrees` folder (or any other name) inside your . | ||
16. Drag and drop the content the `webtrees` folder on your computer in the `webtrees` folder created at step 4 ("File Station" supports multiple files and folders drag and drop). | ||
|
||
 | ||
|
||
## Setting main folder rights | ||
|
||
17. Still in "File Station", right click on the `webtrees` (or any other name) folder you created at step 4, then click on "Properties". Click on the "Permission" tab. | ||
18. Click on "Create", then fill the "Permission Editor" window (this will allow Webtrees to automatically update): | ||
- User of group: http | ||
- Inherit from: \<None\> | ||
- Type: Allow | ||
- Apply to: All | ||
- Leave "Administration" unticked. | ||
- Do not select anything in "Administration" rights. | ||
- Select everything for "Read" rights. | ||
- Select everything but "Delete" for "Write" rights. | ||
|
||
 | ||
|
||
- Once done click "OK". | ||
19. Select "Apply to this folder, sub-folders and files", then click "OK". | ||
|
||
 | ||
|
||
## Setting main folder rights | ||
|
||
20. Still in "File Station", right click on the `data` sub-folder of your webtrees install folder, then click on "Properties". Click on the "Permission" tab. | ||
21. Click on "Create", then fill the "Permission Editor" window (this will allow Webtrees to automatically update): | ||
- User of group: http | ||
- Inherit from: <None> | ||
- Type: Allow | ||
- Apply to: All | ||
- Leave "Administration" unticked. | ||
- Do not select anything in "Administration" rights. | ||
- Select everything for "Read" rights. | ||
- Select everything for "Write" rights. | ||
|
||
 | ||
|
||
- Once done click "OK". | ||
22. Select "Apply to this folder, sub-folders and files", then click "OK". | ||
|
||
 | ||
|
||
## Configuring Webtrees | ||
|
||
23. Run the webtrees configuration wizard. | ||
24. Once at the "Database connection" step, enter the following settings: | ||
- Server name: 127.0.0.1 | ||
- Port number: 3307 | ||
- Database user account: the one you noted at step 3.3 of this documentation. | ||
- Database password: the one you noted at step 3.3 of this documentation. | ||
- Database name: identical to the database user account. | ||
- Table prefix: leave "wt_" | ||
|
||
 | ||
|
||
25. Last step is to create the user account that will be used as your main Webtrees account. | ||
|
||
Any question, post it on the [Webtrees Forum](https://www.webtrees.net/index.php/en/forum). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.