Host Website On Synology Nas

Posted on

Host Website On Synology Nas – Many people want to host a website, but the monthly cost of web hosting is not always ideal. While it’s a good idea to scale your website to match the daily traffic it receives, sometimes it’s easier to host the website out of your house initially. This avoids monthly fees and allows you to run the site on devices that most people have running 24/7. To be clear, Synology NAS devices do not have a large amount of processing power, so hosting a high-traffic website on a Synology NAS is not the best idea. In future tutorials, we’ll look at how to use Cloudflare which can dramatically reduce traffic demands on your local NAS, speed up performance and increase security.

As a fun fact, this site started out hosted on a Synology NAS. As it grew, I scaled it to fit demand and it’s now in the cloud.

Host Website On Synology Nas

Host Website On Synology Nas

1. Buy a domain name if you don’t already have one, as we will be using it in the future. Namecheap is my favorite provider and the one I personally use.

Synology Cloud Backup

2. You will be informed that WordPress will automatically install several different packages. Select Yes. The packages will now be downloaded and installed.

3. Create a password for the installed MariaDB package. Once the password is set, select Apply to install the package.

5. WordPress automatically configures a database user. Enter a password that will be used for wordpress_user.

This part is not difficult, but we have to do it for a slightly difficult reason. When you install WordPress, it will automatically install with the hostname or IP address you are visiting the site with. Since accessing the website will use the IP address of your Synology NAS, we need to create a DNS record or host file on your local system before installing WordPress. Either works, we just need to make sure we can access our WordPress site with the domain we will use later.

Proxmox Mail Gateway Auf Synology Diskstation Mit Mailplus Server

For example, my website name will be dev., so I create a host or DNS record for dev. to point to my Synology NAS’s local IP address. This is only temporary and we will remove it later.

Creating a DNS record will vary depending on which DNS server you have configured. I’m using Pi-Hole, so I’ll create a local DNS file for my dev. domain and point it to the IP address of my Synology NAS.

2. You will be redirected to the IP address of your Synology NAS in the URL window. Change the IP address to the domain we created in our last step.

Host Website On Synology Nas

4. Create a website name, username, password, then enter your email address and search engine visibility. Once everything is entered, select Install WordPress.

Synology Nas Setup Guide 2022

The WordPress package is now installed, a DNS record has been created and we will now update our virtual host.

3. Enter the hostname, select the web/wordpress document root and select Apache HTTP Server 2.2 and Default Profile for PHP. Enable HSTS/HTTP/2 if you want. Select OK.

5. The last setting we need to change is to allow PHP access to MySQL. Select PHP settings and select Edit in default profile.

Technically, you will be able to access WordPress now, but if you try to access any specific posts, you will receive an error message. The reason is that our URL has /wordpress in the URL. We can quickly change this from the WordPress admin settings.

Synology Nas With Apache Server Behind An Nginx Proxy

When you use something like a Synology NAS as your WordPress server, large amounts of traffic can slow it down because the CPU isn’t as old as we’d like. For this reason, it is important to use a high-quality caching plugin. For over a year I wasted my time on “free” caching plugins because I didn’t think premium plugins were worth the money. I was completely wrong. When I say I’ve been trying to speed up my site for 50+ hours using free plugins, I’m not lying. I deployed WP Rocket in about 5 minutes and am getting better results than ALL my previous attempts.

WP Rocket is incredibly easy to use and it WORKS. If you care about SEO, the speed of your website is now a more important ranking factor than it was in years past. I don’t recommend too many services, but if you’re serious about your site’s performance (which you should be) and limit the impact on your NAS’s CPU, WP Rocket is the answer.

I don’t have a tutorial for WP Rocket because it’s so easy to use, but if you want one, let me know in the comments and I’ll make one.

Host Website On Synology Nas

The site will now be installed and configured. Keep in mind that this is a blank page so you’ll probably want to go ahead and customize it before exposing the site to the outside internet. But at this point you are ready to expose the site.

Selfhost: Der Synology Nas Server Einstieg

It is very important to note that you must have purchased your domain ready at this point with a DNS record created. I won’t go through this process as there are lots of different registrars where you can buy domains, but make sure you have created a CNAME DNS record pointing to your DDNS hostname or an A record pointing to a static external IP your number

1. Make sure you forward port 80 and 443 on your router to the IP address of your Synology NAS. Make sure you create two allow firewall rules for port 80 and 443. If you are not using Synology’s firewall, I highly recommend that you configure it before opening port 80 and 443. I created a tutorial on how to to install Synology’s firewall if you are interested in learning how to use it.

2. After the firewall rules are created and you have forwarded the 80/443, open the control panel, select Security and then Certificates.

4. In the Domain Name section, enter your domain name and then select Apply. It takes a few minutes to confirm.

How To Host A WordPress Website On A Synology Nas!

5. The final step is to select Configure and select the correct certificate next to your domain.

This tutorial was intended to guide you through the entire process of installing and configuring a WordPress site on your Synology NAS. In future tutorials, we’ll look at using Cloudflare to take advantage of some of the free benefits they provide.

As always, if you have any questions, please leave them in the comments. Thanks for reading the tutorial! Installing WebStation will be necessary if you plan to install applications such as phpMyAdmin, WordPress (French posts) or create a personal website on your Synology NAS.

Host Website On Synology Nas

This article was machine translated from this post written in French: Synology: Activer WebStation

Instructions: Install WordPress On Synology Nas

Go to your nas control panel and then to web services. Then check the Enable site box.

The NAS web server is now active. A web folder was automatically created in the root of your volume.

You can access the Web Station home page by entering the IP address (or name) of the server in a browser: http://[your-ip]/

To do this, simply enable the Enable Personal Website option in the Web Services tab of the control panel.

Iobroker Im Docker Auf Der Synology Diskstation Im Gleichen Subnet

A www folder is automatically created for each user. To access this private space from your browser, append the user’s name with a ~ (tilde) to the address: http://[your-ip]/~Name/ (note that it is case sensitive, Linux differentiates upper and lower case).

For example, this uses a subdomain to access the WordPress website (French post). The image below shows this example:

Grace à lui, you are looking for services on websites Internet dynamiques utilisant as an example of the programming language php You have thus installed the Web Station package on your Synology NAS. You open a browser, type in your local NAS IP address, and hit Enter to connect to the NAS. But instead of a normal login page, you get an almost blank page with messages. How is this possible? What could have gone wrong?

Host Website On Synology Nas

Website has been activated. To complete the setup of your website, see the “Web Hosting” section of the DSM Help.

Synology Nas: Die Wichtigsten Ersten Einstellungen Zur Datensicherheit

The reason you get this message page instead of being redirected to the default login page is because you need to add :5000 to your browser’s address bar after entering the NAS’s local IP address. Follow the instructions in the image below.

Note: If you do not have the Web Station package installed on your DSM and you type your local NAS IP into the browser’s address bar and then press the Enter key on your keyboard, the browser will automatically redirect http://yourLOCALNASIP to http://yourLOCALNASIP: 5000 – However, if you already have the Web Station package installed, the automatic redirection to :5000 will not occur.

Note: If you already have the Web Station package installed, you can access your login page in both DSM 6.2.4 and DSM 7.0 by adding :5000 to the end of your NAS IP

Synology nas website, host website on synology, synology host website, host website on nas, vpn on synology nas, web server on synology nas, how to setup mail server on synology nas, host a website on synology nas, synology nas host website, how to host a website on synology nas, setup vpn on synology nas, run vm on synology nas