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 用lstm来预测股票价格
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥170 如图所示配置eNSP
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改
  • ¥20 wireshark抓不到vlan
  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上