This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

How to install php 5.6 on centos 6/7 working 100%:
#21
RE: How to install php 5.6 on centos 6/7 working 100%:
(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 Smile
Reply
Thanks given by: Adiba , wormsunited
#22
RE: How to install php 5.6 on centos 6/7 working 100%:
(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 Big Grin

working on 100%

Fine ... Thanks .
Reply
Thanks given by:
#23
RE: How to install php 5.6 on centos 6/7 working 100%:
(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 Smile
Reply
Thanks given by:
#24
RE: How to install php 5.6 on centos 6/7 working 100%:
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
Reply
Thanks given by:
#25
RE: How to install php 5.6 on centos 6/7 working 100%:
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.
Reply
Thanks given by:
#26
RE: How to install php 5.6 on centos 6/7 working 100%:
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
Reply
Thanks given by:
#27
RE: How to install php 5.6 on centos 6/7 working 100%:
yep you can do using webomatic. But only for php 5.6 and apply suhosin patch back.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#28
RE: How to install php 5.6 on centos 6/7 working 100%:
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
Reply
Thanks given by:
#29
RE: How to install php 5.6 on centos 6/7 working 100%:
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!?!?!?
Reply
Thanks given by:
#30
RE: How to install php 5.6 on centos 6/7 working 100%:
(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
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Opening ports after install? kevwebbie 5 1 ,025 09-28-2024, 11:10 AM
Last Post: TGates
How to install SSL certificate in clients website chgener 6 25 ,826 02-16-2021, 01:56 AM
Last Post: mlinke
Questions regarding install and config procedures nathanstotts 0 4 ,190 08-21-2018, 11:44 PM
Last Post: nathanstotts

Forum Jump:


Users browsing this thread: 1 Guest(s)