How to install Composr CMS on Ubuntu 18.04 LTS

Composr is a free, open source CMS with advanced interactive functions. Composr is written in PHP language and uses MariaDB to store data. It is a combination of web content management system and online community software with many features available.

Composr's main features include:

  1. Support for images, video, audio, and more.
  2. Support multiple display modes of category content with tables and boxes.
  3. Event reminders, support for RSS and Atom.
  4. Allow users to create their own galleries.

This tutorial will show you how to install Composr CMS on Ubuntu 18.04 LTS server.

Instructions on how to install Composr CMS on Ubuntu 18.04 LTS

  1. Requires installation of Composr
  2. Start installation
  3. Install LAMP server
  4. Configure MariaDB database
  5. Install Composr
  6. Access Composr

Requires installation of Composr

  1. A server running Ubuntu 18.04.
  2. Static IP address 192.168.0.104 is set for the server.
  3. A user account is not rooted with sudo privileges.

Start installation

Before starting, users will need to update their system to the latest version. You can do this by running the following command:

 sudo apt-get update -y 
sudo apt-get upgrade -y

When the system is updated, reboot to apply the changes.

Install LAMP server

Next, we will need to install the Apache library, MariaDB, PHP and other PHP libraries on the server. Users can install all of them by running the following command:

sudo apt-get install apache2 mariadb-server unzip wget php7.2 libapache2-mod-php7.2 php7.2-common php7.2-sql php7.2-mbstring php7.2-intl php7.2-mbstring php7.2- xmlrpc php7.2-mysql php7.2-gd php7.2-xml php7.2-cli php7.2-zip -y

When all packages are installed, users will need to modify the PHP default configuration file:

 sudo nano /etc/php/7.2/apache2/php.ini 

Make the following changes:

 memory_limit = 300M upload_max_filesize = 200M max_execution_time = 400 date.timezone = Asia/Kolkata 

Save and close the file. Then restart Apache and MariaDB service, then allow them to start as soon as it starts by running the following command:

 sudo systemctl restart apache2 sudo systemctl restart mariadb sudo systemctl enable apache2 sudo systemctl enable mariadb 

Configure MariaDB database

By default, MariaDB is not secure. Therefore, users will need to secure it first. You can secure MariaDB settings by running the following script:

 sudo mysql_secure_installation 

Answer all questions as shown below:

 Enter current password for root (enter for none): Set root password? [Y/n]: N 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 

When MariaDB is secured, log into MariaDB shell:

 mysql -u root -p 

Enter the root password and press Enter, then create the database and user account with the following command:

 MariaDB [(none)]> CREATE DATABASE composrdb; MariaDB [(none)]> CREATE USER composr; 

Next, grant privileges to Composr database with the following command:

 MariaDB [(none)]> GRANT ALL PRIVILEGES ON composrdb.* TO 'composr'@'localhost' IDENTIFIED BY 'mypassword'; 

Note to replace the word 'mypasdsword' in the above command with the selected secure password. Next, give privileges using the following command:

 MariaDB [(none)]> FLUSH PRIVILEGES; 

Next, exit the MariaDB control panel with the following command:

 MariaDB [(none)]> exit 

Install Composr

First, users will need to download the latest version of Composr from the official website. Can be downloaded using the following command:

 cd /tmp wget https://compo.sr/site/dload.php?id=519 -O composr.zip 

When the download is complete, unzip the downloaded file into the root directory of the Apache web with the command:

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

Next, provide the appropriate permissions with the command:

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

Next, create the Apache virtual host file for Composr with the command:

 sudo nano /etc/apache2/sites-available/composr.conf 

Add the following lines:

  ServerAdmin admin@example.com DocumentRoot /var/www/html/composr ServerName 192.168.0.104 Options FollowSymlinks AllowOverride All Require all granted ErrorLog ${APACHE_LOG_DIR}/composr_error.log CustomLog ${APACHE_LOG_DIR}/composr_access.log combined 

Replace example.com with your own domain name in the above file. Then save and close the Apache vhost configuration file. Then, disable Apache's default virtual host file and activate the virtual host Composr file with the following command:

 sudo a2dissite 000-default sudo a2ensite composr 

Next, activate the module to record Apache and restart the Apache service to apply the changes using the following command:

 sudo a2enmod rewrite sudo systemctl restart apache2 

Access Composr

