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:
- Support for images, video, audio, and more.
- Support multiple display modes of category content with tables and boxes.
- Event reminders, support for RSS and Atom.
- 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
- Requires installation of Composr
- Start installation
- Install LAMP server
- Configure MariaDB database
- Install Composr
- Access Composr
Requires installation of Composr
- A server running Ubuntu 18.04.
- Static IP address 192.168.0.104 is set for the server.
- 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:
- Select the language and click the Proceed button . Users will see the following page:
- Accept the Composr license agreement and click the I agree button. The following page will appear:
- Select the database server and click the Proceed button . The following page will show:
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:
Now, click the first Configure my Composr button. You will be redirected to Composr login page:
Provide admin username and password. Then, click the Log In button . You will see Composr's default control panel on the following page:
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:
- Instructions for uninstalling software on Ubuntu
- How to run and install Pantheon Desktop on Ubuntu
- How to install Steam in Ubuntu
You should read it
- Instructions for installing Google Chrome on Ubuntu operating system
- How to install Ubuntu in parallel with Windows using USB
- Instructions for installing Ubuntu on VMware Workstation - Part 2
- How to install Pip in Ubuntu
- Instructions for installing Ubuntu on VMware Workstation - Part 1
- 5 things to do after upgrading to Ubuntu 22.04 LTS
- Instructions for installing Windows Fonts on Ubuntu
- Instructions for installing VLC 1.1 from Git in Ubuntu Linux
May be interested
- How 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)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.04clickhouse is a modern, fast and open source database management system used for online analytical processing (olap).
- How to install MySQL on Ubuntu 20.04in 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 Ubuntuin 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. 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 separatelythere 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?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 Ubuntuyou 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.04blender 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.