{"id":6485,"date":"2018-08-30T18:24:05","date_gmt":"2018-08-30T14:24:05","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/ubuntu-omeka-classic-cms-installation\/"},"modified":"2018-08-30T18:24:05","modified_gmt":"2018-08-30T14:24:05","slug":"how-to-install-omeka-classic-cms-on-ubuntu-18-04-lts","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-install-omeka-classic-cms-on-ubuntu-18-04-lts\/","title":{"rendered":"How to Install Omeka Classic CMS on Ubuntu 18.04 LTS"},"content":{"rendered":"<p>Omeka Classic is a free and open source web publishing platform for sharing digital collections and creating media-rich online exhibits. Omeka Classic enables you to create complex narratives and share rich collections and content at low cost without sacrificing design and technical quality. You can extend its functionality with themes and plugins.<\/p>\n<p>In this tutorial, we will learn how to install Omeka Classic CMS on Ubuntu 18.04 server.<\/p>\n<h2 id=\"requirements\">Requirements<\/h2>\n<ul>\n<li>A server running Ubuntu 18.04.<\/li>\n<li>A non-root user with sudo privileges.<\/li>\n<\/ul>\n<h2 id=\"install-lamp-server\">Install LAMP Server<\/h2>\n<p>Before starting, you will need Apache web server, MariaDB and PHP to be installed to your system. If not installed, then first install Apache and MariaDB server using the following command:<\/p>\n<p class=\"command\">sudo apt-get install apache2 mariadb-server -y<\/p>\n<p>Once both are installed, you will need to install the latest version of PHP to your system. By default, the latest version of PHP is not available in the Ubuntu 18.04 default repository. So add the PHP repository with the following command:<\/p>\n<p class=\"command\">sudo apt-get install software-properties-common -y<br \/>sudo add-apt-repository ppa:ondrej\/php<\/p>\n<p>Next, update the repository and install PHP along with all the required dependencies by running the following command:<\/p>\n<p class=\"command\">sudo apt-get install install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-sqlite3 php7.2-curl php7.2-intl php7.2-mbstring php7.2-xmlrpc php7.2-mysql php7.2-gd php7.2-xml php7.2-cli php7.2-zip -y<\/p>\n<p>Once all the packages are installed, start Apache and MariaDB service and enable them to start on boot by running the following command:<\/p>\n<p class=\"command\">sudo systemctl start apache2<br \/>sudo systemctl enable apache2<br \/>sudo systemctl start mysql<br \/>sudo systemctl enable mysql<\/p>\n<h2 id=\"configure-mariadb\">Configure MariaDB<\/h2>\n<p>Next, you will need to create a database and user for Omeka. First, log in to MariaDB shell with the following command:<\/p>\n<p class=\"command\">mysql -u root -p<\/p>\n<p>Enter your root password, then create a database and user for Omeka:<\/p>\n<p class=\"command\">MariaDB [(none)]&gt; CREATE DATABASE omeka_db;<br \/>MariaDB [(none)]&gt; CREATE USER omeka_user;<\/p>\n<p>Next, grant all the privileges to the Omeka database:<\/p>\n<p class=\"command\">MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON omeka_db.* TO &#8216;omeka_user&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;password&#8217;;<\/p>\n<p>Next, flush the privileges and exit from the MariaDB shell:<\/p>\n<p class=\"command\">MariaDB [(none)]&gt; FLUSH PRIVILEGES;<br \/>MariaDB [(none)]&gt; \\q<\/p>\n<h2 id=\"install-omeka-classic\">Install Omeka Classic<\/h2>\n<p class=\"command\">First, download the latest version of Omeka classic with the following command:<\/p>\n<p class=\"command\">wget https:\/\/github.com\/omeka\/Omeka\/releases\/download\/v2.6.1\/omeka-2.6.1.zip<\/p>\n<p>Once the download is completed, unzip the downloaded file:<\/p>\n<p class=\"command\">unzip omeka-2.6.1.zip<\/p>\n<p>Next, copy the extracted directory to the Apache root directory and give necessary permissions:<\/p>\n<p class=\"command\">sudo cp -r omeka-2.6.1 \/var\/www\/html\/omeka<br \/>sudo chown -R www-data:www-data \/var\/www\/html\/omeka<br \/>sudo chmod -R 755 \/var\/www\/html\/omeka\/<\/p>\n<p>Next, change the directory to the omeka and modify db.ini file:<\/p>\n<p class=\"command\">cd \/var\/www\/html\/omeka sudo nano db.ini<\/p>\n<p>Make the following changes:<\/p>\n<pre>[database]&#13;\nhost = \"localhost\"&#13;\nusername = \"omeka_user\"&#13;\npassword = \"password\"&#13;\ndbname = \"omeka_db\"&#13;\nprefix = \"omeka_\"&#13;\ncharset = \"utf8\"&#13;\n<\/pre>\n<p>Save and close the file, when you are finished.<\/p>\n<p>Next, create an Apache virtual host file for Omeka:<\/p>\n<p class=\"command\">sudo nano \/etc\/apache2\/sites-available\/omeka.conf<\/p>\n<p>add the following lines:<\/p>\n<pre>&lt;VirtualHost *:80&gt;&#13;\nServerAdmin <a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"f59491989c9bb5908d9498859990db969a98\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>&#13;\nDocumentRoot \/var\/www\/html\/omeka\/&#13;\nServerName example.com&#13;\n&lt;Directory \/var\/www\/html\/omeka\/&gt;&#13;\nOptions FollowSymLinks&#13;\nAllowOverride All&#13;\n&lt;\/Directory&gt;&#13;\nErrorLog \/var\/log\/apache2\/omeka-error_log&#13;\nCustomLog \/var\/log\/apache2\/omeka-access_log common&#13;\n&lt;\/VirtualHost&gt;&#13;\n<\/pre>\n<p>Save and close the file. Then, enable virtual host file, Apache rewrite module and header module with the following command:<\/p>\n<p class=\"command\">sudo a2ensite omeka.conf<br \/>sudo a2enmod rewrite<br \/>sudo a2enmod headers<\/p>\n<p>Finally, restart Apache service to make the changes:<\/p>\n<p class=\"command\">sudo systemctl restart apache2<\/p>\n<h2 id=\"access-omeka-classic-web-interface\">Access Omeka Classic Web Interface<\/h2>\n<p>Open your web browser and type the URL <strong>http:\/\/example.com<\/strong>. You will be redirected to the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page1\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_omeka_classic_cms_on_ubuntu_1804\/big\/page1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-omeka-classic-cms-on-ubuntu-18-04-lts.png\" alt=\"Configure Username and password\" width=\"550\" height=\"246\" title=\"\"><\/a><\/p>\n<p><a class=\"fancybox\" id=\"img-page2\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_omeka_classic_cms_on_ubuntu_1804\/big\/page2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-omeka-classic-cms-on-ubuntu-18-04-lts-1.png\" alt=\"Site settings\" width=\"550\" height=\"269\" title=\"\"><\/a><\/p>\n<p><a class=\"fancybox\" id=\"img-page3\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_omeka_classic_cms_on_ubuntu_1804\/big\/page3.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-omeka-classic-cms-on-ubuntu-18-04-lts-2.png\" alt=\"Other settings\" width=\"550\" height=\"345\" title=\"\"><\/a><\/p>\n<p>Here, provide all the required details like your admin username and password, site name, email address, then click on the <strong>Install<\/strong> button. Once the installation has been completed. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page4\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_omeka_classic_cms_on_ubuntu_1804\/big\/page4.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-omeka-classic-cms-on-ubuntu-18-04-lts-3.png\" alt=\"Omeka Classic CMS installed successfully\" width=\"550\" height=\"279\" title=\"\"><\/a><\/p>\n<p>Now, click on the <strong>Admin Dashboard<\/strong> button. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page6\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_omeka_classic_cms_on_ubuntu_1804\/big\/page6.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-omeka-classic-cms-on-ubuntu-18-04-lts-4.png\" alt=\"Login to admin dashboard\" width=\"550\" height=\"276\" title=\"\"><\/a><\/p>\n<p>Here, provide your admin login credentials, then click on the <strong>Log In<\/strong> button. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page7\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_omeka_classic_cms_on_ubuntu_1804\/big\/page7.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-omeka-classic-cms-on-ubuntu-18-04-lts-5.png\" alt=\"Omeka Classic Dashboard\" width=\"550\" height=\"250\" title=\"\"><\/a><\/p>\n<h2 id=\"links\">Links<\/h2>\n<div class=\"authorbox\" readability=\"30\">\n<img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-omeka-classic-cms-on-ubuntu-18-04-lts.jpg\" alt=\"Hitesh Jethva\" title=\"\"> <\/p>\n<p><strong>About Hitesh Jethva<\/strong><\/p>\n<p>Over 8 years of experience as a Linux system administrator. My skills include a depth knowledge of Redhat\/Centos, Ubuntu Nginx and Apache, Mysql, Subversion, Linux, Ubuntu, web hosting, web server, Squid proxy, NFS, FTP, DNS, Samba, LDAP, OpenVPN, Haproxy, Amazon web services, WHMCS, OpenStack Cloud, Postfix Mail Server, Security etc.<\/p>\n<\/div>\n<div>\n<p><b>Share this page:<\/b><\/p>\n<p>\n<a href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-omeka-classic-cms-installation%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-omeka-classic-cms-on-ubuntu-18-04-lts-6.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-omeka-classic-cms-installation%2F&amp;text=How+to+Install+Omeka+Classic+CMS+on+Ubuntu+18.04+LTS&amp;via=howtoforgecom&amp;related=howtoforgecom\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-omeka-classic-cms-on-ubuntu-18-04-lts-7.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/howtoforgecom\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-omeka-classic-cms-on-ubuntu-18-04-lts-8.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-omeka-classic-cms-installation%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-omeka-classic-cms-on-ubuntu-18-04-lts-9.png\" height=\"20\" alt=\"\" title=\"\"><\/a>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Omeka Classic is a free and open source web publishing platform for sharing digital collections and creating media-rich online exhibits. Omeka Classic enables you to create complex narratives and share rich collections and content at low cost without sacrificing design and technical quality. You can extend its functionality with themes and plugins. In this tutorial, &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-6485","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/6485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=6485"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/6485\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=6485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=6485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=6485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}