How to Host a Website with the Synology Server
The Synology Server has a built-in Apache Web Engine which can be used to host web pages. This should not be confused with building or coding web pages; users are still required to write their own web page code, if they wish to use this function. The Web Station is great for light weight oriented work, such as a personal web sites, or for a great way for small offices to disseminate information among it's employees.
Along with the Apache Engine, the Synology Server also has MySQL and PHP capabilities which can be used for dynamic web site content creation, such as Bulletin Boards, Blogs, or Wiki Sites.
Enabling Web Service
The Web StationEnable the Web service by going to
|
|
Minor configurationsThe Synology Sever will create a new root share called web where the full path to this folder is \\SynologyServer\web\. It may be necessary to adjust the permissions of this folder to have access to the web folder, which can be founder under the Privileges menu of the Synology Product. |
Examples
index.htmlIn the web folder, create a plain text file, titled index.html
In this file, copy and paste the following example code into the file. Save the file and point the web browser to http://synologyserver/ <html> <head> <title> Hello World! </title> </head> <body> <h1> hello world </h1> <br> <font color="blue" size="12" face="arial"> Testing blue font at size 12! </font> </body> </html> |
|
phpinfo.phpThis is for users who wish to know some basic information about the PHP capabilities of the Synology server, create a plain text file titled phpinfo.php. In this file, have the following code; afterwards point your web browser to http://synologyserver/phpinfo.php. The web browser should display PHP information, please refer to the image for an example.
<? phpinfo(); ?> |
Additional Resources
What does using PHP and MySQL offer?
User Reported Compatible PHP/MySQL Applications