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]