• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

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
{{postValue.id}}

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

Snap 1

Step 22: Configure database in CMS

Snap 2

Step 23: Configure the Admin credentials

Snap 3

Step 24: Dashboard of anchor cms

Snap 4

By this the installation of Anchor CMS on Ubuntu 21.04 has been completed

Tags:
mason
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

Where can I download the anchor CMS?

A

Anchor CMS get "https://github.com/anchorcms/anchor-cms/archive/refs/heads/master.zip"

Q

What is a2enmod?

A

The a2enmod is a script that enables the specified module within the · apache2 configuration

Q

How to check the PHP version?

A

To check the PHP version use php -v.

Q

What is a2ensite?

A

The a2ensite is a script that enables the specified site.

Q

What is a2dissite?

A

The a2dissite disables a site by removing those symlinks.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help David Lopez Guillen ?
Ayuda urgente instale SSL para servidor Opensuse y ahora no funciona tengo servicio web

hola segui este tutorial para tener un certificado ssl y ahora no se ve mi app en la red, espero alguien pueda ayudarme, tengo M9oodle en3.5 en un servidor open suse y ahora no funciona por favor ayuda.

https://www.linuxhelp.com/how-to-create-ssl-certificate-in-opensuse

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.