Question

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.

Hello,

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 http://prdownloads.sourceforge.net/webadmin/webmin_1.680_all.deb <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 webmaster@helpme2000.com <br>ServerName www.helpme2000.com <br> ServerAlias helpme2000.com <br> <br> # Indexes + Directory Root. <br>DirectoryIndex index.php index.html <br>DocumentRoot /var/www/helpme2000.com/htdocs/ <br> <br> # CGI Directory <br> ScriptAlias /cgi-bin/ /var/www/helpme2000.com/cgi-bin/ <br> <Location /cgi-bin> <br> Options +ExecCGI <br> </Location> <br> <br> # Logfiles <br> ErrorLog /var/www/helpme2000.com/logs/error.log <br> CustomLog /var/www/helpme2000.com/logs/access.log combined

Ok. I will create a new droplet and move everything from my old one to new one but this time using this https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts. <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>