Anchor CMS Ubuntu 15.04

Anchor CMS and Blog System Ubuntu 15.04

Anchor is a super-simple, lightweight blog system, made to let you just write.

Basic installation of the anchor blog, version 0.9.2 with apache and mysql

Configuration summary

Ubuntu Ubuntu Vivid Vervet 15.04 Ubuntu Ubuntu Vivid Vervet 15.04
Package apache2 install

/var/www/blog/anchor-cms-0.9.2/.htaccess ensure file exist

Options -indexes

<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteBase /

	# Allow any files or directories that exist to be displayed directly
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d

	# Rewrite all other URLs to index.php/URL
	RewriteRule ^(.*)$ index.php/$1 [L]

<IfModule !mod_rewrite.c>
	ErrorDocument 404 index.php

/etc/apache2/sites-available/anchor.conf ensure file exist

<VirtualHost _default_:80>
        DocumentRoot /var/www/blog/anchor-cms-0.9.2/
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all

/var/www ensure directory exist

/var/www/blog ensure directory exist

/var/www/blog/anchor-cms-0.9.2 Permissions: www-data : www-data ensure directory exist

/var ensure directory exist


Post configure-apache

set -ue

a2enmod rewrite
a2dissite 000-default
a2ensite anchor
a2enmod rewrite

Post install-anchor

- parameter 1:
set -ue

unzip $1 -d /var/www/blog/
chown www-data:www-data -R /var/www/blog
Package mysql-server install

Post create-anchor-database

set -ue

echo "CREATE DATABASE anchor;" | mysql

Package php5-curl install
Package libapache2-mod-php5 install
Package php5-mcrypt install
Package php5-gd install
Package unzip install
Package php5-mysql install

Quick Deployment
Advanced Deployment