Including several PHP versions in Apache, switchable via AddHandler directive

淺唱寂寞╮ 提交于 2019-12-06 11:43:47

According to the resource I've found after researching on this topic, it is as you already thought a (Fast) CGI wrapper which allows you to change the PHP version used via e.g. .htaccess .

How to achieve this is explained thoroughly here: http://linuxplayer.org/2011/05/intall-multiple-version-of-php-on-one-server .

In case the site is not reachable, here I'm going to list the steps:

  1. Install required dev packages
  2. Compile and install
  3. Create a fastcgi wrapper script
    • Build and install e.g. php-5.3 with fpm enabled
    • Configure php-fpm
    • Start fpm
    • Install and setup mod_fastcgi, mod_fcgid
  4. Update the Apache config file
  5. Restart Apache
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!