Giter Club home page Giter Club logo

library-diy's Introduction

Library-DIY

Library DIY Installation

Library DIY is built on Drupal, so the basic Drupal installation will end in a working system.

  1. Create a database and user account.

  2. Install the software to the web server's root. This will place Library DIY in a subdirectory /diy off the web server's root. Note: Library DIY can be installed in a different location, including the site root with a minor change to the .htaccess file. Please see Appendix A for for more information.

cd /var/www/html
git clone https://github.com/pdxlibrary/Library-DIY.git diy
cd diy
git checkout master
  1. Configure Drupal.

a. Copy the the default settings file.

cp sites/default/default.settings.php sites/default/settings.php

b. Edit $databases (to set the database connection information) and $drupal_hash_salt.

  $databases = array (
    'default' => 
    array (
      'default' => 
      array (
        'database' => 'diy_db_name',
        'username' => 'diy_db_user',
        'password' => 'diy_db_pass',
        'host' => 'db_server_name',
        'port' => '',
        'driver' => 'mysql',
        'prefix' => '',
      ),
    ),
  );

  $drupal_hash_salt = 'big_long_string';
  
  1. Add the site files directory.
mkdir sites/default/files
  1. Set permissions on writable directories.
# Debian, Ubuntu, etc.
chown -R www-data.www-data diy/sites/default 

# RHEL, CentOS, etc.
chown -R apache.apache diy/sites/default
  1. Load the initial database tables.
mysql -u diy_db_user -p diy_db_name < library-diy.mysql
  1. Login to the site using the default admin account
http://server-name/diy/user
user: admin
pass: yiddy
  1. Adding a custom header/footer (optional)
To add a custom header/footer, edit the core template file:
  \sites\all\themes\diy\page.tpl.php
 
Replace with custom header code:
<!-- CUSTOM HEADER GOES HERE -->
 
Replace with custom footer code:
<!-- CUSTOM FOOTER GOES HERE -->

Getting Started & Creating Content

View the Library DIY Wiki for tips on getting started with Library DIY.

Appendix

Appendix A: Installing Library DIY in a location other than the default location

.htaccess changes โ€“ set the RewriteBase to "/" to install at the webroot or change 
{subdirectory} to the path where Library DIY is installed off of the webroot.

# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
# RewriteBase /drupal
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
RewriteBase /{subdirectory}

library-diy's People

Contributors

mflakus avatar

Watchers

James Cloos avatar Melody Joy Kramer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.