Report this

What is the reason for this report?

Moving website in local XAMPP stack in a Mac... to Ubuntu 14.04 droplet

Posted on February 12, 2015

I have a website that I developed on a Mac using XAMPP (a cross-platform LAMP stack). The website uses the following technologies: HTML, CSS, Javascript, jQuery and PHP.

And I have a domain name I bought via Hover.com.

Now, I’ve bought a Digital Ocean droplet consisting of Ubuntu 12.04.

What are the steps I need to do to transfer my website so it becomes live on the domain? Could you kindly point me to up-to-date tutorials?

One key issue for me is that I will be hosting multiple domains on this droplet, so I might need to set up virtual hosts or use some other technique. Advice on how to do this would be especially welcome.

I’ve seen some tutorials on here, but some of the information seems a little old, so am not sure if it’s up-to-date.

Thanks for the help.



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!

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.

Nevermind my last comment – I was able to resolve it. For some reason my javascript file javascript/example.js wasn’t able to be read by the browser. After I renamed the javascript directory js (so that the new path was js/example.js ) and updated my index file accordingly, everything started working.

Strange and bizarre, I know, but that’s server admin for you!

Thank you. Appreciate the quick answer.

A clarification please:

— if I eventually plan to host multiple domains (small static websites) on the same droplet, what should I do now (and how) to prepare for that eventuality (e.g. set up virtualhosts or some other technique?).

@ryanpq – An update: everything in your first comment worked fine. Thank you very much.

I’ve asked about setting up multiple domains on my single droplet in my previous comment.

And I have one more request: I have another site which has a MySQL database attached to it. I’d like your instructions on the correct way to install MySQL on the droplet, and then migrate the website with the MySQL database from from XAMPP on my Mac to the Ubuntu 14.04 droplet.

Thanks!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.