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

Michael Buesch e69636430b Move logo into cms images directory hai 5 meses
cms e69636430b Move logo into cms images directory hai 5 meses
cms-cgi 1e995daddf cgi: Remove unnecessary dep hai 5 meses
cms-fsd 91a686fc09 db: Add image fetching hai 5 meses
cms-ident 6ce05092ab Fix doc warnings hai 5 meses
cms-postd 035dbeb7fc Restart services on failure hai 5 meses
cms-socket 0c4339a74a sock: Increase limits hai 5 meses
cms-socket-back ea5a54e5d3 cgi: Better 404 handling hai 5 meses
cms-socket-db 91a686fc09 db: Add image fetching hai 5 meses
cms-socket-post 0a6b819b7f postd: Forward handler exceptions to client hai 5 meses
cms-systemd 6ce05092ab Fix doc warnings hai 5 meses
cmsbackpy 72e2189243 back: Catch receive errors hai 5 meses
example 7dce7fe945 example: Move css hai 5 meses
submodules da4d696699 Update submodule 'multipart' hai 11 meses
.gitignore 01c2824c22 Remove cython link hai 5 meses
.gitmodules 9b65e4fc50 Remove usage of cgi module %!s(int64=2) %!d(string=hai) anos
Cargo.toml a82be4a881 Add CGI base hai 5 meses
README.rst 530b388df5 Readme: Add build help hai 5 meses
TODO a4e0639a7f Remove header todo entry %!s(int64=5) %!d(string=hai) anos
build.sh 01c2824c22 Remove cython link hai 5 meses
cleantree.sh ac5f73d090 Rewrite build script hai 5 meses
install-users.sh 175bbb275c install: Stop backd hai 5 meses
install.sh 1c7abcdad6 Fix cython install path hai 5 meses
setup.py fae0f546a1 Remove WSGI hai 5 meses
setup_cython.py 8b8da85246 Fix Cython 3.x build hai 6 meses

README.rst

Simple Rust and Python based CMS
================================

Copyright (c) 2011-2024 Michael Buesch


Building
========

Run the `build.sh` script to build the CMS system.

The build requires the `cargo-audit` and `cargo-auditable` Rust crates installed:

.. code:: sh

cargo install cargo-audit cargo-auditable

The Python part requires the `Cython` compiler installed:

.. code:: sh

apt install cython3 python3 build-essential

After installing all build dependencies, run the build script:

.. code:: sh

./build.sh

Installing
==========

After building, run the `install-users.sh` script to create the user/group structure for CMS in the operating system:

.. code:: sh

./install-users.sh

After that, run the `install.sh` script.
It will install the CMS system into `/opt/cms/`.

.. code:: sh

./install.sh

Then create the database inside of `/opt/cms/etc/cms/db/`.
You may start with the example db:

.. code:: sh

cp -r ./example/db/* /opt/cms/etc/cms/db/


Configuring Apache httpd
========================

Configure the CMS CGI binary as CGI `ScriptAlias`:

.. code::

ScriptAlias /cms /opt/cms/libexec/cms-cgi/cms.cgi


AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch -Indexes
Require all granted


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