Posts: 1
Threads: 0
Joined: Aug 2016
Reputation:
0
Thanks: 2
Given 2 thank(s) in 1 post(s)
RE: How to install php 5.6 on centos 6/7 working 100%:
08-17-2016, 08:30 PM
(01-10-2015, 07:58 AM)Me.B Wrote: This method above don't work and suhosin is not loaded!
Quote:PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/module s/suhosin.so' - /usr/lib64/php/modules/suhosin.so: undefined symbol: php_checkui d in Unknown on line 0
PHP 5.6.4 (cli) (built: Dec 17 2014 16:47:40)
Copyright © 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright © 1998-2014 Zend Technologies
You will need to compile AGAIN suhosin!
To do so:
Code: cd /tmp
wget -nv -O suhosin.zip https://github.com/stefanesser/suhosin/archive/suhosin-0.9.37.zip
unzip -q suhosin.zip
rm -f suhosin.zip
cd suhosin-suhosin-0.9.37
phpize &> /dev/null
./configure &> /dev/null
make &> /dev/null
make install
cd ..
rm -rf suhosin-suhosin-0.9.37
so you will get:
Quote:PHP 5.6.4 (cli) (built: Dec 17 2014 16:47:40)
Copyright © 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright © 1998-2014 Zend Technologies
with Suhosin v0.9.37-dev, Copyright © 2007-2014, by SektionEins GmbH
Notice updating PHP to 5.6 is updating mysql to 5.5 too... and could cause later big issues when centos push updates that would conflict with remi!
I don't advice to do so!
M B
Tnks man!
Solved my problem
Posts: 3
Threads: 0
Joined: Sep 2016
Reputation:
0
Sex: Male
Thanks: 1
Given 0 thank(s) in 0 post(s)
RE: How to install php 5.6 on centos 6/7 working 100%:
09-04-2016, 09:48 PM
(12-20-2014, 08:48 PM)DimitarBG Wrote: Hi,
1: yum install epel*
2: yum update / yum upgrade
3:
Code: 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: reboot
8: php -v
working on 100%
Fine ... Thanks .
Posts: 3
Threads: 0
Joined: Sep 2016
Reputation:
0
Sex: Male
Thanks: 1
Given 0 thank(s) in 0 post(s)
RE: How to install php 5.6 on centos 6/7 working 100%:
09-10-2016, 06:32 AM
(08-17-2016, 08:30 PM)Luisfm Wrote: (01-10-2015, 07:58 AM)Me.B Wrote: This method above don't work and suhosin is not loaded!
Quote:PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/module s/suhosin.so' - /usr/lib64/php/modules/suhosin.so: undefined symbol: php_checkui d in Unknown on line 0
PHP 5.6.4 (cli) (built: Dec 17 2014 16:47:40)
Copyright © 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright © 1998-2014 Zend Technologies
You will need to compile AGAIN suhosin!
To do so:
Code: cd /tmp
wget -nv -O suhosin.zip https://github.com/stefanesser/suhosin/archive/suhosin-0.9.37.zip
unzip -q suhosin.zip
rm -f suhosin.zip
cd suhosin-suhosin-0.9.37
phpize &> /dev/null
./configure &> /dev/null
make &> /dev/null
make install
cd ..
rm -rf suhosin-suhosin-0.9.37
so you will get:
Quote:PHP 5.6.4 (cli) (built: Dec 17 2014 16:47:40)
Copyright © 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright © 1998-2014 Zend Technologies
with Suhosin v0.9.37-dev, Copyright © 2007-2014, by SektionEins GmbH
Notice updating PHP to 5.6 is updating mysql to 5.5 too... and could cause later big issues when centos push updates that would conflict with remi!
I don't advice to do so!
M B
Tnks man!
Solved my problem
Posts: 3
Threads: 0
Joined: Sep 2016
Reputation:
0
Sex: Male
Thanks: 1
Given 0 thank(s) in 0 post(s)
RE: How to install php 5.6 on centos 6/7 working 100%:
09-11-2016, 09:01 PM
(This post was last modified: 09-11-2016, 09:04 PM by Adiba.
Edit Reason: PHP Warning after version upgrade
)
For Godaddy Cloud Server:
If you get this Warning after php version upgrade...
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/module s/suhosin.so' - /usr/lib64/php/modules/suhosin.so: undefined symbol: php_checkui d in Unknown on line 0
Solve this problem using following Command:
cd /tmp
wget -nv -O suhosin.zip https://github.com/stefanesser/suhosin/a...0.9.37.zip
unzip -q suhosin-0.9.37.zip
rm -f suhosin.zip
cd suhosin-suhosin-0.9.3
phpize &> /dev/null
./configure &> /dev/null
make &> /dev/null
make install
cd ..
rm -rf suhosin-suhosin-0.9.37
Check Php Version : php -v
Output:
PHP 5.6.4 (cli) (built: Dec 17 2014 16:47:40)
Copyright 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright 1998-2014 Zend Technologies
with Suhosin v0.9.37-dev, Copyright 2007-2014, by SektionEins GmbH
Posts: 1
Threads: 0
Joined: Dec 2016
Reputation:
0
Thanks: 0
Given 0 thank(s) in 0 post(s)
RE: How to install php 5.6 on centos 6/7 working 100%:
12-28-2016, 03:47 PM
I tried every method to install php 5.6 but it’s not working. Can someone tell me what the reason is and how to install php 5.6 properly? Please share the step by step instructions.
Posts: 5
Threads: 0
Joined: Sep 2017
Reputation:
0
Sex: Male
Thanks: 0
Given 0 thank(s) in 0 post(s)
RE: How to install php 5.6 on centos 6/7 working 100%:
09-28-2017, 01:55 PM
Can anyone tell me, is it safe to upgrade PHP 5.6.
I am using
Sentora - v1.0.3
OS - CentOs v7
PHP - 5.4.16
MySql - 5.5.56-MariaDB
Posts: 4 ,004
Threads: 193
Joined: Jul 2014
Reputation:
83
Sex: Undisclosed
Thanks: 73
Given 435 thank(s) in 395 post(s)
RE: How to install php 5.6 on centos 6/7 working 100%:
11-20-2017, 07:35 PM
yep you can do using webomatic. But only for php 5.6 and apply suhosin patch back.
M B
Posts: 38
Threads: 3
Joined: Feb 2018
Reputation:
0
Sex: Male
Thanks: 0
Given 3 thank(s) in 3 post(s)
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:
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
NOTE: In my case this step was unnecessary
Restart apache web service
Code: # systemctl restart httpd
Posts: 81
Threads: 16
Joined: Apr 2015
Reputation:
0
Sex: Undisclosed
Thanks: 4
Given 9 thank(s) in 7 post(s)
RE: How to install php 5.6 on centos 6/7 working 100%:
04-21-2019, 06:46 AM
Wondering if someone can help me understand how to confirm that Suhosin is still running?
I have Ubuntu 14.04 and previously had PHP 5.5.9. I needed to upgrade to 5.6. Therefore I ran these commands:
add-apt-repository ppa:ondrej/php
add-apt-repository ppa:ondrej/apache2
apt-get update
apt-get autoremove
apt-get install php5.6 libapache2-mod-php5.6 php5.6-curl php5.6-gd php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-xmlrpc php5.6-zip
a2dismod php5
a2enmod php5.6
service apache2 restart
Appears to have worked, PHP is upgrade. When I run: php -v
I get this:
PHP 5.6.40-6+ubuntu14.04.1+deb.sury.org+3 (cli)
Copyright © 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright © 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright © 1999-2016, by Zend Technologies
I'm not getting any form of an error (which the Sentora support person posted earlier in this thread). So what does this mean? Do I still need to recompile suhosin or am I good to go? If it's so important, how can I check, if it's running? I look in the Sentora Portal and couldn't find Suhosin listed anywhere, with a status or something. I would assume if it's critical, it should have the status, or inform me if it's not running, right!?!?!?
Posts: 208
Threads: 4
Joined: Jun 2018
Reputation:
8
Sex: Male
Thanks: 0
Given 37 thank(s) in 33 post(s)
RE: How to install php 5.6 on centos 6/7 working 100%:
04-21-2019, 07:44 AM
(04-21-2019, 06:46 AM)americanninja Wrote: Wondering if someone can help me understand how to confirm that Suhosin is still running?
I have Ubuntu 14.04 and previously had PHP 5.5.9. I needed to upgrade to 5.6. Therefore I ran these commands:
add-apt-repository ppa:ondrej/php
add-apt-repository ppa:ondrej/apache2
apt-get update
apt-get autoremove
apt-get install php5.6 libapache2-mod-php5.6 php5.6-curl php5.6-gd php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-xmlrpc php5.6-zip
a2dismod php5
a2enmod php5.6
service apache2 restart
Appears to have worked, PHP is upgrade. When I run: php -v
I get this:
PHP 5.6.40-6+ubuntu14.04.1+deb.sury.org+3 (cli)
Copyright © 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright © 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright © 1999-2016, by Zend Technologies
I'm not getting any form of an error (which the Sentora support person posted earlier in this thread). So what does this mean? Do I still need to recompile suhosin or am I good to go? If it's so important, how can I check, if it's running? I look in the Sentora Portal and couldn't find Suhosin listed anywhere, with a status or something. I would assume if it's critical, it should have the status, or inform me if it's not running, right!?!?!?
I'm pretty certain that Suhosin is no longer running in your setup. Confirm it by loading up the Sentora phpinfo page (the full version) and search for "suhosin" to see if it is listed anywhere.
Usually you would need to recompile suhosin into the upgraded version of PHP.
Did you definitely read all of the posts in this thread?
You won't see a suhosin "alert" in Sentora as such, you have to go looking for it to check if it is still running as part of PHP or not.
Keith
|