Multiple PHP version with Apache on CentOS 7

前端 未结 6 1770
春和景丽
春和景丽 2020-12-30 08:57

Can anyone here instruct me way to install and configure Multi PhP with one apache instance on CentOS 7, and the proper way to test it..

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-30 09:19

    As explained by @runwuf, this is possible using the sofware collections available in centos-scl repository or in remi repository.

    But using SetHandler to fastcgi proxy seems a better and more modern way, thanks to httpd 2.4:

    SetHandler "proxy:fcgi://127.0.0.1:9000"
    

    This is explained in some blog posts:

    • My PHP Workstation on Remi's blog
    • PHP Configuration Tips on RH developpers' blog

提交回复
热议问题