Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
wiki:centos:mehrere_php_versionen [2020/04/15 11:32] – [PHP 7.3] wikiadmin | wiki:centos:mehrere_php_versionen [2020/04/15 11:37] (aktuell) – wikiadmin | ||
---|---|---|---|
Zeile 56: | Zeile 56: | ||
==== Paketinstallation ==== | ==== Paketinstallation ==== | ||
- | < | + | < |
==== Prozesse stoppen ==== | ==== Prozesse stoppen ==== | ||
- | < | + | < |
Wenn man mehrere FastCGI Process Manager installiert hat, kann es in de Prozessansicht ziemlich unübersichtlich werden, da jeder mit einem Pool namens www arbeitet. Deshalb werden die Pool's umbenannt. | Wenn man mehrere FastCGI Process Manager installiert hat, kann es in de Prozessansicht ziemlich unübersichtlich werden, da jeder mit einem Pool namens www arbeitet. Deshalb werden die Pool's umbenannt. | ||
Zeile 71: | Zeile 71: | ||
| 7.2 | www-php72 | | 7.2 | www-php72 | ||
| 7.3 | www-php73 | | 7.3 | www-php73 | ||
+ | | 7.4 | www-php74 | ||
Zeile 78: | Zeile 79: | ||
sed -e ' | sed -e ' | ||
sed -e ' | sed -e ' | ||
- | sed -e ' | + | sed -e ' |
+ | sed -e ' | ||
==== Port's umbenennen ==== | ==== Port's umbenennen ==== | ||
Zeile 85: | Zeile 87: | ||
sed -e ' | sed -e ' | ||
sed -e ' | sed -e ' | ||
- | sed -e ' | + | sed -e ' |
+ | sed -e ' | ||
==== Zeitzonen einer Jeden PHP-Version umbennenen ==== | ==== Zeitzonen einer Jeden PHP-Version umbennenen ==== | ||
Zeile 92: | Zeile 95: | ||
sed -e ' | sed -e ' | ||
sed -e ' | sed -e ' | ||
- | sed -e ' | + | sed -e ' |
+ | sed -e ' | ||
==== Startverhalten ändern ==== | ==== Startverhalten ändern ==== | ||
Zeile 108: | Zeile 112: | ||
sed -e 's/pm = dynamic/;pm = dynamic\npm = ondemand/' | sed -e 's/pm = dynamic/;pm = dynamic\npm = ondemand/' | ||
sed -e 's/pm = dynamic/;pm = dynamic\npm = ondemand/' | sed -e 's/pm = dynamic/;pm = dynamic\npm = ondemand/' | ||
- | sed -e 's/pm = dynamic/;pm = dynamic\npm = ondemand/' | + | sed -e 's/pm = dynamic/;pm = dynamic\npm = ondemand/' |
+ | sed -e 's/pm = dynamic/;pm = dynamic\npm = ondemand/' | ||
==== SELinux ==== | ==== SELinux ==== | ||
Zeile 118: | Zeile 123: | ||
semanage port -a -t http_port_t -p tcp 60072 | semanage port -a -t http_port_t -p tcp 60072 | ||
semanage port -a -t http_port_t -p tcp 60073 | semanage port -a -t http_port_t -p tcp 60073 | ||
+ | semanage port -a -t http_port_t -p tcp 60074 | ||
</ | </ | ||
Zeile 128: | Zeile 134: | ||
Jetzt noch alle Prozessmanager starten und beim boot aktivieren | Jetzt noch alle Prozessmanager starten und beim boot aktivieren | ||
- | < | + | < |
- | systemctl enable php70-php-fpm.service php71-php-fpm.service php72-php-fpm.service php73-php-fpm.service</ | + | systemctl enable php70-php-fpm.service php71-php-fpm.service php72-php-fpm.service php73-php-fpm.service |
===== Benutzung ===== | ===== Benutzung ===== | ||
Zeile 160: | Zeile 166: | ||
__Lösung: | __Lösung: | ||
< | < | ||
- | ls -la /bin/php70 /bin/php71 /bin/php72 /bin/php73 | + | ls -la /bin/php?? |
lrwxrwxrwx 1 root root 32 Jan 30 14:40 /bin/php70 -> / | lrwxrwxrwx 1 root root 32 Jan 30 14:40 /bin/php70 -> / | ||
lrwxrwxrwx 1 root root 32 Jan 30 14:35 /bin/php71 -> / | lrwxrwxrwx 1 root root 32 Jan 30 14:35 /bin/php71 -> / | ||
lrwxrwxrwx 1 root root 32 Jan 30 14:36 /bin/php72 -> / | lrwxrwxrwx 1 root root 32 Jan 30 14:36 /bin/php72 -> / | ||
lrwxrwxrwx 1 root root 32 Jan 30 14:41 /bin/php73 -> / | lrwxrwxrwx 1 root root 32 Jan 30 14:41 /bin/php73 -> / | ||
+ | lrwxrwxrwx 1 root root 32 Apr 15 11:24 /bin/php74 -> / | ||
+ | |||
</ | </ | ||