How to Install Anchor CMS 0.12.7v on Ubuntu 18.10
Installation Of ANCHOR CMS 0.12.7v On Ubuntu 18.10
Features:
Markup made modern
Markdown happy
teeny-tiny
Drag and Drop
Simple Theming
Extensible
Art directed blogging
Requirements:
LAMP Stack
PHP 5.6+
MYSQL 5.6+
PHP Modules:
php-curl php-mcrypt php-gd php-mbstring php-mysql pdo_sqlite
Download Link:
https://github.com/anchorcms/anchor-cms/releases/download/0.12.7/anchor-cms-0.12.7-bundled.zip
Installation Procedure
Change the directory to Apache’s Document root directory
root@linuxhelp:~# cd /var/www
Create a directory for Anchor
root@linuxhelp:/var/www# mkdir anchor
Change the directory to anchor Cms
root@linuxhelp:/var/www# cd anchor/
Download Anchor CMS using wget as follows
root@linuxhelp:/var/www/anchor# wget https://github.com/anchorcms/anchor-cms/releases/download/0.12.7/anchor-cms-0.12.7-bundled.zip
--2019-05-03 23:39:41-- https://github.com/anchorcms/anchor-cms/releases/download/0.12.7/anchor-cms-0.12.7-bundled.zip
Resolving github.com (github.com)... 192.30.253.113
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/1697736/6dd0c6f6-47af-11e8-86a5-ffef4d0402f5?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190504%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190504T063908Z&X-Amz-Expires=300&X-Amz-Signature=9cad1700bb4306acc18730ea2dd7d650e3ac360587b535a539a4a5b6b84778c9&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Danchor-cms-0.12.7-bundled.zip&response-content-type=application%2Foctet-stream [following]
--2019-05-03 23:39:42-- https://github-production-release-asset-2e65be.s3.amazonaws.com/1697736/6dd0c6f6-47af-11e8-86a5-ffef4d0402f5?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190504%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190504T063908Z&X-Amz-Expires=300&X-Amz-Signature=9cad1700bb4306acc18730ea2dd7d650e3ac360587b535a539a4a5b6b84778c9&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Danchor-cms-0.12.7-bundled.zip&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.128.11
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.128.11|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1612327 (1.5M) [application/octet-stream]
Saving to: ‘anchor-cms-0.12.7-bundled.zip’
anchor-cms-0.12.7-bundled.zip 100%[==============================================>] 1.54M 638KB/s in 2.5s
2019-05-03 23:39:46 (638 KB/s) - ‘anchor-cms-0.12.7-bundled.zip’ saved [1612327/1612327]
List the contents to check the downloaded zip file of anchor cms
root@linuxhelp:/var/www/anchor# ll
total 1584
drwxr-xr-x 2 root root 4096 May 3 23:39 ./
drwxr-xr-x 4 root root 4096 May 3 23:39 ../
-rw-r--r-- 1 root root 1612327 Apr 24 2018 anchor-cms-0.12.7-bundled.zip
Extract the zip file of Anchor CMS
root@linuxhelp:/var/www/anchor# unzip anchor-cms-0.12.7-bundled.zip
Archive: anchor-cms-0.12.7-bundled.zip
creating: anchor/anchor-cms-0.12.7/
inflating: anchor/anchor-cms-0.12.7/.editorconfig
creating: anchor/__MACOSX/
creating: anchor/__MACOSX/anchor-cms-0.12.7/
inflating: anchor/__MACOSX/anchor-cms-0.12.7/._.editorconfig
creating: anchor/anchor-cms-0.12.7/.github/
inflating: anchor/anchor-cms-0.12.7/.github/anchor-bg.jpeg
creating: anchor/__MACOSX/anchor-cms-0.12.7/.github/
inflating: anchor/__MACOSX/anchor-cms-0.12.7/.github/._anchor-bg.jpeg
inflating: anchor/anchor-cms-0.12.7/.github/CODE_OF_CONDUCT.md
inflating: anchor/__MACOSX/anchor-cms-0.12.7/.github/._CODE_OF_CONDUCT.md
inflating: anchor/anchor-cms-0.12.7/.github/CONTRIBUTING.md
.
.
.
.
.
inflating: anchor/anchor-cms-0.12.7/vendor/symfony/polyfill-mbstring/bootstrap.php
inflating: anchor/anchor-cms-0.12.7/vendor/symfony/polyfill-mbstring/composer.json
inflating: anchor/anchor-cms-0.12.7/vendor/symfony/polyfill-mbstring/LICENSE
inflating: anchor/anchor-cms-0.12.7/vendor/symfony/polyfill-mbstring/Mbstring.php
inflating: anchor/anchor-cms-0.12.7/vendor/symfony/polyfill-mbstring/README.md
creating: anchor/anchor-cms-0.12.7/vendor/symfony/polyfill-mbstring/Resources/
creating: anchor/anchor-cms-0.12.7/vendor/symfony/polyfill-mbstring/Resources/unidata/
inflating: anchor/anchor-cms-0.12.7/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php
inflating: anchor/anchor-cms-0.12.7/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php
inflating: anchor/__MACOSX/._anchor-cms-0.12.7
finishing deferred symbolic links:
anchor/anchor-cms-0.12.7/vendor/bin/peridot -> ../peridot-php/peridot/bin/peridot
List the contents to check the extracted files
root@linuxhelp:/var/www/anchor# ll
total 1592
drwxr-xr-x 4 root root 4096 May 3 23:39 ./
drwxr-xr-x 4 root root 4096 May 3 23:39 ../
drwxr-xr-x 10 root root 4096 Apr 24 2018 anchor-cms-0.12.7/
-rw-r--r-- 1 root root 1612327 Apr 24 2018 anchor-cms-0.12.7-bundled.zip
drwxrwxr-x 3 root root 4096 Apr 24 2018 __MACOSX/
Rename the anchor directory to final
root@linuxhelp:/var/www/anchor# mv anchor-cms-0.12.7 final
Change the directory to final
root@linuxhelp:/var/www/anchor# cd final/
Assign Ownership permissions to the final directory.
root@linuxhelp:/var/www/anchor/final# chown -R www-data. ./
Assign Writable permissions to the final directory.
root@linuxhelp:/var/www/anchor/final# chmod -R 775 ./
List the contents to check the permissions assigned.
root@linuxhelp:/var/www/anchor/final# ll
total 152
drwxrwxr-x 10 www-data www-data 4096 Apr 24 2018 ./
drwxr-xr-x 4 root root 4096 May 3 23:40 ../
drwxrwxr-x 10 www-data www-data 4096 Mar 6 2018 anchor/
-rwxrwxr-x 1 www-data www-data 1057 Mar 6 2018 composer.json*
-rwxrwxr-x 1 www-data www-data 23650 Mar 6 2018 composer.lock*
drwxrwxr-x 2 www-data www-data 4096 Mar 6 2018 content/
-rwxrwxr-x 1 www-data www-data 558 Mar 6 2018 docker-compose.yml*
-rwxrwxr-x 1 www-data www-data 1431 Mar 6 2018 Dockerfile*
-rwxrwxr-x 1 www-data www-data 293 Mar 6 2018 .editorconfig*
drwxrwxr-x 2 www-data www-data 4096 Mar 6 2018 .github/
-rwxrwxr-x 1 www-data www-data 774 Mar 6 2018 .gitignore*
-rwxrwxr-x 1 www-data www-data 6558 Mar 6 2018 gulpfile.js*
-rwxrwxr-x 1 www-data www-data 885 Mar 6 2018 index.php*
drwxrwxr-x 6 www-data www-data 4096 Mar 6 2018 install/
-rwxrwxr-x 1 www-data www-data 852 Mar 6 2018 jest.config.js*
-rwxrwxr-x 1 www-data www-data 35121 Mar 6 2018 license.md*
-rwxrwxr-x 1 www-data www-data 1447 Mar 6 2018 package.json*
-rwxrwxr-x 1 www-data www-data 2583 Mar 6 2018 readme.md*
-rwxrwxr-x 1 www-data www-data 1 Mar 6 2018 scss-lint.yml*
drwxrwxr-x 5 www-data www-data 4096 Mar 6 2018 system/
drwxrwxr-x 5 www-data www-data 4096 Mar 6 2018 test/
drwxrwxr-x 3 www-data www-data 4096 Mar 6 2018 themes/
-rwxrwxr-x 1 www-data www-data 1889 Mar 6 2018 .travis.yml*
drwxrwxr-x 11 www-data www-data 4096 Apr 24 2018 vendor/
Create a customised configuration file for Anchor CMS
root@linuxhelp:/var/www/anchor/final# vim /etc/apache2/sites-available/a.conf
<virtualhost *:80>
servername www.linuxhelp1.com
documentroot /var/www/anchor/final/
<directory /var/www/anchor/final/>
allowoverride all
allow from all
</directory>
</virtualhost>
Disable the access for default sites
root@linuxhelp:/var/www/anchor/final# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2
Enable the access of Anchor CMS site
root@linuxhelp:/var/www/anchor/final# a2ensite a.conf
Enabling site a.
To activate the new configuration, you need to run:
systemctl reload apache2
Enable the rewrite module
root@linuxhelp:/var/www/anchor/final# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2
Configure MariaDB for Anchor CMS to store the data
root@linuxhelp:/var/www/anchor/final# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 58
Server version: 10.1.29-MariaDB-6ubuntu2 Ubuntu 18.10
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database anchor character set utf8mb4;
Query OK, 1 row affected (0.06 sec)
MariaDB [(none)]> use anchor;
Database changed
MariaDB [anchor]> create user auser@localhost identified by 'linuxc';
Query OK, 0 rows affected (0.01 sec)
MariaDB [anchor]> grant all on anchor.* to auser@localhost;
Query OK, 0 rows affected (0.00 sec)
MariaDB [anchor]> flush privileges;
Query OK, 0 rows affected (0.01 sec)
MariaDB [anchor]> exit
Bye
Restart the service of APache
root@linuxhelp:/var/www/anchor/final# systemctl restart apache2
Open the Browser and enter the server name that had configured inside the virtual hosting of Apache server for Anchor CMS 0.12.7