Web Applications
With the Web Station feature, you can create a website with web pages on the Synology DiskStation. The Synology DiskStation provides the default shared folder, " web ", for you to store web page files that are used to build your website.
To enable Web Station:
-
Tick Enable Web Station.
- Click OK.
Web Station support and limitations include:
- The Home page file must be named as "index.htm", "index.html", or "index.php".
- Supports PHP 5.3.2.
- Functions are not supported for PHP: system(), exec().
- When you use the PHP mail() function, the system will automatically retrieve and use the SMTP server information on the Mail page. Make sure you have entered the correct SMTP server information.
- The real path of the shared folder web is /volume1/web. Some applications require the user to set the path in the configuration file.
- The names "blog", "photo", "photosrc", and "webdefault" are reserved folder names. These names cannot be used by Web Station, so please do not create folders with these names under the web shared folder.
- You can customize the error page by creating a missing.html file, a missing.htm file, or a missing.php file. First enable Web Station. Then place the missing.html, missing.htm, or the missing.php file under the web shared folder on the server. When users link to a page which does not exist, they will view this customized error page.
Enable Virtual Host to Host Websites
If you want to host multiple websites on a single server, follow the steps below to enable virtual host.
- Click Virtual Host.
- Click Create.
- Enter a name for the sub-folder of the web shared folder, which will store the website data.
- Enter a hostname for the website.
- Enter a port for the website.
-
Click OK.
Enable Personal Website
The personal website function is a convenient way to allow local users to create their own personal website. Each user will have a unique website address "server-IP/~username" or "server-name/~username", for example:
- 192.168.1.1/~johnlee
- SynologyNAS/~johnlee
Note: Before you enable this feature, make sure the "User Home" function has been enabled.
To create a personal website:
- Create a folder "www" in the user home directory.
- Upload web pages in the "www" folder.
To customize the error page:
- Save the error page as missing.html, missing.htm, or missing.php.
- Upload the file to the "www" folder.
When users link to a page that does not exist in the local user’s website, the customized error page will be displayed.
Support and limitations:
Local users are only allowed to access data under the following:
- Their own home
- /var/tmp
- /tmp
- /volume1/@tmp/php.
Enable MySQL
You can enable MySQL to use the MySQL database function for your website. After MySQL is enabled, you can install the phyMyAdmin package available at Synology's Download Center to manage the MySQL database.