Editing
How to Host a Website with the Synology Server
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
__NOTOC__ The Synology Server has a built-in [[wikipedia:Apache HTTP Server|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 [[wikipedia:MySQL|MySQL]] and [[wikipedia:PHP|PHP]] capabilities which can be used for dynamic web site content creation, such as Bulletin Boards, Blogs, or Wiki Sites. This article was written from DSM2.0.x-0518 ==Enabling Web Service== {| border="0" cellpadding="0" style="text-align:left" |- !width="1000"| !|<!----Second column here----> |-<!----Begin Row----> | ===The Web Station=== Enable the Web service by going to *Synology Administration Menu *Network Services *Web Service **Enable Web Service **Enable MySQL Service if desired *Press OK ||[[Image:Web01.gif|150px|left]] |-<!----Begin Row----> | ===Minor configurations=== The 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== {| border="0" cellpadding="0" style="text-align:left" |- !width="1000"| !|<!----Second column here----> |-<!----Begin Row----> | ===index.html=== In 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 <b><nowiki>http://synologyserver/</nowiki></b> <br>The image on the right reflects what should be displayed. <br> <pre> <html> <head> <title> Hello World! </title> </head> <body> <h1> hello world </h1> <p style="color: blue; font-size: 12pt; font-family: Arial, sans-serif;"> Testing blue font at size 12! </p> </body> </html> </pre> ||[[Image:Web03.gif|150px|left]] |-<!----Begin Row----> | ===phpinfo.php=== This 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 <b><nowiki>http://synologyserver/phpinfo.php</nowiki></b>. The web browser should display PHP information, please refer to the image for an example. <br> <pre> <? phpinfo(); ?> </pre> ||[[Image:Web04.gif|150px|left]] |- |} ==Additional Resources== *[[How to block search engines from scanning the Synology Server]] *[[How to Enable Personal Websites on the DiskStation]] *[[What does using PHP and MySQL offer?]] *[[User Reported Compatible PHP/MySQL Applications]]
Summary:
Please note that all contributions to wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
British English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information