From: Aaron Taylor Date: Thu, 4 Jan 2018 07:29:19 +0000 (-0800) Subject: Added installation instructions to README. X-Git-Url: http://git.subgeniuskitty.com/cmless/.git/commitdiff_plain/a58599bae29dd31138843285dcbe638bb911b0d3 Added installation instructions to README. --- diff --git a/README.md b/README.md index 088090a..0a9853a 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,69 @@ Status CMless is not yet functional. The stages required to reach basic functionality are: -1. Figure out deployment scheme +1. ~~Figure out deployment scheme~~ 2. Interpret URL and locate/serve appropriate page 3. Feed pages through a document processor 4. Feed pages through a template engine 5. Generate menu based on directory structure + +Installation Example - Debian Linux +----------------------------------- + +Enable CGI scripts: + +``` +a2enmod cgi +``` + +Create and enable an Apache vhost. + +``` +vi /etc/apache2/sites-available/cmless.subgeniuskitty.com +``` + +``` + + DocumentRoot "/mnt/data/apache_vhosts/cmless.subgeniuskitty.com" + ServerName cmless.subgeniuskitty.com + ServerAdmin webmaster@subgeniuskitty.com + ErrorLog /var/log/apache2/error_log.cmless.subgeniuskitty.com + CustomLog /var/log/apache2/access_log.cmless.subgeniuskitty.com combined + AddHandler cgi-script .py + + Options -ExecCGI -Indexes + AllowOverride None + Order allow,deny + Allow from all + + + Options ExecCGI + AllowOverride None + Order allow,deny + Allow from all + + RewriteEngine On + RewriteRule (.*) /mnt/data/apache_vhosts/cmless.subgeniuskitty.com/site/$1 + RewriteRule .* /mnt/data/apache_vhosts/cmless.subgeniuskitty.com/bin/cmless.py + +``` + +``` +a2ensite cmless.subgeniuskitty.com +service apache2 reload +``` + +Clone the CMless git repository into the Apache vhost directory. + +``` +cd /mnt/data/apache_vhosts +git clone https://github.com/subgeniuskitty/cmless.git cmless.subgeniuskitty.com +chown -R www-data:www-data ./cmless.subgeniuskitty.com +``` + +Clone your content into the site/ folder. + +``` +cd /mnt/data/apache_vhosts/cmless.subgeniuskitty.com +git clone your_site_content_repo site +```