Question

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

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.


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.

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!

Hi there. Serious issue I hope you could give me some advice on.

I deleted the default virtualhost in “sites-available”. And created one named specifically for my site. After that, I moved some directories around, but now my site doesn’t work any more. Specifically, the browser is able to access the Index page, but it isn’t able to access a javascript file enclosed in a directory at the same level as the index page.

My public html files are in this folder: var/www/example.com/public_html

index.html is here: var/www/example.com/public_html/index.html

javascript is here: var/www/example.com/public_html/javascript/example.js

I have done the following: chown -R www-data:www-data /var/www chmod -R 755 /var/www/example.com

However, the browser is still unable to access the javascript file. Any suggestions on what’s going on? (Browser is able to access the index file.)

@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!