Welcome to your Drupal Site!

This is an example drupal installation to help you understand how your site should be deployed. When you're ready to deploy your site, be sure to run the following command as root:

a2dissite examplesite.com

And Then:

/etc/init.d/apache2 reload

Deploying your Drupal Site

Create your Database

  1. Login to this server with: ssh deploy@your-ip-address
  2. Enter the MySQL console by typing:
    mysql
  3. Create your database with:
    create database your-db-name;
  4. Your db username will be 'deploy', and your password can be found by typing the following command when ssh'd in:
    cat ~/.my.cnf

Create your Apache vHost

  1. If you haven't done so already, you'll want to first rename the directory title: 'changeme.com' to the name of your site
    mv changeme.com your-site-name
  2. Sudo up to the root user by typing:
    sudo su -
  3. Move to the apache vhost directory with:
    cd /etc/apache2/sites-available
  4. Copy our example site vhost to your new site with:
    cp examplesite.com your-site.com

    Modify the SiteName to match your URL, and modify the directory locations to reference your site

  5. When you've finished editing that, enable your site and reload apache with:
    a2ensite your-site-name
    /etc/init.d/apache2 reload

    If you receive any errors, be sure to check that you've correctly entered the location of your site and log files.

  6. Exit the root user and return to the deploy user with:
    exit

Upload your site
After you've uploaded your site, just follow the normal setup procedures to setup your drupal site.