Installing concrete5 on Ubuntu 16.04

Today we are going to show you how to install concrete5 on Ubuntu 16.04. Concrete5 is a free and open source Content Management System (CMS). It is an easy-to-use yet powerful tool that allows users to build different types of sites without any technical skills. Editing features in Concrete5 (the ability to edit website content directly on the page, not in the admin interface or using the software editor). Installing concrete5 on Ubuntu 16.04 is fairly easy and shouldn’t take more than 10 minutes to install.Concrete5 comes with many useful features such as:

– intuitive editing – powerful and extensible – optimized for mobile & Responsive – modular construction and templates – form creation and data collection – based on integrated reporting – beautiful blog – large discussions – users and permissions – workflow content – SEO enabled – social media – and much more …

In this tutorial, we will install concrete5 on an Ubuntu 16.04 VPS with Apache web server, PHP and MySQL.

1. System update

It is recommended to update all packages on the server to the latest version before starting. Login to Ubuntu 16.04 server via SSH

ssh [email protected]_Adress -p Port_number

and run the following command to update packages

apt-get update && apt-get upgrade

2. Install Apache web server

Apache can be easily installed with the following command

apt-get install apache2

After the web server is installed, enable it to start automatically at system boot

systemctl enable apache2

3. Install PHP 7

Concrete5 is a PHP application, so we have to install PHP on our Ubuntu 16.04 VPS. To do this, run the following command

apt-get install php7.0 libapache2-mod-php7.0 php7.0-mysql

4. Install MySQL Server

Run the following command to install MySQL database server on your VPS

apt-get install mysql-server

After the installation is complete, run the “mysql_secure_installation” script to set the MySQL root password and make the server secure.

5. Creating a MySQL database

Then login to MySQL server as root user and create a new database and user for concrete5

mysql -u root -p

mysql> CREATE DATABASE concrete5;
mysql> GRANT ALL PRIVILEGES ON concrete5.* TO 'concrete5usr'@'localhost' IDENTIFIED BY 'PASSWORD';
mysql> FLUSH PRIVILEGES;
mysql> quit

Remember to replace “PASSWORD” with your actual strong password.

6. Download and install concrete5

Go to the concrete5 official website and download the latest stable version of the application to the server. At the time of this writing, this is version 8.3.1.

cd /var/www/html
wget https://www.concrete5.org/download_file/-/view/99963/ -O concrete5.zip
mv concrete5-8.3.1/ concrete5

Make the proper permissions on the concrete5 directory:

chown -R www-data:www-data concrete5/

7. Configuring Apache for concrete5

Next, we will create an Apache virtual host directive for the concrete5 domain.

nano /etc/apache2/sites-available/concrete5.conf

ServerAdmin [email protected]
DocumentRoot /var/www/html/concrete5/
ServerName your-domain.ru
<Directory /var/www/html/concrete5/>
Options FollowSymLinks
AllowOverride All
</Directory>
ErrorLog logs/your-domain.ru-error_log
CustomLog logs/your-domain.ru-access_log common

Save the file and run the following command to enable the virtual host directive

a2ensite concrete5

8. Restart the web server

and restart the web server for the changes to take effect

systemctl restart apache2

That’s all, if you have followed all the instructions in this guide carefully, you should be able to access the concrete5 installation at http://your-domain.com and complete the installation process.

Sidebar