Web Applications
With the Web Station feature, you can create a website with web pages on the
Synology RackStation. With built-in PHP and MySQL support, you
can create dynamic, database-driven website for your business. There is also a
variety of 3rd party packages such as Content Management, Customer Relationship
Management & e-Commerce system in Package Center, so that you can install them
with a few clicks. The default shared folder, "web" will store the web page files
for your website.
To enable Web Station:
-
Tick Enable Web Station.
- Click Apply.
Web Station support and limitations include:
- The Home page file should be named as "index.htm", "index.html", or "index.php".
- Functions which 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 Notification page. Make sure you have enabled e-mail notifications and 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.
- PHP applications will run using the "nobody" privilege.
- 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.
- Maximum number of active HTTP connections: 256
- Maximum number of virtual hosts: 30
Enable Virtual Host to Host Websites
You can host multiple websites on a single server with virtual host
feature. To get started, your need to register a couple of domain names and
configure virtual hosting by following 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
files.
- Enter a hostname for the website.
- Enter a port for the website.
-
Click OK.
Enable Personal Website
The personal website feature is a convenient way to allow local users, domain users and LDAP users to create their own personal websites.
For local users
Each local user will have a unique website address "server-IP/~username" or "server-name/~username". For example:
- 192.168.1.1/~johnlee
- SynologyNAS/~johnlee
For domain users
Each domain user will have a unique website address "server-IP/~domainname%5cusername" or "server-name/~domainname%5cusername". For example:
- 192.168.1.1/~testdomain%5ctonywu
- SynologyNAS/~testdomain%5ctonywu
For LDAP users
Each LDAP user will have a unique website address "server-IP/~username@domainname" or "server-name/~username@domainname". For example:
- 192.168.1.1/~tonywu@testdomain
- SynologyNAS/~tonywu@testdomain
Note: Before you enable this feature, please make sure User Home function is enabled. Please go to Control Panel > User > User Home to enable User Home for local users; go to Control Panel > Directory Service > Domain Users > User Home to enable User Home for domain users; go to Control Panel > Directory Service > LDAP Users > User Home to enable User Home for LDAP users.
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
- /volumeX/@tmp
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
in Package Center to manage the MySQL database.
The default root password of MySQL is blank.