How To Install Laravel on Ubuntu 18.04 LTS

Install Laravel on Ubuntu 18

Laravel is a free, open-source PHP web application framework, created by Taylor Otwell and intended for the development of web applications following the model–view–controller (MVC) architectural pattern. It is a pretty new framework, but with a big potential to become one of the most popular PHP frameworks.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Laravel on Ubuntu 18.04 Bionic Beaver server.

Install Laravel on Ubuntu 18.04 LTS Bionic Beaver

Step 1. First, make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Install LAMP (Linux, Apache, MariaDB, PHP) server.

A Ubuntu 18.04 LAMP server is required. If you do not have LAMP installed, you can follow our guide here. Also install all required PHP modules:

apt-get install php7.1-cli php7.1-gd php7.1-opcache php7.1-mysql php7.1-json php7.1-mcrypt php7.1-xml php7.1-curl

Step 3. Install Composer.

Install Composer which is the tool for dependency management in PHP:

curl -sS https://getcomposer.org/installer | sudo php

In this tutorial we will put the composer in our /usr/local/bin/ directory. We will also rename the composer name from composer.phar to composer. To do that type the following command:

mv composer.phar /usr/local/bin/composer

Give execute permission to the composer:

chmod +x /usr/local/bin/composer

Step 4. Installing Laravel on Ubuntu 18.04 LTS.

Download latest version of Laravel, Use below command to clone master repo of laravel from github, At the moment of writing this article it is version 5:

cd /var/www
git clone https://github.com/laravel/laravel.git

After than move to the laravel code directory and use composer to install all dependencies required for Laravel framework:

cd /var/www/laravel
composer install

This will take a while according to the network speed. After than set proper permissions on files:

chown -R www-data.www-data /var/www/laravel
chmod -R 755 /var/www/laravel
chmod -R 777 /var/www/laravel/app/storage

Now set the 32 bit long random number encrypption key, which used by the Illuminate encrypter service:

### php artisan key:generate

Application key [Lf54qKbi3mwe463qR4NtYywgf9JdRGramona9qI] set successfully

Now edit config/app.php configuration file and update above generated application key as followings. Also make sure cipher is set properly:

y' => env('APP_KEY', 'Lf54qKbi3mwe463qR4NtYywgf9JdRGramona9qI'),

'cipher' => 'AES-256-CBC',

Step 5. Configuring Apache web server for Laravel.

Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘laravel.conf’ on your virtual server:

sudo a2enmod rewrite
sudo a2ensite laravel.conf
touch /etc/apache2/sites-available/laravel.conf
ln -s /etc/apache2/sites-available/laravel.conf /etc/apache2/sites-enabled/laravel.conf
nano /etc/apache2/sites-available/laravel.conf

Add the following lines:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/laravel/public
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory /var/www/laravel/public/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common
</VirtualHost>

Now, we can restart Apache web server so that the changes take place:

systemctl restart apache2.service

Step 6. Accessing Laravel.

Laravel will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com or http://server-ip and complete the required the steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.

Congratulation’s! You have successfully installed Laravel. Thanks for using this tutorial for installing Laravel in Ubuntu 18.04 LTS (Bionic Beaver) systems. For additional help or useful information, we recommend you to check the official Laravel web site.

How To Install ImpressPages on Ubuntu 18.04 LTS

Install ImpressPages on Ubuntu 18

ImpressPages is an open source Content Management System (CMS) with a built-in content editor written in PHP and using a popular open source MySQL/MariaDB database system for content storage. ImpressPages 5 is incredibly easy to learn and helps you create beautiful websites with quality content. In this tutorial we will show you how to install ImpressPages on Ubuntu 18.04 LTS.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Joomla on an Ubuntu 18.04 (Bionic Beaver) server.

Install ImpressPages on Ubuntu 18.04 LTS Bionic Beaver

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Install LAMP (Linux, Apache, MariaDB, PHP) server.

A Ubuntu 18.04 LAMP server is required. If you do not have LAMP installed, you can follow our guide here. Also install all required PHP modules:

apt-get install php7.1-cli php7.1-gd php7.1-opcache php7.1-mysql php7.1-json php7.1-mcrypt php7.1-xml php7.1-curl

Step 3. Installing ImpressPages on Ubuntu 18.04 LTS.

First thing to do is to go to ImpressPages’s download page and download the latest stable version of ImpressPages, At the moment of writing this article it is version 5.0.3:

