Initial commit..

This commit is contained in:
2026-02-13 23:27:59 +01:00
commit bf6c1e6622
4 changed files with 271 additions and 0 deletions

BIN
.README.install.swp Normal file

Binary file not shown.

138
README.install Normal file
View File

@@ -0,0 +1,138 @@
# CiviCRM - https://civicrm.org / https://civicrm.com/
#
# see also:
# https://civicrm.com/de/homepage-de/
# https://github.com/civicrm/civicrm-standalone
#
# CiviCRM ist ein Open-Source-System für das Constituent Relationship Management (CRM),
# das von engagierten Menschen aus Fundraising, Non-Profit-Organisation und
# Softwarenentwicklung aufgebaut und gepflegt wird also von Menschen wie Sie! Es is
# eine leistungsstarke, flexible und hochgradig anpassbare CRM-Plattform, die von
# gemeinnützigen und zivilgesellschaftlichen Einrichtungen genutzt wird, die sich der
# Lösung realer Probleme verschrieben haben.
WEBSITE=civicrm.oopen.de
CIVICRM_BASE_DIR=/var/www/${WEBSITE}
VERSION=6.11.0
# ---
# Install (Stsandalone) CiviCRM
#
# see: https://docs.civicrm.org/installation/en/latest/standalone/
# ---
# Requirements: https://docs.civicrm.org/installation/en/latest/requirements/
# 1. Get the code
#
# Download CiviCRM from here:
#
# https://civicrm.org/download
#
cd ${CIVICRM_BASE_DIR}
wget https://download.civicrm.org/civicrm-${VERSION}-standalone.tar.gz
gunzp < civicrm-${VERSION}-standalone.tar.gz | tar -xf -
# 2. Configure MySQL
#
# - Create database
# - Load the Time Zone Tables
#
# 2a create database
#
# # <db-name> <db-user> <dp-pass>
# civicrm_oopen civicrm_oopen C.JT-kC743/mQ5ge
# 2b load Load the Time Zone Tables using 'mysql_tzinfo_to_sql '
#
# Note:
# mysql_tzinfo_to_sql is a binary distributed with debia package 'mariadb-server'
#
# see also: man mysql_tzinfo_to_sql
#
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -S /run/mysqld/mysqld.sock mysql
# 3. Configure your webserver
#
# see file apache-vhost.example
#
# 4. Run the installer
#
# The installer verifies requirements, prepares the database, and initializes the
# configuration file. You may run the installer through the web interface (which is
# simpler) or the command-line interface (which has more options).
#
# 1. Head to the civicrm webpage - ${WEBSITE}
#
# 2. The CiviCRM installer will open.
#
# - You will need to provide the details for the database you created earlier
#
# - You also have to provide a username, password and e-mail address for the
# site adminstrator user. Note: this login is totally separate from the
# database username and password.
#
# - If there are unmet requirements, the installer will list them. Consult the
# Requirements documentation for additional advice.
#
# - If all the requirements are met, proceed through the questionnaire.
#
# - You can select another language if you want CiviCRM to be installed in
# another language then English US. The installer will then download the
# translation files for you.
#
# - Finally, click "Install CiviCRM".
#
# 3. After installing, you should see a confirmation page confirming installation has completed correctly.
#
# Note:
# It's also possible to install CiviCRMwit command-line administrationtool 'cv':
#
# cd ${CIVICRM_BASE_DIR}
# cv core:install -v \
# --cms-base-url=http://localhost:8000 \
# --db=mysql://USER:PASS@HOST:PORT/DATABASE \
# -m extras.adminUser=USERNAME \
# -m extras.adminPass=SECRET \
# -m extras.adminEmail=ME@EXAMPLE.COM
#
# For full details see https://docs.civicrm.org/installation/en/latest/general/cli-cv/
# 5. Log in and review users and permissions
#
# You should now be able to log in to your site at e.g.
#
# https://${WEBSITE}/login.
#
# Use the administrator username and password you created during install.
#
# Head to Adminster >> Users and Permissions to configure users and roles for your site.
# 6. Download command-line administrationtool 'cv'
#
# You will need it also for CronJobs
#
# see also:
#
# https://docs.civicrm.org/installation/en/latest/general/cli-cv/
#
sudo curl -LsS https://download.civicrm.org/cv/cv.phar -o /usr/local/bin/cv
sudo chmod +x /usr/local/bin/cv
# 7 install cronjob
#
# # - Check whether all certificates are included in the VHOST configurations
# # -
# 27 05 * * * /var/lib/dehydrated/tools/update_ssl_directives.sh

