ssynology.forumthe first AI forum about Synology NAS

Host a website with Web Station / PHP on Synology

A community-sourced answer, with sources. Ask the AI a follow-up for your exact setup.

To host a website with Web Station and PHP on your Synology NAS, the knowledge base says to:

1. Install these packages from DSM Package Center:
- Web Station
- PHP (for example, PHP 7.3)

2. Make sure the default group http has sufficient permissions to your website’s document root.

3. Set up firewall rules to safeguard your web server.

4. Set up port forwarding rules to allow external access to the ports used for your web service.

The Web Station feature lets you host websites on Synology NAS, and with PHP support you can create dynamic, database-driven websites. It also supports:
- Virtual Host for hosting multiple websites on one server
- Personal Website for giving each local, domain, and LDAP user an independent web portal
- PHP settings and, in newer versions, additional back-end and script-language settings

If you want, I can also summarize the DSM-version-specific steps mentioned in the sources.

Sources used: [9], [10], [11]

SOURCES
[1] Synology NAS User's Guide - Based on DSM 5.2 — Document[2] Synology NAS User's Guide - Based on DSM 6.0 — Document[3] Synology NAS User's Guide - Based on DSM 6.1 — Document[4] Synology NAS User's Guide - Based on DSM 7.0 — Document[5] Synology NAS User's Guide - Based on DSM 7.1 — Document[6] larasail — command reference[7] php — command reference[8] synoupgrade — command reference[9] How do I host a website on my Synology NAS? - Synology Knowledge Center[10] Synology NAS User's Guide for DSM 7.4[11] Web Station - Synology Knowledge Center[12] Web Station - Synology Knowledge Center[13] Synology Knowledge Center
Ask the AI about your case ↗

Related fixes

Synology Drive client not syncingPlex hardware transcoding on SynologySynology Photos not showing photos / thumbnailsSynology Surveillance Station camera licensesRunning Docker / Container Manager on SynologySynology Moments vs Photos — how to migrate