wget http://download.impresspages.org/ImpressPages_5_0_3.zip
unzip ImpressPages_5_0_3.zip
mv ImpressPages /var/www/html/impress

We will need to change some folders permissions:

chown -R www-data:www-data /var/www/html/impress/
chmod -R 755 /var/www/html/impress/

Step 4. Configuring MariaDB for ImpressPages.

By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. You should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB.

mysql_secure_installation

Configure it like this:

- Set root password? [Y/n] y
- Remove anonymous users? [Y/n] y
- Disallow root login remotely? [Y/n] y
- Remove test database and access to it? [Y/n] y
- Reload privilege tables now? [Y/n] y

Next we will need to log in to the MariaDB console and create a database for the ImpressPages. Run the following command:

mysql -u root -p

This will prompt you for a password, so enter your MariaDB root password and hit Enter. Once you are logged in to your database server you need to create a database for ImpressPages installation:

MariaDB [(none)]> CREATE DATABASE impresspages;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON impresspages.* TO 'impressuser'@'localhost' IDENTIFIED BY 'your-password';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> \q

Step 5. Configuring Apache web server for ImpressPages.

Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘impresspages.conf’ on your virtual server:

sudo a2enmod rewrite
touch /etc/apache2/sites-available/impresspages.conf
ln -s /etc/apache2/sites-available/impresspages.conf /etc/apache2/sites-enabled/impresspages.conf
nano /etc/apache2/sites-available/impresspages.conf

Add the following lines:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/impress
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory /var/www/html/impress/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common
</VirtualHost>

Now, we can restart Apache web server so that the changes take place:

systemctl restart apache2.service

Step 6. Accessing ImpressPages.

ImpressPages will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/ or http://server-ip and complete the required the steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.

Congratulation’s! You have successfully installed ImpressPages. Thanks for using this tutorial for installing ImpressPages CMS (content management system) on Ubuntu 18.04 LTS systems. For additional help or useful information, we recommend you to check the official ImpressPages web site.

How To Install Composr CMS on Ubuntu 18.04 LTS

Install Composr CMS on Ubuntu 18

Composr CMS is an open-source content management system for next-generation websites written in PHP with advanced social, interactive and dynamic functionality. The installation process is fairly easy and it takes only a couple of minutes.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Joomla on an Ubuntu 18.04 (Bionic Beaver) server.

Install Composr CMS on Ubuntu 18.04 LTS Bionic Beaver

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Install LAMP (Linux, Apache, MariaDB, PHP) server.

A Ubuntu 18.04 LAMP server is required. If you do not have LAMP installed, you can follow our guide here. Also install all required PHP modules:

apt-get install php7.1-cli php7.1-gd php7.1-opcache php7.1-mysql php7.1-json php7.1-mcrypt php7.1-xml php7.1-curl

Step 3. Installing Composr Cms on Ubuntu 18.04 LTS.

First, download the latest stable version of Composr Cms:

wget http://compo.sr/site/dload.php?id=457 -O composr.zip
mkdir /var/www/html/composr
unzip composr.zip -d /var/www/html/composr

We will need to change some folders permissions:

chown -R www-data:www-data /var/www/html/composr/
chmod -R 755 /var/www/html/composr/

Step 4. Configuring MariaDB for Composr Cms.

By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. You should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB.

mysql_secure_installation

Configure it like this:

- Set root password? [Y/n] y
- Remove anonymous users? [Y/n] y
- Disallow root login remotely? [Y/n] y
- Remove test database and access to it? [Y/n] y
- Reload privilege tables now? [Y/n] y

Next we will need to log in to the MariaDB console and create a database for the Composr Cms. Run the following command:

mysql -u root -p

This will prompt you for a password, so enter your MariaDB root password and hit Enter. Once you are logged in to your database server you need to create a database for Composr Cms installation:

MariaDB [(none)]> CREATE DATABASE composrdb;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON composrdb.* TO 'composr'@'localhost' IDENTIFIED BY 'your_password' WITH GRANT OPTION;
MariaDB [(none)]> SET @@global.sql_mode= '';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> quit

Step 5. Configuring Apache web server for Composr Cms.

Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘composr.conf’ on your virtual server:

sudo a2enmod rewrite
sudo a2ensite composr.conf
touch /etc/apache2/sites-available/composr.conf
ln -s /etc/apache2/sites-available/composr.conf /etc/apache2/sites-enabled/composr.conf
nano /etc/apache2/sites-available/composr.conf

