duan5991518 2016-06-17 12:26
浏览 56
已采纳

启用php7和php5时apache的问题

Could you help me? My apache has php5 and php7. The problem here I only can enable one by one at the same time. Is there any ways to run both them at the point? Thank you much!

  • 写回答

1条回答 默认 最新

  • duanshan3331 2016-06-17 12:37
    关注

    there are multiple possibilities on working with multiple php interpreters. it depends on how you want to use those php interpreters. for example: you want to use php5 for webapp and php7 for the other webapp, so you can do this via vhosts: https://www.apachelounge.com/viewtopic.php?t=6615 this should help. in the vhosts you can configure, how the php files should be handled - be careful of the php environment variables that needs to be correctly set up.

    tell me how you want to use both of the versions - your use case - and i might be able to help you a bit better.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 linux驱动,linux应用,多线程
  • ¥20 我要一个分身加定位两个功能的安卓app
  • ¥15 基于FOC驱动器,如何实现卡丁车下坡无阻力的遛坡的效果
  • ¥15 IAR程序莫名变量多重定义
  • ¥15 (标签-UDP|关键词-client)
  • ¥15 关于库卡officelite无法与虚拟机通讯的问题
  • ¥15 目标检测项目无法读取视频
  • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
  • ¥100 求采集电商背景音乐的方法
  • ¥15 数学建模竞赛求指导帮助