Omeka Install & Setup LAMP

Omeka Install & Setup LAMP

Having worked with Omeka the past few days I'll explain how to set it up on a LAMP stack. Firstly, what is Omeka? Well, taken from their website;


Omeka.net is web-publishing platform that allows anyone with an account to create or collaborate on a website to display collections and build digital exhibitions. No technical skills or special server requirements are necessary. Sign up, and start sharing. Instructions for using Omeka.net are in the right column.

  • Share Collections
  • Gather Stories
  • Build Exhibits
  • Map Photos
  • Create Simple Web Pages
  • Customize Web Design Templates
  • Share data through feeds
  • Collaborate

There are 5 main steps in setting this up;

  1. Set up LAMP stack and ImageMagick
  2. Download and install Omeka
  3. Create and modify database
  4. Enable mod_rewrite (worst part)
  5. Test

Step 1- Set up LAMP stack and ImageMagick
Install PHP5:

sudo apt-get install php5


Install PHP-MySQL:

sudo apt-get install php5-mysql


Install Apache2:

sudo apt-get install apache2


Install MySQL server:

sudo apt-get install mysql-server


Install ImageMagick (image software used by Omeka):

sudo apt-get install imagemagic

Step 2- Download and install Omeka
Download Omeka to home directory:

cd wget http://omeka.org/files/omeka-2.3.1.zip unzip omeka-2.3.1.zip


Move unzipped files to web directory

sudo mv omeka-2.3.1/* /var/www/html sudo mv omeka-2.3.1/.htaccess /var/www/html

Step 3- Create and modify database
Open MySQL 

mysql -u root -p


Create the database 

create database omeka; grant all privileges on omeka.* to 'username'@'localhost' identified by 'password'; flush privileges; quit;


Open db.ini in terminal to modify

sudo nano /var/www/html/db.ini


Adjust values to reflect newly created settings and save file.

[database] host = "localhost" username = "username" password = "password" dbname = "omeka" prefix = "omeka_"

Step 4- Enable mod_rewrite for Apache
Enable mod_rewrite and restart the server:

sudo a2enmod rewrite sudo service apache2 restart


Open apache2.conf file 

sudo nano /etc/apache2/apache2.conf 


Modify apache2.conf (append to the end of the file), then save and close

ServerName localhost # Enable mod_rewrite <IfModule mod_rewrite.c> RewriteEngine On </IfModule>


Open 000-default.conf file in gedit

sudo gedit /etc/apache2/sites-available/000-default.conf 


Modify 000-default.conf (append below line DocumentRoot /var/www), then save and close

<Directory "/var/www/html"> AllowOverride All </Directory>


Restart server

sudo service apache2 restart

Step 5 - test.


Visit http://localhost and your new Omeka site should be ready to go!

Rate this blog entry:
A Very Chrome Kiosk
Laravel and XAMPP

Comments

 
No comments yet