Apache2 fails after downgrade php

Discussion in 'HOWTO-Related Questions' started by greenman1, Nov 9, 2017.

  1. greenman1

    greenman1 New Member


    As the topic. I have downgrade php version from php 7.0 to php 5.6. I'm not an advanced user and apparently I messed up. I can not even turn on apache. I have debian 9 stretch with ispconfig3. How can i do?

    In syslog
    apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/mods-enabled/php.load: No such file or directory
    Can someone step by step explain me what I need to do to correctly remove php 7 and then install php 5.6?
    I will be very grateful.
    Sorry for my eng. :D

    Ps. I have another question.
    Is it possible to reinstall apache without losing data on the page?
    Last edited: Nov 9, 2017
  2. greenman1

    greenman1 New Member

    Back to php7.0 and change name files php7.0.conf and php7.0.load to php.conf and php.load in /etc/apache2/mods-available.
    I don't know why it helps but apache2 run. :)

Share This Page