Composr is now installed and 'listened' on port 80. It's time to access Composr's web interface.

Open the web browser and enter the URL http://192.168.0.104/install.php. Replace the IP address in the URL with the server IP or use the chosen domain name for this site instead. The user will be redirected to the following page:

How to install Composr CMS on Ubuntu 18.04 LTS Picture 1

  1. Select the language and click the Proceed button . Users will see the following page:

How to install Composr CMS on Ubuntu 18.04 LTS Picture 2

  1. Accept the Composr license agreement and click the I agree button. The following page will appear:

How to install Composr CMS on Ubuntu 18.04 LTS Picture 3

  1. Select the database server and click the Proceed button . The following page will show:

How to install Composr CMS on Ubuntu 18.04 LTS Picture 4

How to install Composr CMS on Ubuntu 18.04 LTS Picture 5

Here, provide the base url, master password, admin username, password, database, database username and password, and then click the Install Composr button . You will see the following page:

How to install Composr CMS on Ubuntu 18.04 LTS Picture 6

Now, click the first Configure my Composr button. You will be redirected to Composr login page:

How to install Composr CMS on Ubuntu 18.04 LTS Picture 7

Provide admin username and password. Then, click the Log In button . You will see Composr's default control panel on the following page:

How to install Composr CMS on Ubuntu 18.04 LTS Picture 8

Congratulations! You have successfully installed and configured Composr CMS on Ubuntu 18.04 server. Now, you can easily store your own website with Composr.

Hope you are succesful.

See more:

  1. Instructions for uninstalling software on Ubuntu
  2. How to run and install Pantheon Desktop on Ubuntu
  3. How to install Steam in Ubuntu
3.3 ★ | 3 Vote

May be interested

  • How to install µTorrent (uTorrent) in Ubuntu 20.04How to install µTorrent (uTorrent) in Ubuntu 20.04
    µtorrent provides clients for windows and macos x, however it is installed as a server in ubuntu linux and provides a web ui for managing downloads.
  • How to Install Ubuntu Linux Without CD (Windows)How to Install Ubuntu Linux Without CD (Windows)
    want to install ubuntu on your windows computer, but don't have a dvd or cd drive? there are a couple of different ways that you can install ubuntu on computers that don't have disc drives. the most common way is to create a bootable usb...
  • How to Install ClickHouse on Ubuntu 22.04How to Install ClickHouse on Ubuntu 22.04
    clickhouse is a modern, fast and open source database management system used for online analytical processing (olap).
  • How to install MySQL on Ubuntu 20.04How to install MySQL on Ubuntu 20.04
    in this article, tipsmake will show how to install mysql version 8.0 on ubuntu 20.04 server. by completing it, you'll have an active relational database that can be used to build your next website or app.
  • How to install AVG Antivirus on UbuntuHow to install AVG Antivirus on Ubuntu
    in addition to windows, you can install avg antivirus on ubuntu easily and quickly to ensure that damage is minimized in the most optimal way. along with tipsmake, see how to install avg antivirus on ubuntu below.
  • How to install Ubuntu on a VMware virtual machineHow to install Ubuntu on a VMware virtual machine
    how to install ubuntu on a vmware virtual machine. ubuntu is a very popular operating system nowadays parallel to windows and macos. but ubuntu still makes many users wonder before upgrading should use on their own computers, so we still have a way to experience ubuntu.
  • Ways to install Ubuntu on Windows, run in parallel or run separatelyWays to install Ubuntu on Windows, run in parallel or run separately
    there are many ways to install ubuntu on your computer, such as installing ubuntu from usb, cd, installing ubuntu running in parallel with windows, installing it
  • What's New in Ubuntu 21.10?What's New in Ubuntu 21.10?
    version 21.10 is the latest release of ubuntu and although canonical is turning more attention to the cloud and developers, ubuntu 'impish indri' still comes with some notable changes for those users use the ubuntu desktop every day.
  • 10 software should install on Ubuntu10 software should install on Ubuntu
    you just moved from windows to ubuntu and wondered which ubuntu application is best and which software to install? below are the applications that should be installed on ubuntu after a fresh install.
  • How to install Blender 3D on Ubuntu 20.04How to install Blender 3D on Ubuntu 20.04
    blender 3d is a professional open source 3d graphics and animation software. it has a rich feature set like animations, visual effects, 3d modeling and motion graphics.