Add the following lines:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/composr
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory /var/www/html/composr/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common
</VirtualHost>

Now, we can restart Apache web server so that the changes take place:

systemctl restart apache2.service

Step 6. Accessing Composr CMS.

Composr CMS will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/install.php or http://server-ip/install.php and complete the required the steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.

Congratulation’s! You have successfully installed Composr. Thanks for using this tutorial for installing Composr CMS (content management system) on Ubuntu 18.04 LTS systems. For additional help or useful information, we recommend you to check the official Composr CMS web site.

How To Install TYPO3 on Ubuntu 16.04 LTS

Install TYPO3 on Ubuntu 16

TYPO3 is an enterprise open source content management system based on PHP. It’s intended for ease of use to allow owners and enterprises to create powerful and dynamic content websites.

If you’re looking for a functional, higher performance content management system to manage your websites or blogs and 100% free, then you’ll find TYPO3 to be helpful.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation TYPO3 cms on an Ubuntu 16.04 Xenial Xerus server.

Install TYPO3 on Ubuntu 16.04 LTS

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Install LAMP (Linux, Apache, MariaDB, PHP) server.

A Ubuntu 16.04 LAMP server is required. If you do not have LAMP installed, you can follow our guide here. Also install all required PHP modules:

apt-get install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc php7.0-gd

Step 3. Installing TYPO3.

First thing to do is to go to TYPO3’s download page and download the latest stable version of TYPO3, At the moment of writing this article it is version 9:

wget https://typo3.azureedge.net/typo3/9.0.0/typo3_src-9.0.0.tar.gz

Unpack the TYPO3 archive to the document root directory on your server:

tar xzvf typo3_src-9.0.0.tar.gz
cd typo3_src-9.0.0/
cp -r . /var/www/html/

We will need to change some folders permissions:

chown www-data:www-data -R /var/www/html/

Step 4. Configuring MariaDB for TYPO3.

By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB:

mysql_secure_installation

Configure it like this:

- Set root password? [Y/n] y
- Remove anonymous users? [Y/n] y
- Disallow root login remotely? [Y/n] y
- Remove test database and access to it? [Y/n] y
- Reload privilege tables now? [Y/n] y

Next we will need to log in to the MariaDB console and create a database for the TYPO3. Run the following command:

mysql -u root -p

This will prompt you for a password, so enter your MariaDB root password and hit Enter. Once you are logged in to your database server you need to create a database for TYPO3 installation:

CREATE DATABASE typo3;
CREATE USER typo_db_user@localhost IDENTIFIED BY ‚secretpassword‘;
GRANT ALL PRIVILEGES ON typo3.* TO typo_db_user@localhost;
FLUSH PRIVILEGES;
exit

Step 5. Configuring Apache web server for TYPO3.

Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘typo.conf’ on your virtual server:

sudo a2enmod rewrite
touch /etc/apache2/sites-available/typo.conf
ln -s /etc/apache2/sites-available/typo.conf /etc/apache2/sites-enabled/typo.conf
nano /etc/apache2/sites-available/typo.conf

Add the following lines:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory /var/www/html/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common
</VirtualHost>

Now, we can restart Apache web server so that the changes take place:

systemctl restart apache2.service

Next we have to make some PHP settings. For this we go into the php.ini and adjust a few settings:

nano /etc/php/7.0/apache2/php.ini

Then make the change the following lines below in the file and save:

file_uploads = On
allow_url_fopen = On
memory_limit = 256M
upload_max_file_size = 64M
max_execution_time = 240
max_input_vars = 1500

Step 6. Accessing TYPO3 CMS.

TYPO3 will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/ or http://server-ip/ and complete the required the steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.
Congratulation’s! You have successfully installed TYPO3. Thanks for using this tutorial for installing TYPO3 cms on your Ubuntu 16.04. For additional help or useful information, we recommend you to check the official TYPO3 web site.

How To Install LibreNMS on Ubuntu 16.04 LTS

Install LibreNMS on Ubuntu 16

LibreNMS is an open source auto-discovering network monitoring tool for servers and network hardware. It supports a wide range of network hardware like Cisco, Juniper, Brocade, Foundry, HP and operating systems including Linux and Windows. LibraNMS is a community-based fork of Network monitoring tool “Observium“, released under GPLv3.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation LibreNMS network monitoring tool on an Ubuntu 16.04 Xenial Xerus server.

LibreNMS Features

