sentora-installers
sentora-installers copied to clipboard
ubuntu 14.04, 16.04 and 18.04 + debian 8 add support using php 5.6.37 and suhosin working
for ubuntu upgrade or use php 5.6.37 remplace old version and php 7 by php 5.6.37 apt-get update apt-get install -y python-software-properties apt-get install -y software-properties-common add-apt-repository -y ppa:ondrej/php apt-get update apt-get -y purge libapache2-mod-php5 php5-common php5-cli php5-mysql php5-gd php5-mcrypt php5-curl php-pear php5-imap php5-xmlrpc php5-xsl php5-intl apt-get -y install libapache2-mod-php php-common php-cli php-mysql php-gd php-curl php-pear php-imap php-xmlrpc php-intl php-dev apt-get -y install libapache2-mod-php5.6 php5.6-common php5.6-cli php5.6-mysql php5.6-gd php5.6-mcrypt php5.6-curl php5.6-imap php5.6-xmlrpc php5.6-xsl php5.6-intl php5.6-dev a2dismod php7.0 a2dismod php7.1 a2dismod php7.2 a2dismod php7.3 a2dismod php7.4 a2dismod php7.5 a2dismod php7.6 a2dismod php7.7 a2dismod php7.8 a2dismod php7.9 a2dismod php5.5 a2dismod php5.4 a2dismod php5.3 a2enmod php5.6 rm -rf /etc/php5 ln -s /etc/php/5.6 /etc/php5 service apache2 restart update-alternatives --set php /usr/bin/php5.6 update-alternatives --set phpize /usr/bin/phpize5.6 update-alternatives --set php-config /usr/bin/php-config5.6 php5.6enmod mcrypt
normal and actual build for suhosin
for debian upgrade or use php 5.6.37 remplace old version and php 7 by php 5.6.37
apt-get update apt-get -y install ca-certificates apt-transport-https wget -q https://packages.sury.org/php/apt.gpg -O- | apt-key add - echo "deb https://packages.sury.org/php/ jessie main" | tee /etc/apt/sources.list.d/php.list apt-get update apt-get -y purge libapache2-mod-php5 php5-common php5-cli php5-mysql php5-gd php5-mcrypt php5-curl php-pear php5-imap php5-xmlrpc php5-xsl php5-intl apt-get -y install libapache2-mod-php php-common php-cli php-mysql php-gd php-mcrypt php-curl php-pear php-imap php-xmlrpc php-xsl php-intl apt-get -y install libapache2-mod-php5.6 php5.6-common php5.6-cli php5.6-mysql php5.6-gd php5.6-mcrypt php5.6-curl php5.6-imap php5.6-xmlrpc php5.6-xsl php5.6-intl a2dismod php7.0 a2dismod php7.1 a2dismod php7.2 a2dismod php7.3 a2dismod php7.4 a2dismod php7.5 a2dismod php7.6 a2dismod php7.7 a2dismod php7.8 a2dismod php7.9 a2dismod php5.5 a2dismod php5.4 a2dismod php5.3 a2enmod php5.6 rm -rf /etc/php5 ln -s /etc/php/5.6 /etc/php5 service apache2 restart update-alternatives --set php /usr/bin/php5.6 update-alternatives --set phpize /usr/bin/phpize5.6 update-alternatives --set php-config /usr/bin/php-config5.6 php5.6enmod mcrypt
normal and actual build for suhosin