{"id":7260,"date":"2018-11-21T14:25:13","date_gmt":"2018-11-21T11:25:13","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/how-to-install-elxis-cms-on-ubuntu-1804\/"},"modified":"2018-11-21T14:25:13","modified_gmt":"2018-11-21T11:25:13","slug":"how-to-install-elxis-cms-on-ubuntu-18-04-lts","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-install-elxis-cms-on-ubuntu-18-04-lts\/","title":{"rendered":"How to Install Elxis CMS on Ubuntu 18.04 LTS"},"content":{"rendered":"<p>Elxis CMS is a free and open source CMS written in the PHP language that allows us to create a website from small to websites to corporate websites. It is simple, fast and easy to use so you can easily install it without any programming skills. It comes with many features such as, Support multi-sites and multiple languages, Supports SSL\/TLS, Multi-level menus, Performance monitor, Image galleries, Responsive design and much more.<\/p>\n<p>In this tutorial, we will explain how to install Elxis 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 static IP address 172.20.10.8 is set up to your server.<\/li>\n<li>A non-root user with sudo privileges.<\/li>\n<\/ul>\n<h2 id=\"getting-started\">Getting Started<\/h2>\n<p>Before starting, you will need to update your system with the latest version. You can do this by running the following command:<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">sudo apt-get update -y<br\/>sudo apt-get upgrade -y<\/code><\/pre>\n<p>Once your system is updated, restart the system to apply the changes.<\/p>\n<h2 id=\"install-lamp-server\">Install LAMP Server<\/h2>\n<p>First, install Apache web server, MariaDB server, PHP and other PHP modules by running the following command:<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">sudo apt-get install apache2 mariadb-server php7.2 php7.2-mysql php7.2-curl php7.2-xml php7.2-intl php7.2-cli php7.2-ldap php7.2-zip php7.2-readline php7.2-imap php7.2-json php7.2-cgi libapache2-mod-php7.2 php7.2-xmlrpc php7.2-gd php7.2-mbstring php7.2 php7.2-common php7.2-xmlrpc php7.2-soap php7.2-tidy php7.2-recode php7.2-sqlite3 php7.2-intl unzip wget -y<\/code><\/pre>\n<p>Once all the packages are installed, open php.ini file and make some changes:<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">sudo nano \/etc\/php\/7.2\/apache2\/php.ini<\/code><\/pre>\n<p>Make the following changes:<\/p>\n<pre>memory_limit = 256M&#13;\nupload_max_filesize = 150M&#13;\nmax_execution_time = 360&#13;\ndate.timezone = Asia\/Kolakata&#13;\n<\/pre>\n<p>Save and close the file.<\/p>\n<h2 id=\"configure-mariadb\">Configure MariaDB<\/h2>\n<p>By default, MariaDB is not secured. So you will need to secure it first. You can secure it by running the following command:<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">sudo mysql_secure_installation<\/code><\/pre>\n<p>Answer all the questions as below:<\/p>\n<pre> Enter current password for root (enter for none): ENTER&#13; Set root password? [Y\/n]: N&#13; Remove anonymous users? [Y\/n]: Y&#13; Disallow root login remotely? [Y\/n]: Y&#13; Remove test database and access to it? [Y\/n]: Y&#13; Reload privilege tables now? [Y\/n]: Y&#13;\n<\/pre>\n<p>Once the MariaDB is secured, log in to MariaDB shell:<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">mysql -u root -p<\/code><\/pre>\n<p>Provide your root password. Then, create a database and user for Elxis:<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">MariaDB [(none)]&gt; CREATE DATABASE elxis;<br\/>MariaDB [(none)]&gt; CREATE USER 'elxis'@'localhost' IDENTIFIED BY 'password';<\/code><\/pre>\n<p>Next, grant all privileges to the Elxis with the following command:<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">MariaDB [(none)]&gt; GRANT ALL ON elxis.* TO 'elxis'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;<\/code><\/pre>\n<p>Next, flush the privileges and exit from the MariaDB shell:<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">MariaDB [(none)]&gt; FLUSH PRIVILEGES;<br\/>MariaDB [(none)]&gt; EXIT;<\/code><\/pre>\n<h2 id=\"install-elxis\">Install Elxis<\/h2>\n<p>First, download the latest version of Elxis from their official website&#8217;s download page.<\/p>\n<p><a href=\"http:\/\/www.elxis.org\/download.html\" target=\"_blank\" rel=\"noopener\">http:\/\/www.elxis.org\/download.html<\/a><\/p>\n<p>And store it on your server, e.g. in \/tmp. Once the download is completed, unzip the downloaded file to the Apache root directory with the following command:<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">sudo unzip elxis_4.6_phaethon_rev1958.zip -d \/var\/www\/html\/elxis<\/code><\/pre>\n<p>Next, give proper permissions to the elxis directory:<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">chown -R www-data:www-data \/var\/www\/html\/elxis<br\/>chmod -R 777 \/var\/www\/html\/elxis<\/code><\/pre>\n<p>Next, create an Apache virtual host file for Elxis:<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">sudo nano \/etc\/apache2\/sites-available\/elxis.conf<\/code><\/pre>\n<p>Add the following lines:<\/p>\n<pre>&lt;VirtualHost *:80&gt;&#13; ServerAdmin <a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"80e1e4ede9eec0e5f8e1edf0ece5aee3efed\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>&#13; DocumentRoot \/var\/www\/html\/elxis&#13; ServerName example.com&#13; ServerAlias www.example.com&#13;\n&#13; &lt;Directory \/var\/www\/html\/elxis\/&gt;&#13; Options FollowSymlinks&#13; AllowOverride All&#13; Require all granted&#13; &lt;\/Directory&gt;&#13;\n&#13; ErrorLog ${APACHE_LOG_DIR}\/error.log&#13; CustomLog ${APACHE_LOG_DIR}\/access.log combined&#13;\n&#13;\n&lt;\/VirtualHost&gt;&#13;\n<\/pre>\n<p>Save and close the file. Then, enable Apache virtual host and rewrite module with the following command:<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">sudo a2ensite elxis<br\/>sudo a2enmod rewrite<\/code><\/pre>\n<p>Finally, restart Apache service with the folowing command:<\/p>\n<pre class=\"command\"><code spellcheck=\"false\">sudo systemctl restart apache2<\/code><\/pre>\n<h2 id=\"access-elxis\">Access Elxis<\/h2>\n<p>Now, open your web browser and type the URL http:\/\/example.com. 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_elxis_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\/11\/how-to-install-elxis-cms-on-ubuntu-18-04-lts.png\" alt=\"Elxis CMS web installer\" width=\"550\" height=\"316\" title=\"\"><\/a><\/p>\n<p>Now, click on the <strong>Continue<\/strong> button. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page3\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_elxis_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\/11\/how-to-install-elxis-cms-on-ubuntu-18-04-lts-1.png\" alt=\"Accept Elxis license\" width=\"550\" height=\"311\" title=\"\"><\/a><\/p>\n<p>Accept the license agreement and click on the <strong>Continue<\/strong> button. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page4_1\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_elxis_cms_on_ubuntu_1804\/big\/page4_1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-elxis-cms-on-ubuntu-18-04-lts-2.png\" alt=\"Database settings - 1\" width=\"550\" height=\"258\" title=\"\"><\/a><\/p>\n<p><a class=\"fancybox\" id=\"img-page4_2\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_elxis_cms_on_ubuntu_1804\/big\/page4_2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-elxis-cms-on-ubuntu-18-04-lts-3.png\" alt=\"Settings - 2\" width=\"550\" height=\"212\" title=\"\"><\/a><\/p>\n<p>Now, provide your Database details and click on the <strong>Submit<\/strong> button. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page5\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_elxis_cms_on_ubuntu_1804\/big\/page5.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-elxis-cms-on-ubuntu-18-04-lts-4.png\" alt=\"Create admin account\" width=\"550\" height=\"295\" title=\"\"><\/a><\/p>\n<p>Provide your admin account details and click on the <strong>Submit<\/strong> button. Once the installation is completed you should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page7\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_elxis_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\/11\/how-to-install-elxis-cms-on-ubuntu-18-04-lts-5.png\" alt=\"Elxis installation finished\" width=\"550\" height=\"295\" title=\"\"><\/a><\/p>\n<p>Now, click on the <strong>Visit your new website<\/strong> button. You should see the Elxis default dashboard in the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page8\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_elxis_cms_on_ubuntu_1804\/big\/page8.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/11\/how-to-install-elxis-cms-on-ubuntu-18-04-lts-6.png\" alt=\"Elxis website frontend\" width=\"550\" height=\"302\" title=\"\"><\/a><\/p>\n<p>Elxis has been successfully installed.<\/p>\n<h2 id=\"links\">Links<\/h2>\n","protected":false},"excerpt":{"rendered":"<p>Elxis CMS is a free and open source CMS written in the PHP language that allows us to create a website from small to websites to corporate websites. It is simple, fast and easy to use so you can easily install it without any programming skills. It comes with many features such as, Support multi-sites [&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-7260","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/7260","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=7260"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/7260\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=7260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=7260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=7260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}