multiple php on apache centos

我与影子孤独终老i 提交于 2019-12-02 20:43:55

Several notices from me:

  1. yum install php php-cli mod_fastcgi is not correct. mod_php should not be enabled. also mod_fastcgi can be installed without external repository using mod_fcgid
  2. For PHP 5.2 and libxml>=1.2.9 you have to apply this patch libxml29_compat.patch
  3. to set php version for all host without mod_php enabled add this to httpd.conf

    <Directory "/var/www">
        Options All +ExecCGI
        AddHandler php-cgi .php
        Action php-cgi /cgi-bin/php.fastcgi.5.5.18
    </Directory>
    
  4. when compiling on 64bit systems the compilation fails because of lib64 folder so you should add --with-libdir=lib64 to configoptions
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!