How to enable php7 module in apache?

前端 未结 3 1663
南旧
南旧 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 20:59

    First, disable the php5 module:

    a2dismod php5
    

    then, enable the php7 module:

    a2enmod php7.0
    

    Next, reload/restart the Apache service:

    service apache2 restart
    

    Update 2018-09-04

    wrt the comment, you need to specify exact installed php-7.x version.

提交回复
热议问题