LacunaStories

From TSAS Library
Jump to: navigation, search

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
  11. Remove write permissions: /default to sudo chmod 555 default and settings.php to sudo chmod 444 settings.php
  12. Install FTP server sudo apt-get install vsftpd
  13. For clean URLs:
    1. Enable Apache rewrite sudo a2enmod rewrite
    2. Open sudo nano etc/apache2/apache2.conf and change AllowOverride None to AllowOverride All For all of them. There are three.
    3. Open .htaccess file sudo nano ./var/www/html/lacunastories/.htaccess and uncomment Rewritebase to Rewritebase /lacunastories

Updating

If "Command pm-update needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to run this command," sidestep the issue with Drush command in /lacunastories: sudo drush up [module]