-
Notifications
You must be signed in to change notification settings - Fork 2
Re installing in Acquia non production
Audience: Sitewide administrators, developers
This guide has been developed by the OpenScholar at Harvard maintenance and development team. You may find this useful as a reference for a secure production re-install workflow, especially if you're using a similar hosting enviornment to Acquia Cloud.
These are steps to take when a production install of OpenScholar is to be "wiped", or re-installed from scratch. Due to security concerns, it's better to install in a non-production environment, then copy the non-production database into the production database. Additionally, you probably want to install via install.php (not drush) to ensure no memory issues and ensure no other install errors occur.
With those assumptions in mind, here's the full instructions:
- Find the Drupal core version your install is using. Clone the drupal core repository and check out this version branch anywhere on your local machine.
- Clone your hosted repository. In Acquia's case, this is the git repository whose URL resides in the Cloud control panel.
- Check out a non-production branch (i.e. the active branch in your chosen dev or staging environment)
- Copy the
install.php
file from your drupal core repository into your hosted repository'sdocroot
folder. - Add, commit, and push so that install.php is now (temporarily) accessible from a non-production environment in your browser.
- If necessary, use
drush sql-drop
on your browser-accessible environment, or executeDROP DATABASE
andCREATE DATABASE
so that when you access install.php, it doesn't throw an error or say "already installed". - Run through the install process at install.php
- Once installed, run
drush rr && drush cc all
in the fresh environment. - Verify that Clean URLs are enabled at /admin/config/search/clean-urls
- Verify that new site registration works at /site/register
- Copy the database into the production environment
- Run
drush rr && drush cc all
in the production environment - Verify that the purl_base_domain variable matches the production URL.
- As above, verify that Clean URLs and site registration both work.
- Verify in /admin/people/permissions that the correct roles have access to create sites.*
- Optionally, enable HWP themes in /admin/appearance, then set featured themes in /admin/config/openscholar
- Done!
- Note: For our demo install, we modify default install permissions to allow anonymous users to "create new", "edit own" and "delete own" for each of "Department site", "Personal site" and "Project site" content types.