From bf6c1e6622cc56094165ba451c874997f6cd9f58 Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 13 Feb 2026 23:27:59 +0100 Subject: [PATCH] Initial commit.. --- .README.install.swp | Bin 0 -> 16384 bytes README.install | 138 ++++++++++++++++++++++++++++++++++++++++++ README.install-cli-cv | 39 ++++++++++++ apache-vhost.example | 94 ++++++++++++++++++++++++++++ 4 files changed, 271 insertions(+) create mode 100644 .README.install.swp create mode 100644 README.install create mode 100644 README.install-cli-cv create mode 100644 apache-vhost.example diff --git a/.README.install.swp b/.README.install.swp new file mode 100644 index 0000000000000000000000000000000000000000..4d928c51f1372a32b584b623da55e50215fa08f8 GIT binary patch literal 16384 zcmeHO&5s;M6>suM67nI(0_FDXjkI>W-MwCaX63cAUXSrwyWY*t+JLcGYPxH>EAHtU zcU8~qZsNpn;Q%p6`3E?2AO|EMAreRypC<%DC<+KE$hSMApH#l>ZM(VKSgdB$;8+c(5NANjs>ZOU;nDYdzMuTP)1-02tZ zRmySvTxEVD1D5zI3;aOzM38m-wZ{DE<%TCxrCE~PTTES|W}s%^ei_Jh+dclIb7Y{j}r!5_lK*4saQ`1USGCp29WoDDd`^j`KC(IuHS;fO%jBI0zg7o&X*L ze(@Q{`5Ew2;407sz5-kZP68)@=YY=v4)D$sj`L&S4d8X)8W00*U@Bzl`ec*NA8t@vh0xSb|JVE0p`ApE4WKJrU zc@k1OF){jE_Nm2*wGvKRQX(S~skz#cc}7ZTJk!Lz$RlUMnV=&cEfr;08dAo4g7+y` zJX2(Dba~bhN(q@Ns5U|7b4F&=&Xa^fu9-*_Db6X@x~pb=Ka_#;%2!1^nMHp2o(R*B z;q%l_nC43R5l?xBH%o#)JvkJ}->sWYZL7IsA1=%AUo<;F{mFU~KoE;YP` zmE}?wTV<^HDpP8%*;rU>tkdPYl)Hdl&Ru9W*3Qo_H^xf3VQa3lrLHFEk|{E~I^S%* zbath=KD)ZIw(g&vU!OlU-@L6_&{1xSDemT3GG{nJeftVcER~);K0Q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ks%$}EYgp~ z|Jp|8&kuU#a~w#KyQG?fePxvw8cjm=P{ZpYdr7XmgRJpg@_%yNH?|)(nfaX*I?k0+lBAFaIT`CSz%ltdU*nHVg`{g;sZD$+yOsGouhj})1NVb#AuM!YD=_s5a;*7&H HIf{P+>1Wgj literal 0 HcmV?d00001 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 + +