![]()
Fri Sep 20 07:44:55 UTC 2024: ## Securely Grant Multi-User Access to PHP Websites on Ubuntu Server 24.04
**A Stack Overflow user is seeking guidance on setting up permissions for multiple users to access and edit PHP websites hosted on an Ubuntu Server 24.04 LAMP stack.** The user has created separate directories for each website under `/var/www/` and wants to ensure secure access for multiple users per site while maintaining Apache’s access.
The user aims to provide access to specific users:
* **Site1:** MyUser, Site1_UserA, Site1_UserB
* **Site2:** MyUser, Site2_UserA
The user has explored various solutions for multi-site access, including user_dirs, but finds it less suitable due to overlapping user access across multiple sites.
The user is interested in a solution that allows them to grant permission to their site groups while maintaining group permissions for `www-data`. They find the concept of Unix groups and permissions challenging and seek a clear and secure solution.
**The user is actively seeking advice from the Stack Overflow community on how to achieve secure multi-user access to their PHP websites.**