{"id":3184,"date":"2018-03-22T15:05:16","date_gmt":"2018-03-22T11:05:16","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/ubuntu-xmb-forum-installation\/"},"modified":"2018-03-22T15:05:16","modified_gmt":"2018-03-22T11:05:16","slug":"how-to-install-xmb-forum-on-ubuntu-16-04-lts","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-install-xmb-forum-on-ubuntu-16-04-lts\/","title":{"rendered":"How to install XMB forum on Ubuntu 16.04 LTS"},"content":{"rendered":"<p>XMB forum also known as eXtreme Message Board is a free and open source forum software written in PHP and uses MySQL database backend. XMB is a simple, lightweight, easy to use, Powerful and highly customizable. You can do everything with XMB forum and also share any modifications or themes.<\/p>\n<p>In this tutorial, we will learn how to install XMB forum on Ubuntu 16.04.<\/p>\n<h2 id=\"requirements\">Requirements<\/h2>\n<ul>\n<li>A server running Ubuntu 16.04.<\/li>\n<li>A non-root user with sudo privileges.<\/li>\n<\/ul>\n<h2 id=\"update-the-system\">Update the System<\/h2>\n<p>Before starting, it is recommended to update your package with the latest version. You can do this with the following command:<\/p>\n<p class=\"command\">sudo apt-get update -y<br \/>sudo apt-get upgrade -y<\/p>\n<p>Once your system is up-to-date, restart the system to apply the changes.<\/p>\n<h2 id=\"install-lamp-server\">Install LAMP Server<\/h2>\n<p>XMB forum runs on Apache web server, written in PHP and uses MySQL as a database backend, so you will need to install LAMP server to your system.<\/p>\n<p>You can install it by running the following command:<\/p>\n<p class=\"command\">sudo apt-get install apache2 libapache2-mod-php7.0 php7.0 pkp7.0-cli php7.0-gd php7.0-mcrypt php7.0-xml wget nano unzip mariadb-server -y<\/p>\n<p>Once all the packages are installed, start Apache and MariaDB server and enable them to start on boot using 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=\"download-xmb\">Download XMB<\/h2>\n<p>Next, you will need to download the latest version of the XMB from their official website. You can do this with the following command:<\/p>\n<p class=\"command\">wget https:\/\/www.xmbforum2.com\/download\/XMB-1.9.11.15.zip<\/p>\n<p>Next, extract the downloaded file using the following command:<\/p>\n<p class=\"command\">unzip XMB-1.9.11.15.zip<\/p>\n<p>Next, copy extracted directory to the apache root directory:<\/p>\n<p class=\"command\">cp -r XMB-1.9.11.15 \/var\/www\/html\/xmb<\/p>\n<p>Next, give proper permission to the XMB directory:<\/p>\n<p class=\"command\">sudo chown -R www-data:www-data \/var\/www\/html\/xmb<br \/>sudo chmod -R 777 \/var\/www\/html\/xmb<\/p>\n<h2 id=\"configure-database\">Configure Database<\/h2>\n<p>By default, MariaDb is not secured, you can secured it by running the mysql_secure_installation script:<\/p>\n<p class=\"command\">sudo mysql_secure_installation<\/p>\n<p>This script will set a root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB as shown below:<\/p>\n<pre>Set root password? [Y\/n] y&#13;\nRemove anonymous users? [Y\/n] y&#13;\nDisallow root login remotely? [Y\/n] y&#13;\nRemove test database and access to it? [Y\/n] y&#13;\nReload privilege tables now? [Y\/n] y&#13;\n<\/pre>\n<p>Once the MariaDB is secured, 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 XMB with the following command:<\/p>\n<p class=\"command\">MariaDB [(none)]&gt; SET GLOBAL sql_mode=&#8221;;<br \/>MariaDB [(none)]&gt; CREATE DATABASE xmbdb;<br \/>MariaDB [(none)]&gt; CREATE USER xmb;<br \/>MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON xmbdb.* TO &#8216;xmb&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;password&#8217; WITH GRANT OPTION;<\/p>\n<p>Next, flush the privileges:<\/p>\n<p class=\"command\">MariaDB [(none)]&gt; FLUSH PRIVILEGES;<\/p>\n<p>Finally, exit from the MariaDB shell:<\/p>\n<p class=\"command\">MariaDB [(none)]&gt;exit<\/p>\n<h2 id=\"configure-apache-for-xmb\">Configure Apache for XMB<\/h2>\n<p>Next, you will need to create an Apache virtual host directive for XMB. You can do this by creating xmb.conf file:<\/p>\n<p class=\"command\">sudo nano \/etc\/apache2\/sites-enable\/xmb.conf<\/p>\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=\"2243464f4b4c62475a434f524e470c414d4f\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>&#13; DocumentRoot \/var\/www\/html\/xmb&#13; ServerName example.com&#13; &lt;Directory \/var\/www\/html\/xmb\/&gt;&#13;\nOptions Indexes FollowSymLinks MultiViews&#13;\nAllowOverride All&#13;\nOrder allow,deny&#13;\nallow from all&#13; &lt;\/Directory&gt;&#13; ErrorLog \/var\/log\/apache2\/xmb-error_log&#13; CustomLog \/var\/log\/apache2\/xmb-access_log common&#13;\n&lt;\/VirtualHost&gt;&#13;\n<\/pre>\n<p>Save and close the file, when you are finished. Then enable XMB virtual host with the following command:<\/p>\n<p class=\"command\">sudo a2ensite xmb<\/p>\n<p>Finally, restart Apache web server to apply all the changes:<\/p>\n<p class=\"command\">sudo systemctl restart apache2<\/p>\n<h2 id=\"access-xmb-forum-installer\">Access XMB Forum Installer<\/h2>\n<p>Now, open your web browser and type the URL <strong>http:\/\/example.com\/files\/install\/<\/strong>, you should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page1\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_xmb_forum_on_ubuntu_1604\/big\/page1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/03\/how-to-install-xmb-forum-on-ubuntu-16-04-lts.png\" alt=\"XMB Forum Install\" width=\"550\" height=\"272\" title=\"\"><\/a><\/p>\n<p>Now, click on the <strong>Start Installation<\/strong> button to start the installation, you should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page2\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_xmb_forum_on_ubuntu_1604\/big\/page2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/03\/how-to-install-xmb-forum-on-ubuntu-16-04-lts-1.png\" alt=\"Version Check\" width=\"550\" height=\"276\" title=\"\"><\/a><\/p>\n<p>Here, choose the latest XMB version and click on the <strong>Install XMB<\/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_xmb_forum_on_ubuntu_1604\/big\/page3.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/03\/how-to-install-xmb-forum-on-ubuntu-16-04-lts-2.png\" alt=\"Accept license agreement\" width=\"550\" height=\"303\" title=\"\"><\/a><\/p>\n<p>Here, accept the License agreement and click on the <strong>I Agree to These Terms<\/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_xmb_forum_on_ubuntu_1604\/big\/page4_1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/03\/how-to-install-xmb-forum-on-ubuntu-16-04-lts-3.png\" alt=\"XMP Configuration\" width=\"550\" height=\"311\" title=\"\"><\/a><\/p>\n<p><a class=\"fancybox\" id=\"img-page4_2\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_xmb_forum_on_ubuntu_1604\/big\/page4_2.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/03\/how-to-install-xmb-forum-on-ubuntu-16-04-lts-4.png\" alt=\"\" title=\"\"><\/a><\/p>\n<p><a class=\"fancybox\" id=\"img-page4_3\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_xmb_forum_on_ubuntu_1604\/big\/page4_3.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/03\/how-to-install-xmb-forum-on-ubuntu-16-04-lts-5.png\" alt=\"\" title=\"\"><\/a><\/p>\n<p>Here, provide all the required information like, Database name, Database username, Database type, SMTP username and password, then click on the <strong>Configure<\/strong> button, you should see the PHP code to your screen, copy this code to config.php file and upload this file to the \/var\/www\/html\/xmb\/files\/ directory. Then click on the <strong>Next<\/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_xmb_forum_on_ubuntu_1604\/big\/page5.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/03\/how-to-install-xmb-forum-on-ubuntu-16-04-lts-6.png\" alt=\"Create administrator account\" width=\"550\" height=\"265\" title=\"\"><\/a><\/p>\n<p>Here, provide Admin username and password, then click on the <strong>Begin Installation<\/strong> button, Once the installation is completed, you should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page6\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_xmb_forum_on_ubuntu_1604\/big\/page6.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/03\/how-to-install-xmb-forum-on-ubuntu-16-04-lts-7.png\" alt=\"Begin installation\" width=\"550\" height=\"298\" title=\"\"><\/a><\/p>\n<p>Now, click on <strong>Please click here to go to your forum<\/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_xmb_forum_on_ubuntu_1604\/big\/page7.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/03\/how-to-install-xmb-forum-on-ubuntu-16-04-lts-8.png\" alt=\"XMB Forum installed\" width=\"550\" height=\"285\" title=\"\"><\/a><\/p>\n<p>Now, click on <strong>Login<\/strong> button, you should see the XMB forum login page as below:<\/p>\n<p><a class=\"fancybox\" id=\"img-page8\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_xmb_forum_on_ubuntu_1604\/big\/page8.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/03\/how-to-install-xmb-forum-on-ubuntu-16-04-lts-9.png\" alt=\"XMB Forum Login\" width=\"550\" height=\"248\" title=\"\"><\/a><\/p>\n<p>Now, enter your XMB admin credential and click on the <strong>Login<\/strong> button, you should see the XMB forum dashboard in the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page9\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_xmb_forum_on_ubuntu_1604\/big\/page9.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/03\/how-to-install-xmb-forum-on-ubuntu-16-04-lts-10.png\" alt=\"XMB Forum Admin Dashboard\" width=\"550\" height=\"286\" title=\"\"><\/a><\/p>\n<div>\n<p><b>Share this page:<\/b><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>XMB forum also known as eXtreme Message Board is a free and open source forum software written in PHP and uses MySQL database backend. XMB is a simple, lightweight, easy to use, Powerful and highly customizable. You can do everything with XMB forum and also share any modifications or themes. In this tutorial, we will &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-3184","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/3184","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=3184"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/3184\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=3184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=3184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=3184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}