Apache2http2
Aus Wiki
Zur Navigation springenZur Suche springen
Apache2 Modul Event installieren
zypper install apache2-event
fcgid und php-fpm installieren und enablen
zypper install apache2-mod_fcgid php7-fpm a2enmod proxy_fcgi setenvif a2enmod fcgid
erstelle php7-fpm Konfiguratione
cp /etc/php7/fpm/php-fpm.conf.default /etc/php7/fpm/php-fpm.conf cp /etc/php7/fpm/php-fpm.d/www.conf.default /etc/php7/fpm/php-fpm.d/www.conf
Starte und enable PHP-FPM deamon
systemctl start php-fpm systemctl enable php-fpm
anpassen von /etc/apache2/conf.d/mod_fcgid.conf, vof </IfModule einfügen:
<FilesMatch "\.php$"> SetHandler "proxy:fcgi://localhost/" </FilesMatch> ## DirectoryIndex DirectoryIndex /index.php index.php
mpm_prefork und mpd_php7 disable
a2dismod mpm_prefork a2dismod php7
mpm_event enable
in /etc/sysconfig/apache2 MPM Apache2-event als MPM eintragen eintragen
APACHE_MPM="event"
Falls man ein PHP IncludeDir verwenden möchte in '/etc/php7/fpm/php-fpm.d/www.conf'
php_value[include_path] = "/usr/share/php7:/usr/share/php7/PEAR"
einfügen
== zurückschalten auf mod_php7
- a2dismod event
- a2dismod fcgid
- a2enmod mpm_prefork
- a2enmod php7
- '/etc/sysconfig/apache2' Zeile 'APACHE_MPM="event"' auf APACHE_MPM="prefork"