How To Install Vsftpd 3.0.3 on Ubuntu 18.04 LTS

Install Vsftpd on Ubuntu 18

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.

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 18.04 (Bionic Beaver) server.

Install Vsftpd on Ubuntu 18.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 VSFTPD on Ubuntu 18.04 LTS.

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

sudo apt 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 2018-07-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

Jul 16 17:36:31 ubuntuserver systemd[1]: Starting vsftpd FTP server.
Jul 16 17:36:31 ubuntuserver systemd[1]: Started vsftpd FTP server.
 
Jul1617:36:31ubuntuserversystemd[1]:StartingvsftpdFTPserver.
Jul1617:36:31ubuntuserversystemd[1]:StartedvsftpdFTPserver.

Step 4. Configure Firewall.

In case you have UFW firewall enabled, execute the bellow command to allow incoming traffic to FTP ports:

sudo ufw allow from any to any port 20,21,10000:10100 proto tcp

Step 5. Create FTP User.

We will now create a new user that we will use to log into FTP. In this example, we will create a new user called chedelics:

sudo adduser chedelics

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

How To Install Fork CMS 5.5.2 on Ubuntu 18.04 LTS

Install Fork CMS on Ubuntu 18

Fork CMS is an open source content management system. It comes with an intuitive and user friendly interface. It offers powerful apps and killer themes that helps to make your website more shine.

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 Fork open source content management systems on a Ubuntu 18.04 (Bionic Beaver) server.

Install Fork CMS on Ubuntu 18.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 and 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 Fork CMS on Ubuntu 18.04 LTS.

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

wget https://www.fork-cms.com/frontend/files/releases/forkcms-5.3.1.tar.gz
tar -xvzf forkcms-5.3.1.tar.gz
sudo mv forkcms /var/www/html/forkcms

We will need to change some folders permissions:

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

Step 4. Configuring MariaDB for Fork 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 Fork 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 Fork CMS installation:

CREATE DATABASE forkcms;
CREATE USER 'forkcmsuser'@'localhost' IDENTIFIED BY 'new_password_here';
GRANT ALL ON forkcms.* TO 'forkcmsuser'@'localhost' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;

Step 5. Configuring Apache web server for Fork CMS.

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

touch /etc/apache2/sites-available/forkcms.conf
ln -s /etc/apache2/sites-available/forkcms.conf /etc/apache2/sites-enabled/forkcms.conf
nano /etc/apache2/sites-available/forkcms.conf

Add the following lines:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/forkcms
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory /var/www/html/forkcms/>
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 forkcms.conf
a2enmod rewrite
systemctl restart apache2.service

Step 6. Accessing Fork CMS.

Fork CMS will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://your-domain.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 Fork CMS. Thanks for using this tutorial for installing Fork open source content management systems on Ubuntu 18.04 LTS (Bionic Beaver). For additional help or useful information, we recommend you to check the official Fork CMS web site.

How To Install Zabbix 4.2 on Ubuntu 18.04 LTS

Install Zabbix on Ubuntu 18

Zabbix is an open source monitoring tool that is ideal for monitoring your cloud servers. Zabbix is very flexible, information can be retrieved using HTTP/SNMP or by installing a Zabbix agent on the machines to monitor, and allows a lot of customization.

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 Zabbix in Ubuntu 18.04 LTS Bionic Beaver.

Install Zabbix on Ubuntu 18.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 and 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 Zabbix on Ubuntu 18.04 LTS.

The latest version of Zabbix Server is 3.4 but the version available on Ubuntu repositories is 3.0. To install version 3.4, you need to add Zabbix repositories for this version:

wget http://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+bionic_all.deb
dpkg -i zabbix-release_3.4-1+bionic_all.deb

After adding zabbix apt repository in your system, Now update package lists and install Zabbix using commands:

apt update
apt install -y zabbix-server-mysql zabbix-frontend-php zabbix-agent

Step 4. Zabbix Configuration.

sudo nano /etc/zabbix/zabbix_server.conf

Adjust the following values and make a note of the password you’ve chosen. You’ll need it later too.

DBName=zabbixdb
DBUser=zabbix
DBPassword=your_password_here

Step 5. Configure MariaDB Database for Zabbix.

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 MySQL.

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 Zabbix. 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 the Zabbix software:

create user 'zabbix'@'localhost' identified by 'your_chosen_password_here';
create database zabbixdb;
grant all privileges on zabbixdb.* to 'zabbix'@'localhost';
flush privileges;
exit;

After creating the zabbix database and user we need to import the zabbix initial database using the below commands:

cd /usr/share/doc/zabbix-server-mysql
zcat create.sql.gz | mysql -u root -p zabbixdb

Step 6. Configure Apache web server for Zabbix.

First, we’ll move the Zabbix apache file from the package directory:

sudo cp /usr/share/doc/zabbix-frontend-php/examples/apache.conf /etc/apache2/conf-available/zabbix.conf
sudo a2enconf zabbix.conf
sudo a2enmod alias

We should adjust php timezone as per zabbix recommended settings:

### nano /etc/zabbix/apache.conf
    php_value max_execution_time 300
    php_value memory_limit 128M
    php_value post_max_size 16M
    php_value upload_max_filesize 2M
    php_value max_input_time 300
    php_value always_populate_raw_post_data -1
    php_value date.timezone Europe/Rome

Restart the Apache and zabbix service for the changes to take effect:

systemctl restart zabbix-server zabbix-agent apache2

Step 7. Accessing Zabbix.

will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://your-domain.com/zabbix or http://server-ip/zabbix 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.
zabbix-3.4-setup

Congratulation’s! You have successfully installed Zabbix. Thanks for using this tutorial for installing Zabbix Monitoring Tool on your Ubuntu 18.04 Bionic Beaver LTS system. For additional help or useful information, we recommend you to check the official Zabbix web site.

How To Install PgAdmin 4 v4.5 on Ubuntu 18.04 LTS

Install PgAdmin on Ubuntu 18

PgAdmin is the leading graphical Open Source management, development and administration tool for PostgreSQL.

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 PgAdmin on a Ubuntu 18.04 (Bionic Beaver) server.

Install PgAdmin on Ubuntu 18.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 Dependencies Packages.

First need to install the basic packages:

sudo apt-get install build-essential libssl-dev libffi-dev libgmp3-dev virtualenv python-pip libpq-dev python-dev

Step 3. Create the virtual environment.

Create the virtual enviroment:

virtualenv .pgadmin4

Next, Activate the virtual enviroment:

cd .pgadmin4
source bin/activate

Step 4. Installing PGAdmin 4 on Ubuntu 18.04 LTS.

Use the following command to download PgAdmin Python wheel:

wget https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v3.1/pip/pgadmin4-3.1-py2.py3-none-any.whl

Install PgAdmin 4 using the following command:

pip install pgadmin4-3.1-py2.py3-none-any.whl

Step 5. Configure PGAdmin 4.

Write the SERVER_MODE = False in lib/python2.7/site-packages/pgadmin4/config_local.py to configure to run in single-user mode:

echo "SERVER_MODE = False" >> lib/python2.7/site-packages/pgadmin4/config_local.py

Once you finished the configuration, use the following command to run PgAdmin 4:

python lib/python2.7/site-packages/pgadmin4/pgAdmin4.py

Step 6. Access PgAdmin.

Once the installer finishes installing, it will show you the url, Username and Password. Just open that url in web browser and login using the username and password.

http://ip.add.re.ss:5050

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

How To Install MariaDB 10.3.14 on Ubuntu 18.04 LTS

MariaDB

MariaDB is a an open source and cross-platform database engine and server, designed as a drop-in replacement for the well known and powerful MySQL database engine used on numerous web servers around the world. The application is geared toward database professionals that are in search of a scalable, robust, reliable and stable SQL server, a replacement for the MySQL database server.

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 MariaDB in Ubuntu 18.04 LTS Bionic Beaver.

Install MariaDB on Ubuntu 18.04 LTS

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

apt-get update
apt-get upgrade

Step 2. Installing MariaDB on Ubuntu 18.04 LTS.

Installing MariaDB is as simple as running just one command below:

sudo apt install mariadb-server mariadb-client

If you want to install MariaDB 10.x Which is not included in distribution repository. We going to add MariaDB repo to our system:

sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64] http://mirror.zol.co.zw/mariadb/repo/10.3/ubuntu bionic main'