Automatic discovery
Customisable alerting
API Access
Billing system
Automatic Updates
Distributed Polling
iOS and Android App
Unix Agent
And many more

Install LibreNMS on Ubuntu 16.04 LTS

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Install LAMP (Linux, Apache, MariaDB, PHP) server.

A Ubuntu 16.04 LAMP server is required. If you do not have LAMP installed, you can follow our guide here. Also install all required PHP modules:

apt-get install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc php7.0-gd

Step 3. Installing LibreNMS.

First, install required packages by LibreNMS:

apt-get install composer fping git graphviz imagemagick mtr-tiny nmap python-memcache python-mysqldb rrdtool snmp whois

Next, Add LibreNMS user:

useradd librenms -d /opt/librenms -M -r
usermod -a -G librenms www-data

Then, clone the LibreNMS source code through Git:

cd /opt/
git clone https://github.com/librenms/librenms.git librenms

Set the permission:

chown -R librenms:librenms /opt/librenms

Step 4. Configuring MariaDB for LibreNMS.

By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB:

mysql_secure_installation

Configure it like this:

- Set root password? [Y/n] y
- Remove anonymous users? [Y/n] y
- Disallow root login remotely? [Y/n] y
- Remove test database and access to it? [Y/n] y
- Reload privilege tables now? [Y/n] y

Next we will need to log in to the MariaDB console and create a database for the LibreNMS. Run the following command:

mysql -u root -p

This will prompt you for a password, so enter your MariaDB root password and hit Enter. Once you are logged in to your database server you need to create a database for LibreNMS installation:

MariaDB [(none)]> CREATE DATABASE librenms CHARACTER SET utf8 COLLATE utf8_unicode_ci;
MariaDB [(none)]> CREATE USER 'librenms'@'localhost' IDENTIFIED BY 'PASSWORD';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON librenms.* TO 'librenms'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> exit

Next, open the MariaDB configuration file and add the following lines under [mysqld] section:

### nano /etc/mysql/mariadb.conf.d/50-server.cnf

innodb_file_per_table=1
sql-mode=""
lower_case_table_names=0

Restart MariaDB for the changes to take effect:

systemctl restart mariadb

Step 5. Configuring Apache web server for LibreNMS.

Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘librenms.conf’ on your virtual server:

sudo a2enmod rewrite
touch /etc/apache2/sites-available/librenms.conf
ln -s /etc/apache2/sites-available/librenms.conf /etc/apache2/sites-enabled/librenms.conf
nano /etc/apache2/sites-available/librenms.conf

Add the following lines:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /opt/librenms/html/
ServerName your-domain.com
ServerAlias www.your-domain.com
AllowEncodedSlashes NoDecode
<Directory "/opt/librenms/html/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common
</VirtualHost>

Now, we can restart Apache web server so that the changes take place:

a2ensite librenms.conf
a2enmod rewrite
systemctl restart apache2.service

Step 6. Configure Firewall.

Allow apache through the firewall so that user can able to access LibreNMS portal from an external machine:

ufw allow 80/tcp
ufw reload

Step 7. Accessing LibreNMS.

LibreNMS will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/ or http://server-ip/ and complete the required the steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.

Congratulation’s! You have successfully installed LibreNMS. Thanks for using this tutorial for installing LibreNMS network monitoring tool on your Ubuntu 16.04 LTS. For additional help or useful information, we recommend you to check the official LibreNMS web site.

How To Install Apache CouchDB on Ubuntu 16.04 LTS

Install Apache CouchDB on Ubuntu 16

CouchDB is an open source project and NoSQL, document oriented database server. It has a document-oriented NoSQL database architecture and is implemented in the concurrency-oriented language Erlang; it uses JSON to store data, JavaScript as its query language using MapReduce, and HTTP for an API.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Apache CouchDB open source NoSQL database management system on a Ubuntu 16.04 (Xenial Xerus) server.

Install Apache CouchDB on Ubuntu 16.04 LTS

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing Apache CouchDB.

First, Add the official CouchDB PPA repository using add-apt-repository command:

sudo add-apt-repository ppa:couchdb/stable

Then, update apt and install Apache CouchDB:

sudo apt-get update
sudo apt-get install couchdb

Once installed, run the following commands to start and enable CouchDB on boot:

sudo systemctl enable couchdb
sudo systemctl start couchdb

Next, Fixing ownership and permission:

