How to Install Omeka CMS on Linuxmint 19

Installation of Omeka CMS On Linuxmint 19

Omeka is a free and open source content management system for online digital collections. As a web application, it allows users to publish and extend its functionality with themes and plugins. This tutorial covers the installation of Omeka CMS On Linuxmint 19

Requirements for Omeka Cms:

Apache

Mysql

Php and its modules

(php php-xml php-mysql php-mbstring php-zip php-soap php-curl php-gd php-ldap php-imap php-common php-dev libmcrypt-dev php-pear)

Installation procedure

Check the Linuxmint version by using the following command

root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID:	LinuxMint
Description:	Linux Mint 19 Tara
Release:	19
Codename:	tara

Configure the MySQL database. Log into MySQL as a root user and make the necessary settings.

root@linuxhelp:~# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.26-0ubuntu0.18.04.1 (Ubuntu)
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database omekadb;
Query OK, 1 row affected (0.00 sec)
mysql> create user 'omekauser'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.03 sec)
mysql> grant all privileges on omekadb.* to 'omekauser'@localhost;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye

Once the database configuration is done, download the Omeka Cms. Installation package by using the wget command.

root@linuxhelp:~# wget https://github.com/omeka/omeka-s/releases/download/v1.4.0/omeka-s-1.4.0.zip
--2019-06-20 16:13:20--  https://github.com/omeka/omeka-s/releases/download/v1.4.0/omeka-s-1.4.0.zip
Resolving github.com (github.com)... 13.234.176.102
Connecting to github.com (github.com)|13.234.176.102|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/12057192/15fe4f80-5ad6-11e9-8bc2-a6804b988866?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190620%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190620T051329Z&X-Amz-Expires=300&X-Amz-Signature=8baef8e89f2dcc4c7d9f76b5801b4ecfe27d8ade52ca4dcccdb40d07f23ba6af&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Domeka-s-1.4.0.zip&response-content-type=application%2Foctet-stream [following]
--2019-06-20 16:13:21--  https://github-production-release-asset-2e65be.s3.amazonaws.com/12057192/15fe4f80-5ad6-11e9-8bc2-a6804b988866?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190620%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190620T051329Z&X-Amz-Expires=300&X-Amz-Signature=8baef8e89f2dcc4c7d9f76b5801b4ecfe27d8ade52ca4dcccdb40d07f23ba6af&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Domeka-s-1.4.0.zip&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.233.99
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.233.99|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14052203 (13M) [application/octet-stream]
Saving to: ‘omeka-s-1.4.0.zip’

omeka-s-1.4.0.zip             100%[=================================================>]  13.40M  1.01MB/s    in 14s     

2019-06-20 16:13:36 (965 KB/s) - ‘omeka-s-1.4.0.zip’ saved [14052203/14052203]

Extract the downloaded package using unzip command

root@linuxhelp:~# unzip omeka-s-1.4.0.zip
Archive:  omeka-s-1.4.0.zip
  inflating: omeka-s/.htaccess       
  inflating: omeka-s/LICENSE         
  inflating: omeka-s/README.md       
  inflating: omeka-s/bootstrap.php   
  inflating: omeka-s/cli-config.php  
  inflating: omeka-s/composer.json
.
.
  inflating: omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/CreateCommand.php  
  inflating: omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/DropCommand.php  
  inflating: omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php  

Move the Omeka Cms directory to apache root directory

root@linuxhelp:~# mv omeka-s /var/www/omeka

Set the ownership and permission for Omeka Cms by using the following command

root@linuxhelp:~# chown -R www-data.www-data /var/www/omeka
root@linuxhelp:~# chmod -R 755 /var/www/omeka

Configure the virtualhost for accessing the Omeka Cms

root@linuxhelp:~# vim /etc/apache2/sites-available/omeka.conf
<Virtualhost *:80>
        Servername www.linuxhelp1.com
        documentroot /var/www/omeka
<directory /var/www/omeka>
allowoverride all
allow from all
</directory>
</virtualhost>

Disable the default site access

root@linuxhelp:~# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2

Enable the site access for accessing the Omeka Cms

root@linuxhelp:~# a2ensite omeka.conf
Enabling site omeka.
To activate the new configuration, you need to run:
systemctl reload apache2

Enable the rewrite module

root@linuxhelp:~# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2

Enter into the path

root@linuxhelp:~# cd /var/www/omeka/config

List out the file

root@linuxhelp:/var/www/omeka/config# ls
database.ini  local.config.php

Change the database.ini file

root@linuxhelp:/var/www/omeka/config# vim database.ini
user     = omekauser
password = Linuxc#4
dbname   = omekadb
host     = localhost
;port     = 
;unix_socket = 
;log_path =

Restart the apache service by using the following command

root@linuxhelp:/var/www/omeka/config# systemctl restart apache2

**Switch to your browser and enter the domain name **

Create your admin credentials Enter the admin credintials to login the omeka cms This is the dash board of omeka cms With this, the method to install Omeka cms on Linuxmint 19 comes to an end.

FAQ
Q
Where to download the Omeka cms?
A
Follow the link to download the Omeka cms

wget https://github.com/omeka/omeka-s/releases/download/v1.4.0/omeka-s-1.4.0.zip
Q
How to configure the Host entry in Omeka cms?
A
Enter into #vim /etc/hosts

Q
What are their basic requirements for Omeka cms?
A
Requirements for this as below, LAMP Setup -Apache -Mysql -PHP 7
Q
What are the php modules required for Omeka cms?
A
These are the modules required for sliverstripe

php php-xml php-mysql php-mbstring php-zip php-soap php-curl php-gd php-ldap php-imap php-common php-dev libmcrypt-dev php-pear
Q
What is use of Omeka cms?
A
Omeka is a free and open source content management system for online digital collections. As a web application, it allows users to publish and extend its functionality with themes and plugins.