How to install Anchor CMS on Ubuntu 21.04
- 00:42 lsb_release -a
- 01:06 mysql -u root -p
- 01:19 create database anchor;
- 01:36 use anchor;
- 01:50 create user auser@localhost identified by 'linuxc';
- 02:12 grant all on anchor.* to auser@localhost;
- 02:38 flush privileges;
- 02:46 exit
- 03:00 wget https://github.com/anchorcms/anchor-cms/archive/refs/heads/master.zip
- 03:09 unzip master.zip
- 03:26 mv anchor-cms-master/ /var/www/anchor
- 03:37 chown -R www-data. /var/www/anchor
- 03:59 chmod -R 775 /var/www/anchor/
- 04:22 vi /etc/apache2/sites-available/anchor.conf
- 05:01 a2dissite 000-default.conf
- 05:10 a2ensite anchor.conf
- 05:24 a2enmod rewrite
- 05:35 systemctl restart apache2
- 05:47 vi /etc/hosts
To Install Anchor CMS on Ubuntu 21.04
Introduction
CMS stands for a content management system, which is a software program used to manage digital content. Anchor CMS is an open-source blogging system that focuses on writing and art-directed blogs.
Prerequisites:
• Apache Web server
• Maria DB
• PHP and its Modules
Installation Procedure:
Step 1: Check the OS version by using the following command.
root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.04
Release: 21.04
Codename: hirsute
Step 2: Log in to the Maria DB
root@linuxhelp:~# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 30
Server version: 10.5.12-MariaDB-0ubuntu0.21.04.1 Ubuntu 21.04
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Step 3: Create database for omeka CMS
MariaDB [(none)]> create database anchor;
Query OK, 1 row affected (0.001 sec)
Step 4: Select the omeka database
MariaDB [(none)]> use anchor;
Database changed
Step 5: Create a user named “ouser”
MariaDB [anchor]> create user auser@localhost identified by 'linuxc';
Query OK, 0 rows affected (0.006 sec)
Step 6: Grant all privileges on omeka database for the user “ouser”
MariaDB [anchor]> grant all on anchor.* to auser@localhost;
Query OK, 0 rows affected (0.001 sec)
Step 7: Flush privileges to make changes effect
MariaDB [anchor]> flush privileges;
Query OK, 0 rows affected (0.000 sec)
Step 8: Exit from the Maria DB
MariaDB [anchor]> exit
Bye
Step 9: Download anchor CMS by using the following command
root@linuxhelp:~# wget https://github.com/anchorcms/anchor-cms/archive/refs/heads/master.zip
--2021-11-26 21:42:22-- https://github.com/anchorcms/anchor-cms/archive/refs/heads/master.zip
Resolving github.com (github.com)... 13.234.210.38
Connecting to github.com (github.com)|13.234.210.38|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/anchorcms/anchor-cms/zip/refs/heads/master [following]
--2021-11-26 21:42:23-- https://codeload.github.com/anchorcms/anchor-cms/zip/refs/heads/master
Resolving codeload.github.com (codeload.github.com)... 13.127.152.42
Connecting to codeload.github.com (codeload.github.com)|13.127.152.42|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘master.zip’
master.zip [ <=> ] 423.91K 2.32MB/s in 0.2s
2021-11-26 21:42:24 (2.32 MB/s) - ‘master.zip’ saved [434084]
Step 10: Extract the downloaded file in anchor directory
root@linuxhelp:~# unzip master.zip
Archive: master.zip
ce13d4f3f31ea2706be38e71fc472d342ac780e1
creating: anchor-cms-master/
inflating: anchor-cms-master/.editorconfig
creating: anchor-cms-master/.github/
inflating: anchor-cms-master/.github/CODE_OF_CONDUCT.md
inflating: anchor-cms-master/.github/CONTRIBUTING.md
extracting: anchor-cms-master/themes/default/img/favicon.png
inflating: anchor-cms-master/themes/default/img/og_image.gif
extracting: anchor-cms-master/themes/default/img/search.png
creating: anchor-cms-master/themes/default/js/
inflating: anchor-cms-master/themes/default/js/main.js
inflating: anchor-cms-master/themes/default/page.php
inflating: anchor-cms-master/themes/default/posts.php
inflating: anchor-cms-master/themes/default/search.php
Step 11: Move Extracted files to the Apache home directory
root@linuxhelp:~# mv anchor-cms-master/ /var/www/anchor
Step 12: Change Ownership to the anchor directory
root@linuxhelp:~# chown -R www-data. /var/www/anchor
Step 13: Change Permissions to the anchor directory
root@linuxhelp:~# chmod -R 775 /var/www/anchor/
Step 14: Create Virtual Host for the anchor CMS
root@linuxhelp:~# vi /etc/apache2/sites-available/anchor.conf
<virtualhost *:80>
servername www.linuxhelp1.com
documentroot /var/www/anchor
<Directory /var/www/anchor >
AllowOverride All
allow from all
</Directory>
</virtualhost>
Step 15: Disable the default Virtual Host file of apache
root@linuxhelp:~# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2
Step 16: Enable the Virtual Host
root@linuxhelp:~# a2ensite anchor.conf
Enabling site anchor.
To activate the new configuration, you need to run:
systemctl reload apache2
Step 17: Enable the read write module of apache
root@linuxhelp:~# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2
Step 19: Restart the apache webserver
root@linuxhelp:~# systemctl restart apache2
Step 20: Make host entry for omeks CMS
root@linuxhelp:~# vi /etc/hosts
Step 21:Ping server name in browser

Step 22: Configure database in CMS

Step 23: Configure the Admin credentials

Step 24: Dashboard of anchor cms

By this the installation of Anchor CMS on Ubuntu 21.04 has been completed
Comments ( 0 )
No comments available