Question

Setting Up Digital Ocean Environment:

Posted May 17, 2015 1.9k views
MySQLPHPGetting StartedDigitalOceanAPIPHP FrameworksApplications

Hi Peeps!,

I’m currently building an application running off the Laravel 5 Framework.

My development environment is as follows:

  1. I develop locally - ( duh.. )
  2. I push my code to my private GitHub Repo
  3. I’m utilizing Forge to listen for these changes and then Deploy to Digital Ocean Server

My Question(s) is/are:

  1. When making these deployments how can I configure individual databases within Digital Ocean?

  2. Can I host multiple sites on the same server?

  3. Any proposed data structures for organizing multiple projects on Digital Ocean.

NOTE: I must admit I have a bit of OCD when it comes to structure ;) Any suggestions and guidance would be very much appreciated!

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.

×
1 answer

When making these deployments how can I configure individual databases within Digital Ocean?

You can create new databases using the ‘mysql’ command line interface with CREATE DATABASE dbname; or by using a GUI like phpmyadmin.

Can I host multiple sites on the same server?

Absolutely.

Any proposed data structures for organizing multiple projects on Digital Ocean.

You will want to create a new virtualhost for each project/site with a separate MySQL database for each as well.

by Justin Ellingwood
The Apache web server is the most popular way to serve web content on the internet. Apache has the ability to serve multiple domains from a single server by using a mechanism called "virtual hosts". If a virtual host is configured correctly for each domain, the web server can correctly route traffic to the appropriate files based on the domain name requested. In this guide, we'll demonstrate how to configure Apache virtual hosts on an Ubuntu 14.04 VPS.
Submit an Answer