How to host multiple domains on a LAMP server?

Hello, I’m away from my droplet more than a month. So, by comming back myself at this some old question came too.

How can I host multiple domains on a LAMP droplet? I don’t have a glue about on how to do it… Is this just about DNS zone? Which files do I need to change?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


I’ve installed successful the webmin_1.680 as per your instruction, but afterward i cannot access to http://[MY IP]:10000

Is there any thing wrong? Ubuntu LAMP on 14.04

Hello, I have a good answer for you: Webmin <br> <br>Open an SSH client such as Putty so you can be in the console, logged in as root. <br> <br>Enter these commands: <br> <br>wget <br> <br>dpkg --install webmin_1.680_all.deb <br> <br>The install will likely not finish due to missing dependencies. To resolve the dependencies and finish webmin install, type: <br> <br>apt-get install -f <br> <br>Once done, you can access Webmin by opening a browser and going to https://x.x.x.x:10000 <br> <br>I have 3 websites running on 1 Ubuntu 12.04 droplet and they each use directives (which you can find inside of Webmin) that are like this: <br> <br> ServerAdmin <br>ServerName <br> ServerAlias <br> <br> # Indexes + Directory Root. <br>DirectoryIndex index.php index.html <br>DocumentRoot /var/www/ <br> <br> # CGI Directory <br> ScriptAlias /cgi-bin/ /var/www/ <br> <Location /cgi-bin> <br> Options +ExecCGI <br> </Location> <br> <br> # Logfiles <br> ErrorLog /var/www/ <br> CustomLog /var/www/ combined

Ok. I will create a new droplet and move everything from my old one to new one but this time using this <br> <br>By the way my distro is Ubuntu ^^. <br>Any doubt I have I gonna back here to annihilate it. Thank you so much <br>