Project home: https://bues.ch Original repository at: https://git.bues.ch/git/cms.git https://bues.ch

Michael Buesch 104a0213c0 Add console-text formatting element %!s(int64=12) %!d(string=hai) anos
example 104a0213c0 Add console-text formatting element %!s(int64=12) %!d(string=hai) anos
.gitignore b7eb4bf59a Add index.wsgi %!s(int64=13) %!d(string=hai) anos
Makefile 555bf04ec7 Configure the basic CMS parameters through apache config %!s(int64=13) %!d(string=hai) anos
README 555bf04ec7 Configure the basic CMS parameters through apache config %!s(int64=13) %!d(string=hai) anos
cms-cli c26ed31e43 Use sane defaults for thumb image dimensions %!s(int64=13) %!d(string=hai) anos
cms.py 560617a5a8 Add $(file_mdatet ...) statement %!s(int64=12) %!d(string=hai) anos
index.wsgi e907b62f09 Add __DUMPVARS__ variable %!s(int64=12) %!d(string=hai) anos

README

-------------------------------------------------------------------------------
--- cms.py - simple WSGI/Python based CMS script
--- Copyright (c) 2011-2012 Michael Buesch
---------


--- Installing cms.py ---

Just run
make install-world DESTDIR=/var/cms OWNER=www-data GROUP=www-data
to install the cms scripts and the example database files.
See "make help" for more options.



--- Configuring Apache httpd ---

Install the Apache WSGI module. On Debian Linux, this is libapache2-mod-wsgi.
Create a new config file /etc/apache2/conf.d/wsgi with content similar to
the following Debian based example:

# Adjust "user" and "group" to your system.
WSGIDaemonProcess wsgi processes=10 threads=1 display-name=apache-wsgi user=www-data group=www-data
WSGIPythonOptimize 1
# /cms is the base URL path to the CMS.
# /var/cms is where index.wsgi, cms.py and the db directory live.
# /var/www is the path to the static files.
# Adjust these paths to your setup.
WSGIScriptAlias /cms /var/cms/index.wsgi
WSGIPythonPath /var/cms
SetEnv cms.domain example.com
SetEnv cms.cmsBase /var/cms
SetEnv cms.wwwBase /var/www
SetEnv cms.debug 1

WSGIProcessGroup wsgi
AllowOverride None
Options -ExecCGI -MultiViews +SymLinksIfOwnerMatch -Indexes
Order deny,allow
Allow from all

# Redirect all 404 to the CMS 404 handler (optional)
ErrorDocument 404 /cms/__nopage/__nogroup.html

Reload Apache httpd after modifying the config.