pjbellme
By:
pjbellme

Setting Up Digital Ocean Environment:

May 17, 2015 763 views
DigitalOcean Applications API PHP MySQL Getting Started PHP Frameworks

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!

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.
Have another answer? Share your knowledge.