We are switching from CentOS6 to CentOS7 for the reference platform for the server.
One reason is that we want to use the official mono packages provided by Xamarin, and they work better on CentOS7 (some problems with libpng15 on CentOS6).
And for a new server, it is good to be on the current operating system anyway...
So here are the instructions:
# get the key for the Xamarin packages
rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
# get the key for the OpenPetra packages
rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x4796B710919684AC"
# install yum-utils for yum-config-manager
yum install yum-utils
# install the Xamarin repository
yum-config-manager --add-repo http://download.mono-project.com/repo/centos/
# install the OpenPetra repository
yum-config-manager --add-repo https://download.solidcharity.com/repos/tpokorra/openpetra/centos/7/
# install the Epel repository. We are using Postgresql 9.2 from Epel, and lighttpd as well
yum install epel-release
# install OpenPetra server
yum install openpetranow-demo
# create the database, and setup all configuration for lighttpd etc
The server now listens at http://localhost/openpetra9000/ and provides a client installer for Windows there.
I download a demo database once from https://sourceforge.net/projects/openpetraorg/files/openpetraorg/demodata/ and store it in /usr/local/openpetra/db30/demo.yml.gz. Each night I reset the database by running:
openpetra-server loadYmlGz /usr/local/openpetraorg/db30/demo.yml.gz
For your own installation, you will need to modify the RPM spec file and build your own package. The sources are here: https://github.com/tpokorra/lbs-openpetra/tree/master/openpetranow-demo