39
README.install-cli-cv Normal file
View File

@@ -0,0 +1,39 @@
# CLI utility for CiviCRM: cv
# ---------------------------
# cv is distributed in PHAR format, which is a portable executable file (for PHP).
# It should run on most Unix-like systems where PHP is installed. Here are three
# quick ways to download it:
#
# Download the latest release of cv.phar (SHA256, GPG) and put it in the PATH. For example:
#
# sudo curl -LsS https://download.civicrm.org/cv/cv.phar -o /usr/local/bin/cv
# sudo chmod +x /usr/local/bin/cv
#
# (Learn more: Install cv.phar as system-wide tool (Linux/BSD/macOS))
#
# Or... add cv and other CiviCRM tools to a composer project (Drupal 9/10/11)
#
# composer require civicrm/cli-tools
#
# (Learn more: Install cv.phar as project tool (composer))
#
# Or... use phar.io's phive installer to download, validate, and cache the cv.phar file.
#
# phive install civicrm/cv
#
# (Learn more: Install cv.phar as project tool (phive))
#
#There are several more options for downloading cv. See also:
#
# Download URLs for alternate versions
# Comparison of install options
# Install cv as a system-wide/standalone tool
# Install cv.phar (binary) as system-wide tool (Linux/BSD/macOS)
# Install cv.git (source) as standalone project (Linux/BSD/macOS)
# Install cv.git (source) as standalone project (Windows)
# Install cv as a tool within another project
# Install cv.phar (binary) as project tool (composer)
# Install cv.phar (binary) as project tool (phive)
# Install cv.git (source) as project tool (composer)
#

94
apache-vhost.example Normal file
View File

@@ -0,0 +1,94 @@
# --- civicrm.oopen.de
<VirtualHost 37.27.67.118:80 [2a01:4f9:3081:34d1::118]:80>
ServerAdmin admin@oopen.de
ServerName civicrm.oopen.de
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
CustomLog /var/log/apache2/ip_requests.log base_requests
CustomLog /var/www/civicrm.oopen.de/logs/civicrm.oopen.de-access.log combined
ErrorLog /var/www/civicrm.oopen.de/logs/civicrm.oopen.de-error.log
</VirtualHost>
<VirtualHost 37.27.67.118:443 [2a01:4f9:3081:34d1::118]:443>
ServerAdmin admin@oopen.de
ServerName civicrm.oopen.de
#ProxyErrorOverride On
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php/php-8.4-fpm.www.sock|fcgi://php/"
</FilesMatch>
# Define a matching worker.
# The part that is matched to the SetHandler is the part that
# follows the pipe. If you need to distinguish, "localhost; can
# be anything unique.
#
<Proxy "fcgi://php/">
# Recycle connections to the fastcgi dispatcher (PHP FPM).
#
# Use persistent connections to reduce the constant overhead of setting
# up new connections
#
ProxySet enablereuse=on
# max - the most proxied request per server
#
# max = pm.max_children / max number of servers
# = pm.max_children / (MaxRequestWorkers / ThreadsPerChild)
#
ProxySet max=16
# Forces the module to flush every chunk of data received from the FCGI backend
# as soon as it receives it, without buffering.
#
ProxySet flushpackets=on
# connectiontimeout
#
# Connect timeout in seconds. The number of seconds Apache httpd waits for the
# creation of a connection to the backend to complete. By adding a postfix of ms,
# the timeout can be also set in milliseconds.
#
ProxySet connectiontimeout=5
# timeout
#
# Socket timeout in seconds. The number of seconds Apache httpd waits for data
# sent by / to the backend.
#
ProxySet timeout=30
</Proxy>
<IfModule dir_module>
DirectoryIndex index.php index.html index.htm
</IfModule>
DocumentRoot /var/www/civicrm.oopen.de/htdocs
<Directory "/var/www/civicrm.oopen.de/htdocs">
Require all granted
AllowOverride All
</Directory>
SSLEngine on
SSLCertificateFile /var/lib/dehydrated/certs/civicrm.oopen.de/fullchain.pem
SSLCertificateKeyFile /var/lib/dehydrated/certs/civicrm.oopen.de/privkey.pem
CustomLog /var/log/apache2/ip_requests.log base_requests
CustomLog /var/www/civicrm.oopen.de/logs/civicrm.oopen.de-access.log combined
ErrorLog /var/www/civicrm.oopen.de/logs/civicrm.oopen.de-error.log
</VirtualHost>