How To Install Let’s Encrypt SSL on Ubuntu With Apache

Install Let’s Encrypt SSL on Ubuntu With Apache

LetsEncrypt is a free open certificate authority (CA) that provides free certificates for websites and other services. The service, which is backed by the Electronic Frontier Foundation, Mozilla, Cisco Systems, and Akamai. Unfortunately, LetsEncrypt.org certificates currently have a 3 month lifetime. This means you’ll need to renew your certificate quarterly for now.

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 Let’s Encrypt SSL on a Ubuntu 16.04 LTS (Xenial Xerus) server.

Install Let’s Encrypt SSL on Ubuntu With Apache

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

apt-get update
apt-get upgrade
apt-get install git

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.

Step 3. Installing Let’s Encrypt SSL.

Next, run the commands below to clone Let’s Encrypt git project to your server and this will create a folder called letencrypt in the /opt directory:

git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt

Generating Let’s Encrypt certificates:

cd /opt/letsencrypt

Run the commands below to generate a SSL certificate for your domain (example.com) or website:

./letsencrypt-auto --apache -d example.com

You can also use a single certificate on multiple domains and sub-domains, to do that, you’ll have to add them as additional perimeters to the command:

./letsencrypt-auto --apache -d example.com -d www.example.com

After the installation process finishes successfully a congratulation message is displayed on your console informing you about the expiration date and how you can test the configuration as illustrated on the below screenshots and you should be able to find the generated certificate files at /etc/letsencrypt/live.

letsencrypt-ssl-generate

Finally, now your domain should be accessible via HTTPS! Check it out at https://yourdomain.com.

Step 4. Set up auto renewal Let’s Encrypt.

Let’s Encrypt certificates are valid for 3 month, but it’s recommended that you renew the certificates every 2 month to allow a margin of error. To renew that certificate, you’ll have to come back into the /opt/letsencrypt directory and run the commands below:

./letsencrypt-auto renew

Or you can also setup a cron job to automatically renew your certificate before it expires by editing cron and specifying how often you want to check/renew:

sudo crontab -e

Add the line below and save:

0 0 * * 0 /opt/letsencrypt/letsencrypt-auto renew >> /var/log/le-renew.log

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

How To Install Mahara on Ubuntu 16.04

Install Mahara on Ubuntu 16

Mahara is a fully featured web application to build your electronic portfolio. You can upload files, create journals, embed social media resources from the web and collaborate with other users in groups.

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

Install Mahara 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 php5 php5-mysql php5-gd php5-curl libssh2-php

Step 3. Installing Mahara.

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

wget https://launchpad.net/mahara/16.04/16.04.1/+download/mahara-16.04.1.zip

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

unzip mahara-16.04.1.zip
mv mahara-16.04.1 /var/www/html/mahara

Create Mahara’s upload directory:

mkdir /var/www/html/mahara/upload/

Next, create Mahara’s config.php. In the Mahara ‘htdocs’ directory there is config-dist.php file. Make a copy of this called config.php:

cd /var/www/html/mahara/htdocs/
cp config-dist.php config.php

Add the following lines:

### nano config.php

$cfg->dbtype = 'mysql';
$cfg->dbhost = 'localhost';
$cfg->dbport = null;
$cfg->dbname = 'mahara';
$cfg->dbuser = 'maharauser';
$cfg->dbpass = 'your-password';
$cfg->dataroot = '/var/www/html/mahara/upload/';

We will need to change some folders permissions:

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

Step 4. Configuring MariaDB for Mahara.

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

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

Step 5. Configuring Apache web server for Mahara.

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

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

Add the following lines:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/var/www/html/mahara/htdocs/"
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory "/var/www/html/mahara/htdocs/">
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 Mahara.

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

