How To Install Vsftpd on Ubuntu 16.04

Install Vsftpd on Ubuntu 16

FTP stands for “file transfer protocol”, and it allows you to transfer files to a remote computer. The most common FTP server software for Ubuntu is the vsftpd package, which stands for “very secure FTP daemon.” It’s the default FTP package for Ubuntu, and most other Linux distributions as well.

Features:

Despite being small for purposes of speed and security, many more complicated FTP setups are achievable with vsftpd! By no means an exclusive list, vsftpd will handle:

  • Virtual IP configurations
  • Virtual users
  • Standalone or inetd operation
  • Powerful per-user configurability
  • Bandwidth throttling
  • Per-source-IP configurability
  • Per-source-IP limits
  • IPv6
  • Encryption support through SSL integration
  • etc…

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 OpenLiteSpeed on a Ubuntu 16.04 (Xenial Xerus) server.

Install Vsftpd on Ubuntu 16.04

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing VSFTPD.

To install VSFTPD, run the following command from your Terminal:

apt-get install vsftpd

Step 3. Configure VSFTPD.

After it is successfully installed, Let us go ahead and configure:

### nano /etc/vsftpd.conf

Controls whether anonymous logins are permitted or not.
anonymous_enable=NO

# Allow local users to login
local_enable=YES

# Set 'write_enable' to YES in order to allow changes to the filesystem
write_enable=YES

# to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
# without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
# on the client anyway..
ascii_upload_enable=YES
ascii_download_enable=YES

# You can set the root directory of the FTP users. if not specified, users' home directory equals FTP home directory
local_root=public_html

Save and close the file. Restart vsftpd service to take effect the changes:

sudo systemctl restart vsftpd
sudo systemctl enable vsftpd

Check if vsftpd service is running or not using command:

sudo systemctl status vsftpd

Sample output:

