How to enable php7 module in apache?

前端 未结 3 1651
南旧
南旧 2020-12-23 20:19

When I try to run a2enmod php7.0 - I got message \"Considering conflict php5 for php7.0\".

After restarting apache - apache can\'t start.

How t

3条回答
  •  礼貌的吻别
    2020-12-23 21:18

    I found the solution on the following thread : https://askubuntu.com/questions/760907/upgrade-to-16-04-php7-not-working-in-browser

    Im my case not only the php wasn't working but phpmyadmin aswell i did step by step like that

    sudo apt install php libapache2-mod-php
    sudo apt install php7.0-mbstring
    sudo a2dismod mpm_event
    sudo a2enmod mpm_prefork
    service apache2 restart
    

    And then to:

    gksu gedit /etc/apache2/apache2.conf
    

    In the last line I do add Include /etc/phpmyadmin/apache.conf

    That make a deal with all problems

    Maciej

    If it solves your problem, up vote this solution in the original post.

提交回复
热议问题