Once the key is imported and the repository added you can install MariaDB with:

sudo apt update
sudo apt install mariadb-server mariadb-client

Once complete, you can verify MariaDB is installed by running the below command:

systemctl stop mariadb.service
systemctl start mariadb.service
systemctl enable mariadb.service

Step 3. Securing MariaDB after installation.

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

To log into MariaDB, use the following command (note that it’s the same command you would use to log into a MySQL database):

mysql -u root -p

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

How To Install Bower 1.8.8 on Ubuntu 18.04 LTS

Install Bower on Ubuntu 18

Bower manages the components for a website like frameworks, libraries, assets, and utilities. It keeps track all the components and checks regularly for their updates. Bower uses a manifest file bower.json file to keep track of packages.

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 Bower on a Ubuntu 18.04 (Bionic Beaver) server.

Install Bower on Ubuntu 18.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 Install Node.js.

First of all, you need to install node.js on your system:

sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install nodejs

Step 3. Installing Bower on Ubuntu 18.04 LTS.

Install Bower using NPM:

sudo npm install -g bower

Let’s check the installed version of bower on your system using following command:

bower --version

1.8.2

Install packages with bower install:

bower install <package>

A package can be a GitHub shorthand, a Git endpoint, a URL, and more:

# installs the project dependencies listed in bower.json
bower install
# registered package
bower install jquery
# GitHub shorthand
bower install desandro/masonry
# Git endpoint
bower install git://github.com/user/package.git
# URL
bower install http://example.com/script.js

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

How To Install Chamilo LMS 1.11.8 on Ubuntu 18.04 LTS

Install Chamilo on Ubuntu 18

Chamilo is an open-source (under GNU/GPL licensing) e-learning and content management system, aimed at improving access to education and knowledge globally. It is backed up by the Chamilo Association, which has goals including the promotion of the software, the maintenance of a clear communication channel and the building of a network of services providers and software contributors. The Chamilo project aims at ensuring the availability and quality of education at a reduced cost, through the distribution of its software free of charge, the improvement of its interface for 3rd world countries devices portability and the provision of a free access public e-learning campus.

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 Chamilo on a Ubuntu 18.04 (Bionic Beaver) server.

Install Chamilo on Ubuntu 18.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 and 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

You’ll need to also adjust some settings in your php.ini. Open up the file and edit these two variables:

nano /etc/php/7.1/apache2/php.ini

Also, add/modify the following settings:

date.timezone = 'America/New_York'
max_execution_time = 300
max_input_time = 600
memory_limit = 256M
post_max_size = 100M
upload_max_filesize = 100M
short_open_tag = Off
safe_mode = Off
magic_quotes_gpc = Off
magic_quotes_runtime = Off
session.cookie_httponly = On
extension = xapian.so

Step 3. Installing Chamilo on Ubuntu 18.04 LTS.

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

wget https://github.com/chamilo/chamilo-lms/releases/download/v1.11.6/chamilo-1.11.6-php7.zip

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

unzip chamilo-1.11.6-php7.zip -d /var/www/html/

We will need to change some folders permissions:

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

Step 4. Configuring MariaDB for Chamilo.

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

CREATE DATABASE chamilodb;
CREATE USER 'chamilouser'@'localhost' IDENTIFIED BY 'Pa$$worD123';
GRANT ALL PRIVILEGES ON chamilodb.* TO 'chamilouser'@'localhost';
FLUSH PRIVILEGES;
quit

Step 5. Configuring Apache web server for Chamilo.

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

touch /etc/apache2/sites-available/chamilo.conf
ln -s /etc/apache2/sites-available/chamilo.conf /etc/apache2/sites-enabled/chamilo.conf
nano /etc/apache2/sites-available/chamilo.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
</Directory>
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common

Save and close the file. Restart the apache service for the changes to take effects:

a2ensite chamilo.conf
a2enmod rewrite
systemctl restart apache2

Step 6. Accessing Chamilo.

Chamilo 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.
chamilo_ubuntu_install

Congratulation’s! You have successfully installed Chamilo. Thanks for using this tutorial for installing Chamilo e-learning and content management system on your Ubuntu 18.04 LTS (Bionic Beaver) system. For additional help or useful information, we recommend you to check the official Chamilo web site.