commit bf6c1e6622cc56094165ba451c874997f6cd9f58 Author: Christoph Date: Fri Feb 13 23:27:59 2026 +0100 Initial commit.. diff --git a/.README.install.swp b/.README.install.swp new file mode 100644 index 0000000..4d928c5 Binary files /dev/null and b/.README.install.swp differ diff --git a/README.install b/README.install new file mode 100644 index 0000000..9f9d07f --- /dev/null +++ b/README.install @@ -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 +# +# # +# 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 diff --git a/README.install-cli-cv b/README.install-cli-cv new file mode 100644 index 0000000..4cb09d1 --- /dev/null +++ b/README.install-cli-cv @@ -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) +# diff --git a/apache-vhost.example b/apache-vhost.example new file mode 100644 index 0000000..468fd2a --- /dev/null +++ b/apache-vhost.example @@ -0,0 +1,94 @@ +# --- civicrm.oopen.de + + + + 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 + + + + + + ServerAdmin admin@oopen.de + + ServerName civicrm.oopen.de + + #ProxyErrorOverride On + + + SetHandler "proxy:unix:/run/php/php-8.4-fpm.www.sock|fcgi://php/" + + + # 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. + # + + + # 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 + + + + DirectoryIndex index.php index.html index.htm + + + DocumentRoot /var/www/civicrm.oopen.de/htdocs + + Require all granted + AllowOverride All + + + 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 + +