![]() |
|
How to install php 5.6 on centos 6/7 working 100%: - Printable Version +- Sentora Support Forums (https://senforums.mach-hosting.com) +-- Forum: General Forums - (Non-Sentora Support) (https://senforums.mach-hosting.com/forumdisplay.php?fid=1) +--- Forum: General Discussions (Non-Support Related) (https://senforums.mach-hosting.com/forumdisplay.php?fid=2) +--- Thread: How to install php 5.6 on centos 6/7 working 100%: (/showthread.php?tid=780) |
RE: How to install php 5.6 on centos 6/7 working 100%: - Luisfm - 08-17-2016 (01-10-2015, 07:58 AM)Me.B Wrote: This method above don't work and suhosin is not loaded! Tnks man! Solved my problem
RE: How to install php 5.6 on centos 6/7 working 100%: - Adiba - 09-04-2016 (12-20-2014, 08:48 PM)DimitarBG Wrote: Hi, Fine ... Thanks . RE: How to install php 5.6 on centos 6/7 working 100%: - Adiba - 09-10-2016 (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! RE: How to install php 5.6 on centos 6/7 working 100%: - Adiba - 09-11-2016 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/archive/suhosin-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 RE: How to install php 5.6 on centos 6/7 working 100%: - robertpattinson - 12-28-2016 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. RE: How to install php 5.6 on centos 6/7 working 100%: - ishanjn05 - 09-28-2017 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 RE: How to install php 5.6 on centos 6/7 working 100%: - Me.B - 11-20-2017 yep you can do using webomatic. But only for php 5.6 and apply suhosin patch back. M B RE: How to install php 5.6 on centos 6/7 working 100%: - republicus - 10-31-2018 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 installIf this were a fresh install, or if Suhosin is reporting a different version, execute: Code: echo 'extension=suhosin.so' > /etc/php.d/suhosin.iniRestart apache web service Code: # systemctl restart httpdRE: How to install php 5.6 on centos 6/7 working 100%: - americanninja - 04-21-2019 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!?!?!? RE: How to install php 5.6 on centos 6/7 working 100%: - fearworks - 04-21-2019 (04-21-2019, 06:46 AM)americanninja Wrote: Wondering if someone can help me understand how to confirm that Suhosin is still running? 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 |