Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
After setting up 1-Click LAMP, how to properly create users for 2 virtual hosts (2 domains) with right file permissions ?
I just set up a LAMP droplet following the 1-Click install guide.
It worked fine, i have ssh access
I am now logged in as root.
The web root is now at
/var/www/html which can be accessed through the droplet’s public ip or the domain name i ‘attached’ following this part of the guide :
... Two DNS records: An A record from a domain (e.g., example.com) to the server’s IP address An A record from a domain prefaced with www (e.g., www.example.com) to the server’s IP address
Now, i would like to create 2 users. Each one will be for managing a distinct website (distinct domain name and folder)
I tried doing this vhosts configuration a few months ago (not on digitalocean droplets), i had tons of file permission related errors
Is there a guide that i can follow for this specific usecase ?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×