Forked from trinvh/[Sentora] Upgrade PHP 5.6 on Centos
Created
July 21, 2018 16:07
-
-
Save Ron-e/f6294b419e3c233d2a7a3332c73fac0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From terminal: | |
1: yum install epel* | |
2: yum update / yum upgrade | |
3: Add repo source | |
- CentOS and Red Hat Enterprise Linux 6.x | |
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
sudo rpm -Uvh remi-release-6*.rpm | |
- CentOS and Red Hat Enterprise Linux 7.x | |
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm | |
sudo rpm -Uvh remi-release-7*.rpm | |
4: yum update / yum upgrade | |
5: yum --enablerepo=remi,remi-php56 update | |
6: yum --enablerepo=remi,remi-php56 upgrade | |
7: Rebuild sahosin | |
cd /tmp | |
wget -nv -O suhosin.zip https://github.com/stefanesser/suhosin/archive/suhosin-0.9.37.zip | |
unzip -q suhosin.zip | |
cd suhosin-suhosin-0.9.37 | |
phpize &> /dev/null | |
./configure &> /dev/null | |
make &> /dev/null | |
make install | |
8: reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment