RE: How to install php 5.6 on centos 6/7 working 100%:
10-31-2018, 12:51 AM
(This post was last modified: 11-18-2018, 06:28 AM by republicus.)
I was able to upgrade PHP to 5.6 using the instructions provided. However, it may be my CentOS 7 server, I had no joy compiling Suhosin using the provided instructions.
I received this error at this point:
What I did was install the latest stable version of Suhosin for PHP 5.6, which is currently at v. 0.9.38.
Check the latest version to download https://suhosin.org/stories/download.html
The steps i took which succeeded:
If this were a fresh install, or if Suhosin is reporting a different version, execute:
NOTE: In my case this step was unnecessary
Restart apache web service
I received this error at this point:
Code:
# make install
make: *** No rule to make target `install'. Stop.
What I did was install the latest stable version of Suhosin for PHP 5.6, which is currently at v. 0.9.38.
Check the latest version to download https://suhosin.org/stories/download.html
The steps i took which succeeded:
Code:
# wget https://download.suhosin.org/suhosin-0.9.38.tar.gz
# tar -xvf suhosin-0.9.38.tgz
# cd suhosin-0.9.38
# phpize
# ./configure
# make
# make install
If this were a fresh install, or if Suhosin is reporting a different version, execute:
Code:
echo 'extension=suhosin.so' > /etc/php.d/suhosin.ini
Restart apache web service
Code:
# systemctl restart httpd