Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung |
tachtler:phpldapadmin_archlinux [2022/12/29 08:34] – [/etc/php7/php.ini] klaus | tachtler:phpldapadmin_archlinux [2023/10/13 11:15] (aktuell) – [/etc/httpd/conf/vhosts/phpldapadmin.conf] klaus |
---|
* Siehe auch den internen Link: [[tachtler:apache_http_server_archlinux_-_mod_ssl_-_verschluesselung_https|Apache HTTP Server ArchLinux - mod_ssl - Verschlüsselung (https)]] | * Siehe auch den internen Link: [[tachtler:apache_http_server_archlinux_-_mod_ssl_-_verschluesselung_https|Apache HTTP Server ArchLinux - mod_ssl - Verschlüsselung (https)]] |
* PHP **ab der Version 5** oder höher [[https://www.php.net/|PHP Net]] | * PHP **ab der Version 5** oder höher [[https://www.php.net/|PHP Net]] |
* Hier als PHP7-FPM, siehe auch den internen Link [[tachtler:apache_http_server_archlinux_-_php7-fpm_-_alternativer_php-interpreter|Apache HTTP Server ArchLinux - php7-fpm - Alternativer PHP-Interpreter]] | * Hier als PHP74-FPM, siehe auch den internen Link [[tachtler:apache_http_server_archlinux_-_php74-fpm_-_alternativer_php-interpreter|Apache HTTP Server ArchLinux - php74-fpm - Alternativer PHP-Interpreter]] |
| |
Siehe auch den externen Link | Siehe auch den externen Link |
* [[https://phpldapadmin.sourceforge.net/wiki/index.php/PreRequisites|phpLDAPadmin - PreRequisites]] | * [[https://phpldapadmin.sourceforge.net/wiki/index.php/PreRequisites|phpLDAPadmin - PreRequisites]] |
| |
| Nachdem das ''AUR''-Repository von [[https://aur.archlinux.org//|ArchLinux - AUR]] |
| * [[tachtler:archlinux_-_arch_user_repository|ArchLinux - Arch User Repository]] |
| erfolgreich eingebunden wurde, können mit nachfolgendem Befehl, die ''AUR''-Pakete - |
| * **''php74''** |
| * **''php74-cli''** |
| * **''php74-gettext''** |
| * **''php74-ldap''** |
| * **''php74-xml''** |
| **__als Abhängigkeiten__** installiert werden: |
| |
| <code> |
| # pikaur --noconfirm -S php74 php74-cli php74-gettext php74-ldap php74-xml |
| </code> |
| ++++ Installationsverlauf | |
| <code> |
| # pikaur --noconfirm -S php74 php74-cli php74-gettext php74-ldap php74-xml |
| </code> |
| ++++ |
| |
| :!: **HINWEIS** - Aufgrund von anderen Installationen, sind einige benötigte Pakete bereits auf diesem Server installiert! |
| |
| Mit nachfolgendem Befehl kann überprüft werden, welche Inhalte mit den Paketen **''php74 php74-cli php74-gettext php74-ldap php74-xml''** installiert wurden. |
| <code> |
| # pacman -Qil php74 php74-cli php74-gettext php74-ldap php74-xml |
| </code> |
| ++++ Installierte Dateien | |
| <code> |
| # pacman -Qil php74 php74-cli php74-gettext php74-ldap php74-xml |
| </code> |
| ++++ |
| |
===== Installation ===== | ===== Installation ===== |
* [[tachtler:ldap_archlinux#anonymous_bind_deaktivierenetc_openldap_ldifd_config_anonymous_bindldif|LDAP Archlinux - "Anonymous bind" deaktivieren: /etc/openldap/ldif.d/config_anonymous_bind.ldif]] | * [[tachtler:ldap_archlinux#anonymous_bind_deaktivierenetc_openldap_ldifd_config_anonymous_bindldif|LDAP Archlinux - "Anonymous bind" deaktivieren: /etc/openldap/ldif.d/config_anonymous_bind.ldif]] |
| |
===== PHP7-FPM ===== | ===== PHP74-FPM ===== |
| |
Aktuell ist die [[https://www.php.net/|PHP Net]] Installation in der **Version 7.x** noch in Verwendung, welche als PHP7-FPM zur Interpretation von PHP-Code verwendet wird. | Aktuell ist die [[https://www.php.net/|PHP Net]] Installation in der **Version 7.x** noch in Verwendung, welche als PHP7-FPM zur Interpretation von PHP-Code verwendet wird. |
| |
* Siehe auch den internen Link [[tachtler:apache_http_server_archlinux_-_php7-fpm_-_alternativer_php-interpreter|Apache HTTP Server ArchLinux - php7-fpm - Alternativer PHP-Interpreter]] | * Siehe auch den internen Link [[tachtler:apache_http_server_archlinux_-_php74-fpm_-_alternativer_php-interpreter|Apache HTTP Server ArchLinux - php74-fpm - Alternativer PHP-Interpreter]] |
| |
==== /etc/php7/php.ini ==== | ==== /etc/php7/php.ini ==== |
<IfModule log_config_module> | <IfModule log_config_module> |
ErrorLog /var/log/httpd/phpldapadmin.tachtler.net_error.log | ErrorLog /var/log/httpd/phpldapadmin.tachtler.net_error.log |
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded | SetEnvIF User-Agent "HAProxy" dontlog=yes |
| SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded=yes |
<IfModule logio_module> | <IfModule logio_module> |
CustomLog /var/log/httpd/phpldapadmin.tachtler.net_access.log combined_deflate_ssl env=!forwarded | CustomLog /var/log/httpd/phpldapadmin.tachtler.net_access.log combined_deflate_ssl "expr=(reqenv('forwarded') != 'yes' && reqenv('dontlog') != 'yes')" |
CustomLog /var/log/httpd/phpldapadmin.tachtler.net_access.log combined_deflate_proxypass_ssl env=forwarded | CustomLog /var/log/httpd/phpldapadmin.tachtler.net_access.log combined_deflate_proxypass_ssl "expr=(reqenv('forwarded') == 'yes' && reqenv('dontlog') != 'yes')" |
</IfModule> | </IfModule> |
</IfModule> | </IfModule> |
# ---------------------------------------------------------- | # ---------------------------------------------------------- |
<IfModule alias_module> | <IfModule alias_module> |
Alias / "/usr/share/webapps/phpldapadmin" | Alias / "/usr/share/webapps/phpldapadmin/" |
</IfModule> | </IfModule> |
| |
AllowOverride None | AllowOverride None |
Require all granted | Require all granted |
| |
| <FilesMatch \.php$> |
| SetHandler "proxy:unix:/run/php-fpm/php-fpm.sock|fcgi://localhost" |
| </FilesMatch> |
| |
</Directory> | </Directory> |
| |
<IfModule log_config_module> | <IfModule log_config_module> |
ErrorLog /var/log/httpd/phpldapadmin.tachtler.net_error.log | ErrorLog /var/log/httpd/phpldapadmin.tachtler.net_error.log |
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded | SetEnvIF User-Agent "HAProxy" dontlog=yes |
| SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded=yes |
<IfModule logio_module> | <IfModule logio_module> |
CustomLog /var/log/httpd/phpldapadmin.tachtler.net_access.log combined_deflate_ssl env=!forwarded | CustomLog /var/log/httpd/phpldapadmin.tachtler.net_access.log combined_deflate_ssl "expr=(reqenv('forwarded') != 'yes' && reqenv('dontlog') != 'yes')" |
CustomLog /var/log/httpd/phpldapadmin.tachtler.net_access.log combined_deflate_proxypass_ssl env=forwarded | CustomLog /var/log/httpd/phpldapadmin.tachtler.net_access.log combined_deflate_proxypass_ssl "expr=(reqenv('forwarded') == 'yes' && reqenv('dontlog') != 'yes')" |
</IfModule> | </IfModule> |
</IfModule> | </IfModule> |