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
Files

/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>

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

/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
        </Directory>
</VirtualHost>

/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

Hooks

Post configure-apache

#!/bin/bash
set -ue

a2enmod rewrite
a2dissite 000-default
a2ensite anchor
a2enmod rewrite

Post install-anchor

- parameter 1: http://anchorcms.com/download
#!/bin/bash
set -ue

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

Post create-anchor-database

#!/bin/bash
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