By beginner
Hello, i am beginner. i am installed virtual box 5 and set up centOS 6.7 minimal. I am install all LAMP and everthing works fine.I made database and user in phpMyAdmin for Joomla and WP. I must install two web sites(Joomla and Drupal) on separate domain in browser and separate folder using C:\Windows\System32\drivers\etc for direction ip address. When i install Joomla i can enter on site with my ip adress 192.168.56.108.
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!
Are you trying to set this up on a Droplet through DigitalOcean or on your local Windows PC? If you are looking to setup a LAMP stack on a Droplet, you really don’t need VirtualBox as Apache will be able to handle as many domains as you need while providing the ability to use your domains.
I would recommend looking over the following tutorial. It’s for Fedora, though you could just as easily replace Fedora with CentOS as things are ultimately similar and the commands should not differ.
I’m using NginX, but the principles are the same in that “beginner” needs to set up virtual hosts for the web server. That Fedora link isn’t sufficient information. I do agree that setting up virutal box is a weird approach, assuming “beginner” is trying to take one droplet and create two virtual servers. Apache and NginX can keep the websites isolated, though they will share the same IP address.
I’m using FreeBSD, so I can’t be of much more help, (Well providing people think I helped at all. ;-)) Here is a google hit regading virutal hosts, but obviously untested by me.
Doing a quick scan of the article, I don’t a mention of DNS, but obviously you have to set up DNS for each domain, even if the actual IP is the same.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.