Upgrade php and httpd(apache) on CentOS 7

1. for latest php

from https://rpms.remirepo.net/

$ wget https://rpms.remirepo.net/enterprise/remi-release-7.rpm

$ sudo  rpm -ivh remi-release-7.rpm

$ sudo yum -y --enablerepo='remi-php74' --enablerepo='remi'  install php-7.4.29


 

 


 




2. for latest httpd

from https://repo.codeit.guru/

$ wget https://repo.codeit.guru/codeit-repo-release.el7.rpm

$ sudo rpm -ivh codeit-repo-release.el7.rpm

$ sudo yum -y install httpd-2.4.53








3. If error message occurred on httpd-2.4.53 + php 5.4.X (Invalid command php...)



modify /etc/httpd/conf.modules.d/00-mpm.conf



disable mpm_event with #(sharp) and enable mpm_prefork with unsharp











references

https://rpms.remirepo.net/

https://repo.codeit.guru/

https://repo.codeit.guru/packages/centos/7/x86_64/ 

https://repo.ius.io/

https://tw.arip-photo.org/320126-error-start-apache-php-value-MDGNGZ

https://www.datadoghq.com/blog/monitoring-apache-web-server-performance/#prefork-mpm

#Cyber Security

 

 

這個網誌中的熱門文章

取消Excel與word網際網路與網路路徑超連結自動格式