Difference between revisions of "LacunaStories"
From TSAS Library
JStallings (talk | contribs) |
JStallings (talk | contribs) |
||
Line 24: | Line 24: | ||
# Remove write permissions: /default to <code>sudo chmod 555 default</code> and settings.php to <code>sudo chmod 444 settings.php</code> | # Remove write permissions: /default to <code>sudo chmod 555 default</code> and settings.php to <code>sudo chmod 444 settings.php</code> | ||
# Install FTP server <code>sudo apt-get install vsftpd</code> | # Install FTP server <code>sudo apt-get install vsftpd</code> | ||
# For clean URLs: | |||
## Enable Apache rewrite <code>sudo a2enmod rewrite</code> | |||
## Open <code>sudo nano etc/apache2/apache2.conf</code> and change <code>AllowOverride None</code> to <code>AllowOverride All</code> ''For '''all''' of them. There are three. | |||
## Open .htaccess file <code>sudo nano ./var/www/html/lacunastories/.htaccess</code> and uncomment Rewritebase to Rewritebase /lacunastories | |||
==Updating== | ==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: <code>sudo drush up [module]</code> | 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: <code>sudo drush up [module]</code> |
Latest revision as of 22:55, 13 November 2016
Installation
- Setup AWS as usual.
- Install git:
sudo apt-get update
sudo apt-get install git-core
- Read the instructions at Lacuna Stories
- Install LAMP:
- Begin with Apache2
sudo apt-get install apache2
- Install MySQL
sudo apt-get install mysql-server
- Install PHP 5.6
sudo apt-get -y install php5 libapache2-mod-php5
- Begin with Apache2
- Install Drush for updates
php -r "readfile('https://s3.amazonaws.com/files.drush.org/drush.phar');" > drush
- Git Lacuna Stories at /var/www/html
git clone https://github.com/PoeticMediaLab/LacunaStories.git
(and probably change to "lacunastories" - Clone Annotator.js
sudo git clone https://github.com/openannotation/annotator.git
- Clone D3
sudo git clone https://github.com/d3/d3.git
- Follow Drupal installation instructions from step 3
- Create MySQL database
sudo mysql -p -e "CREATE DATABASE databasename CHARACTER SET utf8 COLLATE utf8_general_ci";
- Log in to MySQL
sudo mysql -p
, thenexit
- Create MySQL database
- Open /lacunastories/install
- If "The directory sites/default/files is not writable,"
The directory sites/default/files is not writable.
sudo chmod 777 files
- If copy and rename
sudo cp default.settings.php default/settings.php
, thensudo chmod 777 sites/default/settings.php
- If "No PDO," then
sudo apt-get install pdo-mysql
- Run
sudo service apache2 restart
- Run
sudo service mysql restart
- If "The directory sites/default/files is not writable,"
- Remove write permissions: /default to
sudo chmod 555 default
and settings.php tosudo chmod 444 settings.php
- Install FTP server
sudo apt-get install vsftpd
- For clean URLs:
- Enable Apache rewrite
sudo a2enmod rewrite
- Open
sudo nano etc/apache2/apache2.conf
and changeAllowOverride None
toAllowOverride All
For all of them. There are three. - Open .htaccess file
sudo nano ./var/www/html/lacunastories/.htaccess
and uncomment Rewritebase to Rewritebase /lacunastories
- Enable Apache rewrite
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]