Installation under Ubuntu 16.04 - php7 default installed & loaded

  • Hello,


    as default, php7 will be installed via apt-get, so imscp is running on php7. But how I can change (a single domain) to version 5.6.x? - I tried phpbrew, build my own php-cgi, but I have troubles to bind it to a VirtualHost. (because I think php7-fpm is here the problem)
    I tried this:
    http://askubuntu.com/questions…stalled-and-switch-easily
    So I added this to the file: /etc/apache2/imscp/mydomain.tld.conf


    Code
    1. <Directory "/var/www/virtual/mydomain.tld/htdocs" >
    2. AddHandler php-cgi .php
    3. Action php-cgi /opt/phpbrew/php/php-5.6.27/bin/php-cgi
    4. </Directory>


    Has anyone tips for me, how to get it running? - Another option would be running php5.6.x system wide (I dont prefer).


    Thank you!

  • I have no reason to buy phpswitcher for 32€ because for one site... There should be another solution...

    You're free to code your own solution !


    Thread closed.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206