doubingling4706 2017-11-03 18:19
浏览 111

在debian上使用php7.0和apache服务器

I'm running raspbian and am trying to use php7.0 with my apache web server. I have tried everything to install it to no avail, the PHP code simply doesn't run. I have php7.0 installed with

sudo apt-get install apache2 php7.0 php7.0-curl php7.0-gd php7.0-imap php7.0-json php7.0-mcrypt php7.0-mysql php7.0-opcache php7.0-xmlrpc libapache2-mod-php7.0

I have configured apache to open index.php and it does, however, the code is simply displayed in the browser and doesn't run. Can anyone help, please?

  • 写回答

1条回答 默认 最新

  • dongnuo4594 2017-11-03 19:14
    关注

    Solution was to re-install libapache2-mod-php7.0 so that apache modules configuration would be created.

    评论

报告相同问题?

悬赏问题

  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?