[youtube https://www.youtube.com/watch?v=VeS1iqQ6VIc]

How To Install Backdrop CMS on Ubuntu 16.04

Install Backdrop CMS on Ubuntu 16

Backdrop CMS is a full-featured content management system that allows non-technical users to manage a wide variety of content. It can be used to create all kinds of websites including blogs, image galleries, social networks, intranets, and more.

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 Backdrop CMS on an Ubuntu 16.04 LTS (Xenial Xerus) server.

Install Backdrop CMS 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 php7.0-cli php7.0-mbstring php7.0-mysql php7.0-gd php7.0-mcrypt libgd-tools php-pear

Step 3. Installing Backdrop CMS.

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

wget https://github.com/backdrop/backdrop/releases/download/1.4.3/backdrop.zip

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

unzip backdrop.zip
mkdir -p /var/www/html
mv backdrop /var/www/html

We will need to change some folders permissions:

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

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

MariaDB [(none)]> CREATE DATABASE backdropdb character set UTF8;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON mahara.* TO 'backdropuser'@'localhost' IDENTIFIED BY 'your-password';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> \q

Step 5. Configuring Apache web server for Backdrop CMS.

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

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

Add the following lines:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/var/www/html/backdrop/"
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory "/var/www/html/backdrop/">
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 Backdrop content management system.

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

[youtube https://www.youtube.com/watch?v=aRgG1k8HKoU]

You Might Also Like: How To Install October CMS on Ubuntu 16.04

How To Install Traq on Ubuntu 16.04

Install Traq on Ubuntu 16

Traq is a PHP powered project management and issue tracking system capable of handling multiple projects with per-project permissions, milestones, custom fields, email notifications and much more.

Install Traq on Ubuntu 16.04

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

Multiple Projects – Manage multiple projects easily and effecively with Traq’s multiple project features.
Milestones – Easily manage bugs and requests with project milestones.
Timeline – See what, and when, changes were made, tickets opened or closed with the project timeline.
Repository Browser – Browse your projects source repository with the built in repository browser.
Plugins – Extend with plugins, Traq has a powerful plugin system.
Filters – Filter tickets to find what you’re looking for.
Notifications – Receive email notifications when tickets are created or updated.
RSS Feeds – Subscribe to the timeline, or tickets RSS feed to get updates.

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 php5 php5-mysql php5-gd php5-curl libssh2-php php5-mcrypt

Step 3. Installing Traq.

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

cd /var/www/html/
git clone --recursive https://github.com/nirix/traq

And checkout the latest version:

cd traq/
git checkout v3.6.0

Next, run Traq properly, create a new .htaccess file:

nano .htaccess

Add following content:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [L]

We will need to change some folders permissions:

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

Step 4. Configuring MariaDB for Traq.

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

create database traqdb;
GRANT ALL PRIVILEGES ON traqdb.* TO 'traquser'@'localhost' IDENTIFIED BY 'Your_Password';
flush privileges;
quit

Step 5. Configuring Apache web server for Traq.

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

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

Add the following lines:

ServerAdmin [email protected]
DocumentRoot "/var/www/html/traq/"
ServerName your-domain.com
ServerAlias www.your-domain.com
&lt;Directory "/var/www/html/traq/"&gt;
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 Traq.

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

How To Install Nextcloud on Ubuntu 16.04

Install Nextcloud on Ubuntu 16

Nextcloud is open source self-hosted file sync and share application (Calendar, Contacts, Documents, Email, and more). The developers at Nextcloud are doing their best to give the users a more secure platform, fewer bugs and overall a better product.

Install Nextcloud on Ubuntu 16.04

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

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 libapache2-mod-php7.0 php7.0-mbstring php7.0-curl php7.0-zip php7.0-gd php7.0-mysql php7.0-mcrypt

Step 3. Installing Nextcloud.

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

wget https://download.nextcloud.com/server/releases/nextcloud-9.0.52.zip

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

unzip nextcloud-9.0.52.zip
mv nextcloud /var/www/html

We will need to change some folders permissions:

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

Step 4. Configuring MariaDB for Nextcloud.

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

MariaDB [(none)]&gt; CREATE DATABASE nextcloud;
MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'localhost' IDENTIFIED BY 'strong_password';
MariaDB [(none)]&gt; FLUSH PRIVILEGES;
MariaDB [(none)]&gt; \q

Disable MariaDB binary logging by commenting the following lines:

nano /etc/mysql/my.cnf

Add the following three lines in [mysqld] section:

log-bin = /var/log/mysql/mariadb-bin
log-bin-index = /var/log/mysql/mariadb-bin.index
binlog_format = mixed

Step 5. Configuring Apache web server for Nextcloud.

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

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

Add the following lines:

ServerAdmin [email protected]
DocumentRoot "/var/www/html/nextcloud/"
ServerName your-domain.com
ServerAlias www.your-domain.com
&lt;Directory "/var/www/html/nextcloud/"&gt;
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 Nextcloud.

Nextcloud 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. What you do with Nextcloud is up to you. You can add new modules or just use it as a cloud-based file sync and share. You can install the Android app and even make use of the ownCloud desktop clients (they’ll work fine with Nextcloud).

next cloud install on ubuntu 16 login page
Congratulation’s! You have successfully installed Nextcloud. Thanks for using this tutorial for installing Nextcloud personal cloud storage on your Ubuntu 16.04 LTS (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official Nextcloud web site.

[youtube https://www.youtube.com/watch?v=wqRgeFXYUys]

How To Install Rukovoditel on Ubuntu 16.04

Install Rukovoditel on Ubuntu 16

Rukovoditel is a system for managing projects and tasks. But extensive customization options allow you to create additional entities, configure the relationship between them and create the necessary reports. Thus, you can create your own application, the most suitable for you.

Install Rukovoditel on Ubuntu 16.04

This tutorial assumes you have at least basic knowledge of linux, know how to use the shel. 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 Rukovoditel on a Ubuntu 16.04 LTS (Xenial Xerus) server.

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 and install all necessary modules, run:

apt-get install php7.0 libapache2-mod-php7.0 php7.0-mbstring php7.0-curl php7.0-zip php7.0-gd php7.0-mysql php7.0-mcrypt

Step 3. Installing Rukovoditel.

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

wget http://downloads.sourceforge.net/project/rukovoditel/rukovoditel_1.7.1.zip

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

unzip rukovoditel_1.7.1.zip -d rukovoditel
mv rukovoditel/ /var/www/html/rukovoditel

We will need to change some folders permissions:

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

Step 4. Configuring MariaDB for Rukovoditel.

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 Rukovoditel:

mysql -u root -p

This will prompt you for a password, so enter your MariaDB root password and hit Enter:

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

Step 5. Configuring Apache web server for Rukovoditel.

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

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

Add the following lines:

ServerAdmin [email protected]
DocumentRoot "/var/www/html/rukovoditel/"
ServerName your-domain.com
ServerAlias www.your-domain.com
&lt;Directory "/var/www/html/rukovoditel/"&gt;
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 Rukovoditel.

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

[youtube https://www.youtube.com/watch?v=u_sDe1zo-YM]

How To Install October CMS on Ubuntu 16.04

Install October CMS on Ubuntu 16

October is a free, open-source, self-hosted CMS platform based on the Laravel PHP Framework. Thousands of digital studios and freelancers all over the world love October for its simplicity, flexibility and modern design. Their clients are happy, because October saves them both time and money.

OCTOBER CMS installation on ubuntu 16

Install October CMS on Ubuntu 16.04

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

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-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 October CMS.

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

wget http://octobercms.com/download -O octobercms.zip

Unpack the October CMS archive to the document root directory on your server:

unzip octobercms.zip -d /var/www/html/octobercms/

Set the file permissions for October CMS:

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

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

MariaDB [(none)]&gt; create database octobercmsdb character set utf8;
MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON octobercmsdb.* TO 'octobercms'@'localhost' IDENTIFIED BY 'Y0uR-Passw0rD';
MariaDB [(none)]&gt; flush privileges;
MariaDB [(none)]&gt; quit

Step 5. Configuring Apache web server for October CMS.

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

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

Add the following lines:

ServerAdmin [email protected]
DocumentRoot /var/www/octobercms/
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 October CMS.

October CMS 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. The default username admin and password admin. If you are using a firewall, please open port 80 to enable access to the control panel.

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

[youtube https://www.youtube.com/watch?v=ERiwIGsaZN8]