sudo chown -R couchdb:couchdb /usr/bin/couchdb /etc/couchdb /usr/share/couchdb
sudo chmod -R 0770 /usr/bin/couchdb /etc/couchdb /usr/share/couchdb

Step 3. Accessing Apache CouchDB

Apache CouchDB will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://your_IP:5984 and complete the required the steps to finish the installation.

Congratulation’s! You have successfully installed Apache CouchDB. Thanks for using this tutorial for installing latest stable version of Apache CouchDB open source NoSQL database management on Ubuntu 16.04 LTS (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official Apache CouchDB web site.

How To Install Kanboard on Ubuntu 16.04 LTS

Install Kanboard on Ubuntu 16

Kanboard is a free and open source project management tool that uses the Kanban methodology. It focuses on minimalism and simplicity, it is mainly designed for small teams. It also helps you to manage your projects and visualize your workflow.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Kanboard open source project management on an Ubuntu 16.04 Xenial Xerus server.

Install Kanboard on Ubuntu 16.04 LTS

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Install LAMP (Linux, Apache, MariaDB, PHP) server.

A Ubuntu 16.04 LAMP server is required. If you do not have LAMP installed, you can follow our guide here. Also install all required PHP modules:

apt-get install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc php7.0-gd

Step 3. Installing Kanboard.

First, Download and unzip the latest version of Kanboard:

cd /var/www/html/
wget https://kanboard.net/kanboard-latest.zip
unzip kanboard-latest.zip

We will need to change some folders permissions:

chown -R www-data:www-data /var/www/html/kanboard/

Next, copy the included config.default.php to config.php and change the database information by using these commands:

cd /var/www/html/kanboard
mv config.default.php config.php

Create a configuration file named config.php using nano editor and enter the following contents into the file:

### nano /etc/config.php

// Database driver: sqlite, mysql or postgres (sqlite by default)
define('DB_DRIVER', 'mysql');

// Mysql/Postgres username
define('DB_USERNAME', 'kanboard');

// Mysql/Postgres password
define('DB_PASSWORD', 'kanboarduser_passwd');

// Mysql/Postgres hostname
define('DB_HOSTNAME', 'localhost');

// Mysql/Postgres database name
define('DB_NAME', 'kanboarduser');

Step 4. Configuring MariaDB for Kanboard.

By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB:

mysql_secure_installation

Configure it like this:

- Set root password? [Y/n] y
- Remove anonymous users? [Y/n] y
- Disallow root login remotely? [Y/n] y
- Remove test database and access to it? [Y/n] y
- Reload privilege tables now? [Y/n] y

Next we will need to log in to the MariaDB console and create a database for the Kanboard. Run the following command:

mysql -u root -p

This will prompt you for a password, so enter your MariaDB root password and hit Enter. Once you are logged in to your database server you need to create a database for Kanboard installation:

MariaDB [(none)]&gt;CREATE USER 'kanboarduser'@'localhost' IDENTIFIED BY 'password';
MariaDB [(none)]&gt;GRANT ALL PRIVILEGES ON kanboarduser.* TO 'kanboard'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
MariaDB [(none)]&gt;FLUSH PRIVILEGES;
MariaDB [(none)]&gt;exit;

Import the Kanboard Database Schema:

cd /var/www/html/kanboard
mysql -u kanboard -p kanboard &lt; app/Schema/Sql/mysql.sql

Step 5. Configuring Apache web server for Kanboard.

Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘kanboard.conf’ on your virtual server:

sudo a2enmod rewrite
touch /etc/apache2/sites-available/kanboard.conf
ln -s /etc/apache2/sites-available/kanboard.conf /etc/apache2/sites-enabled/kanboard.conf
nano /etc/apache2/sites-available/kanboard.conf

Add the following lines:

&lt;VirtualHost *:80&gt;
ServerAdmin [email protected]
DocumentRoot /var/www/html/kanboard
ServerName your-domain.com
ServerAlias www.your-domain.com
&lt;Directory /var/www/html/kanboard&gt;
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
&lt;/Directory&gt;
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common
&lt;/VirtualHost&gt;

Now, we can restart Apache web server so that the changes take place:

sudo a2ensite kanboard
systemctl restart apache2.service

Step 5. Accessing Bolt Kanboard.

Kanboard will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/kanboard or http://server-ip/kanboard.

Congratulation’s! You have successfully installed Kanboard. Thanks for using this tutorial for installing Kanboard open source project management on your Ubuntu 16.04 LTS. For additional help or useful information, we recommend you to check the official Kanboard web site.