{"id":6116,"date":"2018-08-09T19:25:54","date_gmt":"2018-08-09T15:25:54","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/how-to-install-fork-cms-on-ubuntu-1804\/"},"modified":"2018-08-09T19:25:54","modified_gmt":"2018-08-09T15:25:54","slug":"how-to-install-fork-cms-on-ubuntu-18-04-lts","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-install-fork-cms-on-ubuntu-18-04-lts\/","title":{"rendered":"How to install Fork CMS on Ubuntu 18.04 LTS"},"content":{"rendered":"<p>Fork CMS is a free and open source content management CMS that comes with an intuitive and user-friendly web interface. It comes with powerful tools that make your website more beautiful. Fork is a simple, lightweight and an easy to use CMS built on Symfony.<\/p>\n<p>In this tutorial, we will explain how to install and configure Fork CMS on Ubuntu 18.04 LTS (Bionic Beaver) 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-apache-php-and-mariadb\">Install Apache, PHP and MariaDB<\/h2>\n<p>Before starting, you will need to install Apache, MariaDB and PHP to your server. 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>Next, you will need to add the ondrej repository in order to install the latest version of PHP. You can add it 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>Once the repository is installed, update the repository and install PHP along with all the libraries using the following command:<\/p>\n<p class=\"command\">sudo apt-get update -y<br \/>sudo apt-get install php7.2 libapache2-mod-php7.2 php7.2-xml php7.2-cli php7.2-zip php7.2-common php7.2-sqlite php7.2-curl php7.2-intl php7.2-mbstring php7.2-xmlrpc php7.2-mysql php7.2-gd wget unzip -y<\/p>\n<p>Once all the packages are installed, open php.ini file and make some changes:<\/p>\n<p class=\"command\">sudo nano \/etc\/php\/7.2\/apache2\/php.ini<\/p>\n<p>Make the following changes:<\/p>\n<pre>memory_limit = 256M&#13;\nupload_max_filesize = 100M&#13;\nmax_execution_time = 360&#13;\nfile_uploads = On&#13;\ndate.timezone = Asia\/Kolkata&#13;\n<\/pre>\n<p>Save and close the file, when you are finished.<\/p>\n<p>Next, start Apache and MariaDB server and enable them to start on boot with the following command:<\/p>\n<p class=\"command\">sudo systemctl start apache2<br \/>sudo systemctl enable apache2<br \/>sudo systemctl start mariadb<br \/>sudo systemctl enable mariadb<\/p>\n<h2 id=\"configure-database\">Configure Database<\/h2>\n<p>Before configuring MariaDB, secure MariaDB installation using the following command:<\/p>\n<p class=\"command\">sudo mysql_secure_installation<\/p>\n<p>This script will set root password, remove anonymous users, disallow root login remotely and remove test database as shown below:<\/p>\n<pre>Set root password? [Y\/n] n&#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 MariaDB is secured, log in to MariaDB shell:<\/p>\n<p class=\"command\">mysql -u root -p<\/p>\n<p>Enter your root password then create a database and user for Fork CMS:<\/p>\n<p class=\"command\">MariaDB [(none)]&gt; CREATE DATABASE forkcmsdb;<br \/>MariaDB [(none)]&gt; CREATE USER &#8216;forkcms&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;password&#8217;;<\/p>\n<p>Next, grant privileges to the Fork CMS database with the following command:<\/p>\n<p class=\"command\">MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON forkcmsdb.* TO &#8216;forkcms&#8217;@&#8217;localhost&#8217;;<\/p>\n<p>Next, run the FLUSH PRIVILEGES command so that the privileges table will be reloaded by MariaDB:<\/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=\"install-fork-cms\">Install Fork CMS<\/h2>\n<p>First, download the latest version of the Fork CMS from their official website using the following command:<\/p>\n<p class=\"command\">cd \/var\/www\/html\/<br \/>wget https:\/\/www.fork-cms.com\/frontend\/files\/releases\/forkcms-5.2.3.tar.gz<\/p>\n<p>Next, extract the downloaded file with the following command:<\/p>\n<p class=\"command\">tar -xvzf forkcms-5.2.3.tar.gz<\/p>\n<p>Next, change the ownership of forkcms directory:<\/p>\n<p class=\"command\">sudo chown -R www-data:www-data \/var\/www\/html\/forkcms\/<br \/>sudo chmod -R 755 \/var\/www\/html\/forkcms\/<\/p>\n<p>Next, create an apache virtual host file for Fork CMS:<\/p>\n<p class=\"command\">sudo nano \/etc\/apache2\/sites-available\/forkcms.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=\"59383d343037193c21383429353c773a3634\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>&#13; DocumentRoot \/var\/www\/html\/forkcms&#13; ServerName example.com&#13; ServerAlias www.example.com&#13;\n&#13; &lt;Directory \/var\/www\/html\/forkcms\/&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, when you are finished.<\/p>\n<p>Next, enable apache virtual host file and rewrite module with the following command:<\/p>\n<p class=\"command\">sudo a2ensite forkcms.conf<br \/>sudo a2enmod rewrite<\/p>\n<p>Finally, restart Apache service to apply all the changes:<\/p>\n<p class=\"command\">sudo systemctl restart apache2<\/p>\n<h2 id=\"access-forkcms\">Access ForkCMS<\/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-page13\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_fork_cms_on_ubuntu_1804\/big\/page13.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-fork-cms-on-ubuntu-18-04-lts.png\" alt=\"Fork CMS settings\" width=\"550\" height=\"295\" title=\"\"><\/a><\/p>\n<p>Here, select the language as you wish, then click on the <strong>Next<\/strong> button. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page21\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_fork_cms_on_ubuntu_1804\/big\/page21.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-fork-cms-on-ubuntu-18-04-lts-1.png\" alt=\"Select the language\" width=\"550\" height=\"307\" title=\"\"><\/a><\/p>\n<p>Here, select the module you want install, then click on the <strong>Next<\/strong> button. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page31\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_fork_cms_on_ubuntu_1804\/big\/page31.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-fork-cms-on-ubuntu-18-04-lts-2.png\" alt=\"Database settings\" width=\"550\" height=\"299\" title=\"\"><\/a><\/p>\n<p>Here, provide your database details, then click on the <strong>Next<\/strong> button. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page4\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_fork_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-fork-cms-on-ubuntu-18-04-lts-3.png\" alt=\"Email settings\" width=\"550\" height=\"299\" title=\"\"><\/a><\/p>\n<p>Here, provide your admin email address, username and password, then click on the <strong>Finish Installation<\/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_fork_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\/08\/how-to-install-fork-cms-on-ubuntu-18-04-lts-4.png\" alt=\"Installation finished\" width=\"550\" height=\"296\" title=\"\"><\/a><\/p>\n<p>Now, click on the <strong>Log In To Fork CMS<\/strong> button. You should see the Fork CMS log in screen in the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page6\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_fork_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-fork-cms-on-ubuntu-18-04-lts-5.png\" alt=\"Login to the administration dashboard\" width=\"550\" height=\"289\" title=\"\"><\/a><\/p>\n<p>Now, provide your admin username and password, then click on the <strong>Log In<\/strong> button. You will be redirected to the Fork CMS dashboard as shown in the following image:<\/p>\n<p><a class=\"fancybox\" id=\"img-page7\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_fork_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-fork-cms-on-ubuntu-18-04-lts-6.png\" alt=\"Fork CMS admin dashboard\" width=\"550\" height=\"292\" title=\"\"><\/a><\/p>\n<h2 id=\"links\">Links<\/h2>\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%2Fhow-to-install-fork-cms-on-ubuntu-1804%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-fork-cms-on-ubuntu-18-04-lts-7.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fhow-to-install-fork-cms-on-ubuntu-1804%2F&amp;text=How+to+install+Fork+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-fork-cms-on-ubuntu-18-04-lts-8.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-fork-cms-on-ubuntu-18-04-lts-9.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fhow-to-install-fork-cms-on-ubuntu-1804%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-fork-cms-on-ubuntu-18-04-lts-10.png\" height=\"20\" alt=\"\" title=\"\"><\/a>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Fork CMS is a free and open source content management CMS that comes with an intuitive and user-friendly web interface. It comes with powerful tools that make your website more beautiful. Fork is a simple, lightweight and an easy to use CMS built on Symfony. In this tutorial, we will explain how to install and &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-6116","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/6116","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=6116"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/6116\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=6116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=6116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=6116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}