Install php5.6 on ubuntu

apt install python-software-properties
add-apt-repository ppa:ondrej/php
apt update
apt install php5.6
apt install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php-imagick php-ssh2 php-memcached php-memcache

Apache2

a2dismod php7.2
a2enmod php5.6
service apache2 restart

Cli

update-alternatives --set php /usr/bin/php5.6

Public ip address in to lxc

lxc network set lxdbr0 ipv4.routes 94.130.21.165/32

Теперь можно добавить ip в контейнер

lxc exec c1 -- ip -4 addr add dev eth0 94.130.21.165/32 

Постоянное поднятие адреса

cat <<EOF > /etc/network/interfaces.d/50-cloud-init.cfg 
auto eth0
iface eth0 inet static
    address 94.130.21.165
    netmask 255.255.255.0
    gateway 10.10.10.1

    pre-up ip -4 link set dev eth0 up
    pre-up ip -4 route add dev eth0 10.10.10.1/32
EOF