vsftpd.service - vsftpd FTP server
Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vend
Active: active (running) since Thu 2016-08-16 17:28:31 IST; 31s a
Process: 2040 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (co
Main PID: 2043 (vsftpd)
Tasks: 1
Memory: 492.0K
CPU: 46ms
CGroup: /system.slice/vsftpd.service
└─2043 /usr/sbin/vsftpd /etc/vsftpd.conf

Aug 16 17:28:31 ubuntuserver systemd[1]: Starting vsftpd FTP server.
Aug 16 17:28:31 ubuntuserver systemd[1]: Started vsftpd FTP server.

Congratulation’s! You have successfully installed vsftpd. Thanks for using this tutorial for installing vsftpd in Ubuntu 16.04 (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official vsftpd web site.

How To Install OpenLiteSpeed on Ubuntu 16.04

Install OpenLiteSpeed on Ubuntu 16

OpenLiteSpeed is an open source HTTP server developed by LiteSpeed Technologies. OpenLiteSpeed is a high performance and lightweight HTTP server which comes with a Web Gui administration interface. As far as Linux web servers are concerned, OpenLiteSpeed has some interesting features that make it a solid choice for many installations. It features Apache compatible rewrite rules, a web administration interface, and customized PHP processing optimized for the server.

Features:

Event-Driven Architecture
Fewer processes, less overhead, and enormous scalability. Keep your existing hardware.

Understands Apache Rewrite Rules
OpenLiteSpeed is mod_rewrite compatible, with no new syntax to learn. Continue to use your existing rewrite rules.

Friendly Admin Interfaces
OLS comes with a built-in WebAdmin GUI. Control panel support is available with CyberPanel.

Built for Speed and Security
Features Anti-DDoS connection and bandwidth throttling, ModSecurity v3 integration, and more.

Intelligent Cache Acceleration
Built-in full-page cache module is highly-customizable and efficient for an exceptional user experience.

PageSpeed Optimization
Automatically implement Google’s PageSpeed optimization system with the mod_pagespeed module.

PHP LiteSpeed SAPI
Native SAPI for PHP allows external applications written in PHP to run up to 50% faster.

One-Click Installation
Install OpenLiteSpeed, MariaDB and WordPress on various operating systems with just one click.

WordPress Acceleration
Experience a measurable performance boost with OpenLiteSpeed and LSCache for WordPress.

 

To complete this tutorial you will need an Ubuntu 16.04 server with a sudo-enabled, non-root user.

Install OpenLiteSpeed on Ubuntu 16.04

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Preparing your server, you need to install the following packages:

apt-get install build-essential libexpat1-dev libgeoip-dev libpng-dev libpcre3-dev libssl-dev libxml2-dev rcs zlib1g-dev

Step 2. Installing OpenLitespeed.

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

wget http://open.litespeedtech.com/packages/openlitespeed-1.4.21.tgz

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

tar xzvf openlitespeed*
cd openlitespeed*

Then use the following command to configure the software and to compile it, This will install the entire OpenLiteSpeed system under the /usr/local/lsws location:

sudo ./configure
sudo make
sudo make install

Step 3. Configuring MariaDB for OpenLiteSpeed.

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

Step 4. Configure OpenLiteSpeed web server.

OpenLiteSpeed has an Admin Gui for management, so we will configure the admin password for the openLiteSpeed GUI, We will start by changing the administrative password using the following command:

sudo /usr/local/lsws/admin/misc/admpass.sh

You will be asked to optionally provide a username for the administrative user. If you just press ENTER, the username “admin” will be selected. Afterwards, you will be asked to select and confirm a new password for the account.

After changing the password and the username use the following command to start the web server:

sudo service lsws start

Step 5. Accessing OpenLiteSpeed.

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

Congratulation’s! You have successfully installed OpenLiteSpeed. Thanks for using this tutorial for installing OpenLiteSpeed web server on your Ubuntu 16.04 (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official OpenLiteSpeed web site.

How To Install X2CRM on Ubuntu 16.04

Install X2CRM on Ubuntu 16

X2CRM is an open source marketing, sales, and customer service CRM application powered by an easy to use workflow engine and process management framework. Manage your clients with an endlessly customizable, powerful app, and boost your productivity like never before.

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 X2CRM on a Ubuntu 16.04 (Xenial Xerus) server.

Install X2CRM on Ubuntu 16.04

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Install LAMP (Linux, Apache, MariaDB and 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 <code>php7.0-mcrypt php7.0-gd
</code>

Step 3. Installing X2CRM.

First thing to do is to go to X2CRM’s download page and download the latest stable version of X2CRM:

wget https://github.com/X2Engine/X2Engine/archive/master.zip

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

unzip master.zip
mv X2CRM-master/x2engine/ /var/www/html/x2cr

Set the file permissions for Bludit CMS:

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

Step 4. Configuring MariaDB for X2CRM.

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 X2CRM. 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 X2CRM installation:

MariaDB [(none)]&gt; CREATE DATABASE x2crm;
MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON x2crm.* TO 'x2crmuser'@'localhost' IDENTIFIED BY 'your-password';
MariaDB [(none)]&gt; FLUSH PRIVILEGES;
MariaDB [(none)]&gt; \q

Step 5. Configuring Apache web server for X2CRM.

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

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

Add the following lines:

ServerAdmin [email protected]
DocumentRoot /var/www/html/x2crm/
ServerName your-domain.com
ServerAlias www.your-domain.com

Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all

ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common

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

systemctl restart apache2.service

Step 6. Accessing X2CRM.

X2CRM 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 X2CRM. Thanks for using this tutorial for installing X2CRM on your Ubuntu 16.04 (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official X2CRM web site.

How To Install Dokuwiki on Ubuntu 16.04

Install Dokuwiki on Ubuntu 16

DokuWiki is considered to be the most versatile open source Wiki software application which is proven to meet your demanding wiki needs. Using a very familiar interface, it allows you to easily scale and optimize using many advanced features. Utilizing files instead of a database, DokuWiki is extremely flexible with the type of system it will run on (no database server required).

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 Dokuwiki on a Ubuntu 16.04 (Xenial Xerus) server.

Install Dokuwiki on Ubuntu 16.04

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

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-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0 php7.0-xml <code>php7.0-mcrypt php7.0-gd
</code>

Step 3. Installing Dokuwiki.

First thing to do is to go to DokuWiki’s download page and download the latest stable version of Dokuwiki:

wget http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz

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

tar xvf dokuwiki-stable.tgz
mv dokuwiki-*/ /var/www/dokuwiki

We will need to change some folders permissions:

chown www-data:www-data -R /var/www/dokuwiki
chmod -R 707 /var/www/dokuwiki

Step 4. Configuring Apache web server for DokuWiki.

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

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

Add the following lines:

ServerAdmin [email protected]
DocumentRoot /var/www/dokuwiki/
ServerName your-domain.com
ServerAlias www.your-domain.com

Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all

ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common

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

systemctl restart apache2.service

Step 5. Accessing DokuWiki.

DokuWiki 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 Dokuwiki. Thanks for using this tutorial for installing Dokuwiki on your Ubuntu 16.04 (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official Dokuwiki web site.

How To Install Mate Desktop on Ubuntu 16.04

Install Mate Desktop on Ubuntu 16

The MATE Desktop Environment is the continuation of GNOME 2. It provides an intuitive and attractive desktop environment using traditional metaphors for Linux and other Unix-like operating systems. There are several Linux distributions that support the MATE desktop including of course Ubuntu, and there is a dedicated Ubuntu MATE edition for this elegant desktop environment as well.

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 Mate Desktop on a Ubuntu 16.04 (Xenial Xerus) server.

Install Mate Desktop on Ubuntu 16.04

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing Mate Desktop.

First add the community PPA and this PPA can be used only by Xenial users. And please make sure that idr00t doesn’t provide any guarantee and you understand that you install at your own risk:

sudo apt-add-repository ppa:ubuntu-mate-dev/xenial-mate
sudo apt-get update

Now, type the following command to finally install Mate Desktop:

sudo apt-get install mate

Wait for a few minutes, depending on your Internet connection speeds for the installation process to finish.

Step 3. Accessing Mate Desktop.

If everything goes OK, logout of your current session or restart your system and choose MATE desktop at the login interface as in the image below.
Mate-Desktop-at-Login

If you didn’t liked the Mate Desktop, you can remove it completely from your respective Linux distributions using following instructions:

add-apt-repository --remove ppa:ubuntu-mate-dev/xenial-mate
apt-get remove mate
apt-get autoremove

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

How To Install XWiki on Ubuntu 16.04

Install XWiki on Ubuntu 16

Xwiki is an open-source enterprise-ready wiki written in Java, runs on a servlet container like Tomcat, Jboss etc. which uses the relational database to store the information.

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 XWiki on a Ubuntu 16.04 (Xenial Xerus) server.

Install XWiki on Ubuntu 16.04

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing XWiki.

Run the following commands in Terminal to install XWiki on Ubuntu, via XWiki repository:

wget -q "http://maven.xwiki.org/public.gpg" -O- | sudo apt-key add -
wget "http://maven.xwiki.org/stable/xwiki-stable.list" -P /etc/apt/sources.list.d/

To can check all available packages in this repository using the following command:

apt-cache search xwiki

Result:

xwiki-common - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-enterprise-common - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-enterprise-mysql-common - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-enterprise-pgsql-common - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-enterprise-tomcat-common - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-enterprise-tomcat-mysql - XWiki enterprise Tomcat/MySQL based package
xwiki-enterprise-tomcat-pgsql - XWiki enterprise Tomcat/PostgreSQL
xwiki-enterprise-tomcat5-mysql - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-enterprise-tomcat5-pgsql - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-enterprise-tomcat6-mysql - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-enterprise-tomcat6-pgsql - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-enterprise-tomcat7-common - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-enterprise-tomcat7-mysql - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-enterprise-tomcat7-pgsql - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-enterprise-tomcat8-common - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-enterprise-tomcat8-mysql - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-enterprise-tomcat8-pgsql - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-mysql-common - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-pgsql-common - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-solr-data - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-tomcat7-common - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-tomcat7-mysql - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-tomcat7-pgsql - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-tomcat8-common - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-tomcat8-mysql - XWiki is a free wiki software platform written in Java with a design emphasis
xwiki-tomcat8-pgsql - XWiki is a free wiki software platform written in Java with a design emphasis

You can see on the list that the repo contains packages that can install XWiki with different versions of Tomcat, MySQL and PostgreSQL. We will install XWiki Enterprise with Tomcat 8 and PostgreSQL database server, but depending on your needs, you can select another package. Run the following command:

apt-get install xwiki-enterprise-tomcat8-pgsql

Since all dependencies have to be installed, the installation may take some time. During the installation, you will be prompted to enter a password for the postgresql ‘xwiki’ user.

Step 3. Accessing XWiki.

XWiki will be available on HTTP port 8080 by default. Open your favorite browser and navigate to http://yourdomain.com:8080/xwiki or http://server-ip:8080/xwiki 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 XWiki. Thanks for using this tutorial for installing XWiki in Ubuntu 16.04 (Xenial Xerus) systems. For additional help or useful information, we recommend you to check the official XWiki web site.

How To Install Hiawatha Web Server on Ubuntu 16.04

Install Hiawatha Web Server on Ubuntu 16

Hiawatha is a web server built with the focus on security. It has built-in rules that can prevent cross-site scripting and forgery, SQL injections, and resource expenditure. Although its focus is on security, it also excels in performance due to its lightweight design. When combining the Hiawatha web server with PHP-FPM and MySQL, you can have a powerful web server that is both light-weight and secure.

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 Hiawatha on a Ubuntu 16.04 (Xenial Xerus) server.

Hiawatha Features

CGI and load balancing FastCGI support
Large file support
Reverse proxy functionality
Chroot support
URL toolkit which supports URL rewriting
SSL and TLS support
Basic and digest HTTP authentication
Upload speed control by traffic shaping
Internal file caching
IPv6 support
HTTP compression using gzip
Virtual hosting
Support for WebDAV applications
Support for Server Name Indication included in v8.6

Install Hiawatha Web Server on Ubuntu 16.04

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing Hiawatha Web Server.

First, get and install the repository’s public key:

apt-key adv --recv-keys --keyserver keys.gnupg.net 79AF54A9
nano /etc/apt/sources.list

Add the following to sources.list:

deb http://mirror.tuxhelp.org/debian/ squeeze main

Install Hiawatha with the following command:

apt-get update
apt-get install hiawatha

Start Hiawatha and add it to automatically start on your system start-up using:

systemctl enable hiawatha.service
systemctl start hiawatha.service

You can verify that Hiawatha web server is really running by opening your favorite web browser and entering the URL http://your-server’s-address, if it is installed, then you will see this:
hiawatha-installation-web-page
Using the default settings, you can put your web content in the following directory:

/var/www/hiawatha

For any configuration changes that you may want to make, you can go to the following directory:

/etc/hiawatha

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