How to Install Omeka CMS on Ubuntu 19.04
Installation of Omeka Cms On Ubuntu 19.04
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 Ubuntu 19.04
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 Ubuntu version by using the following command
root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco
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 4
Server version: 5.7.26-0ubuntu0.19.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.04 sec)
mysql> create user 'omekauser'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (1.67 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 (2.02 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-19 10:03:42-- 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%2F20190619%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190619T043351Z&X-Amz-Expires=300&X-Amz-Signature=50c1be3626989ed56830bae99aed7ebfd89bd584cf31dee03fd406303f62a803&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-19 10:03:43-- 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%2F20190619%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190619T043351Z&X-Amz-Expires=300&X-Amz-Signature=50c1be3626989ed56830bae99aed7ebfd89bd584cf31dee03fd406303f62a803&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.217.0.107
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.217.0.107|: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 399KB/s in 40s
2019-06-19 10:04:25 (346 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/ClearCache/ResultCommand.php
inflating: omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php
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# ll
total 16
drwxr-xr-x 2 www-data www-data 4096 Jun 19 10:10 ./
drwxr-xr-x 9 www-data www-data 4096 Jun 19 10:04 ../
-rwxr-xr-x 1 www-data www-data 90 Apr 9 14:41 database.ini*
-rwxr-xr-x 1 www-data www-data 806 Apr 9 14:41 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