Difference between revisions of "LacunaStories"

From TSAS Library
Jump to: navigation, search
(Created page with "==Installing== # Setup AWS as usual. # Install git: ## <code>sudo apt-get update</code> ## <code>sudo apt-get install git-core</code> # Read the instructions at [https://gith...")
 
Line 1: Line 1:
==Installing==
==Installation==
# Setup AWS as usual.
# Setup AWS as usual.
# Install git:  
# Install git:  
Line 17: Line 17:
## Log in to MySQL <code>sudo mysql -p</code>, then <code>exit</code>
## Log in to MySQL <code>sudo mysql -p</code>, then <code>exit</code>
# Open /lacunastories/install
# Open /lacunastories/install
## If "The directory sites/default/files is not writable," <code>The directory sites/default/files is not writable. <code>sudo chmod 775 files</code>
## If "The directory sites/default/files is not writable," <code>The directory sites/default/files is not writable. <code>sudo chmod 777 files</code>
## If copy and rename <code>sudo cp default.settings.php default/settings.php</code>, then <code>sudo chmod 777 sites/default/settings.php</code>
## If "No PDO," then <code>sudo apt-get install pdo-mysql</code>
## Run <code>sudo service apache2 restart</code>
## Run <code>sudo service mysql restart</code>

Revision as of 21:29, 13 November 2016

Installation

  1. Setup AWS as usual.
  2. Install git:
    1. sudo apt-get update
    2. sudo apt-get install git-core
  3. Read the instructions at Lacuna Stories
  4. Install LAMP:
    1. Begin with Apache2 sudo apt-get install apache2
    2. Install MySQL sudo apt-get install mysql-server
    3. Install PHP 5.6 sudo apt-get -y install php5 libapache2-mod-php5
  5. Install Drush for updates php -r "readfile('https://s3.amazonaws.com/files.drush.org/drush.phar');" > drush
  6. Git Lacuna Stories at /var/www/html git clone https://github.com/PoeticMediaLab/LacunaStories.git (and probably change to "lacunastories"
  7. Clone Annotator.js sudo git clone https://github.com/openannotation/annotator.git
  8. Clone D3 sudo git clone https://github.com/d3/d3.git
  9. Follow Drupal installation instructions from step 3
    1. Create MySQL database sudo mysql -p -e "CREATE DATABASE databasename CHARACTER SET utf8 COLLATE utf8_general_ci";
    2. Log in to MySQL sudo mysql -p, then exit
  10. Open /lacunastories/install
    1. If "The directory sites/default/files is not writable," The directory sites/default/files is not writable. sudo chmod 777 files
    2. If copy and rename sudo cp default.settings.php default/settings.php, then sudo chmod 777 sites/default/settings.php
    3. If "No PDO," then sudo apt-get install pdo-mysql
    4. Run sudo service apache2 restart
    5. Run sudo service mysql restart