2021年1月10日 星期日

Multi-PHP version on the same server

Environment CentOS 8
Run Apache + PHP 8.0 + PHP 7.4 + PHP 5.6 on the same server

# Install EPEL
dnf -y install epel-release

# Install REMI repo
rpm -ivh http://rpms.remirepo.net/enterprise/remi-release-8.rpm

dnf -y install httpd httpd-devel httpd-tools mod_ssl
dnf -y module install php:remi-8.0
dnf -y install php56 php56-php-cli php56-php-common php56-php-fpm
dnf -y install php74 php74-php-cli php74-php-common php74-php-fpm
dnf -y install php74 php80-php-cli php80-php-common php80-php-fpm
systemctl enable --now php56-php-fpm.service
systemctl enable --now php74-php-fpm.service
systemctl enable --now php80-php-fpm.service

Create /etc/httpd/conf.d/vhost.conf

# Last, Restart Apache
systemctl restart httpd


沒有留言:

Certificate lifetime reduce to 47 days after 2029-03-15

在 2020年九月,憑證效期縮短為 398 天 爾後最新標準是 47 天,原因一樣是資安考量,分三個階段逐步調整 執行時間表 2026-03-15 縮短成 200 天 2027-03-15 縮短成 100 天 2029-03-15 縮短成 47 天 圖片來源 Sectigo r...