Install Composr CMS on Ubuntu 18.04 LTS

Composr is a free and open supply CMS with superior social, interactive and dynamic performance. It’s written in PHP language and makes use of MariaDB to retailer their knowledge. It’s a mixture of a Web content material administration system and On-line neighborhood software program. There are lot’s of options can be found out of the field within the Composr:


  • Helps photographs, movies, audio, and extra.
  • Helps a number of show modes that show the contents of classes utilizing tables and bins.
  • Occasion reminders, RSS and Atom assist.
  • Lets you create your personal galleries.

On this tutorial, I’ll present you methods to set up Composr CMS on an Ubuntu 18.04 LTS server.


  • A server working Ubuntu 18.04..
  • A static IP handle is about as much as your server.
  • A non-root consumer with sudo privileges.

Getting Began

Earlier than beginning, you’ll need to replace your system with the newest model. You are able to do this by working the next command:

sudo apt-get replace -y
sudo apt-get improve -y

As soon as your system is up to date, restart the system to use the adjustments.

Set up LAMP Server

Subsequent, you’ll need to put in Apache, MariaDB, PHP and different PHP libraries to your server. You possibly can set up all of them by working the next command:

sudo apt-get set up apache2 mariadb-server unzip wget php7.2 libapache2-mod-php7.2 php7.2-common php7.2-sqlite php7.2-curl 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

As soon as all of the packages are put in, you’ll need to switch PHP default config file:

sudo nano /and many others/php/7.2/apache2/php.ini

Make the next adjustments:

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

Save and shut the file. Then, restart Apache and MariaDB service and allow them to start out on boot time by working the next command:

sudo systemctl restart apache2
sudo systemctl restart mariadb
sudo systemctl allow apache2
sudo systemctl allow mariadb

Configure MariaDB Database

By default, MariaDB just isn’t secured. So, you’ll need to safe it first. You possibly can safe the MariaDB set up by working the next script:

sudo mysql_secure_installation

Reply all of the questions as proven under:

    Enter present password for root (enter for none):
     Set root password? [Y/n]: N
     Take away nameless customers? [Y/n]: Y
     Disallow root login remotely? [Y/n]: Y
     Take away check database and entry to it? [Y/n]:  Y
     Reload privilege tables now? [Y/n]:  Y

As soon as the MariaDB is secured, log in to MariaDB shell:

mysql -u root -p

Enter your root password and press Enter, then create a database and consumer with the next command:

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

Subsequent, grant privileges to the Composr database with the next command:

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

exchange the phrase ‘mypasdsword’ within the above command with a safe password of your selection. Subsequent, flush the privileges with the next command:


Subsequent, exit from the MariaDB console with the next command:

MariaDB [(none)]> exit

Set up Composr

First, you’ll need to obtain the newest model of Composr from their official web site. You possibly can obtain it with the next command:

cd /tmp
wget -O

As soon as the obtain is accomplished, extract the downloaded file to the Apache internet root listing with the next command:

unzip -d /var/www/html/composr

Subsequent, give correct permissions with the next command:

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

Subsequent, create an Apache digital host file for Composr utilizing the next command:

sudo nano /and many others/apache2/sites-available/composr.conf

Add the next traces:

<VirtualHost *:80>
      ServerAdmin [email protected]
      DocumentRoot /var/www/html/composr
      <Listing /var/www/html/composr/>
           Choices FollowSymlinks
           AllowOverride All
           Require all granted
      ErrorLog ${APACHE_LOG_DIR}/composr_error.log
      CustomLog ${APACHE_LOG_DIR}/composr_access.log mixed

Exchange with your personal area title within the above file. Then save and shut the Apache vhost configuration file. Then, disable Apache default digital host file and allow Composr digital host file with the next command:

sudo a2dissite 000-default
sudo a2ensite composr

Subsequent, allow Apache rewrite module and restart Apache service to use the adjustments with the next command:

sudo a2enmod rewrite
sudo systemctl restart apache2

Entry Composr

Composr is now put in and listening on port 80. It is time to entry Composr internet interface.

Open your internet browser and kind the URL Exchange the IP handle within the URL together with your server IP or use the area title that you’ve got chosen for this web site as an alternative. You’ll be redirected to the next web page:

Composr installer page

Choose your language and click on on the Proceed button. You must see the next web page:

Accept the license

Settle for the Composr license settlement and click on on the I agree button. You must see the next web page:

Select database server

Choose your database server and click on on the Proceed button. You must see the next web page:

Enter database details

Database details - part 2

Right here, present your base url, grasp password, admin username, password, database, database username and password, then click on on the Set up Composr button. You must see the next web page:

Composr Installation finished

Now, click on on Configure my Composr first button. You’ll be redirected to the Composr login web page:

Log into Composr

Present your admin username and password. Then, click on on the Log In button. You must see the Composr default dashboard within the following web page:

Composr dashboard

Congratulations! you may have efficiently put in and configured Composr CMS on Ubuntu 18.04 server. Now you can simply host your personal web site utilizing Composr. Be at liberty to feedback me in case you have any query.

11 Podcasts Each Web Designer Ought to Pay attention To

Previous article

10 Free Minimal Bootstrap Framework Starter Templates

Next article

You may also like


Leave a reply

Your email address will not be published. Required fields are marked *

More in Apache