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.

Upgrade to php5.6+ on ubuntu
#1
Upgrade to php5.6+ on ubuntu
Hi,
I have sentora running on ubuntu, but some of the products I use need at least php 5.6, has anybody found a way to upgrade yet?

Thanks!
Reply
Thanks given by:
#2
RE: Upgrade to php5.6+ on ubuntu
Anyone have an idea? I've tried with some other PPA's, but when I try to apt-get install php5.6 - the package can't be found.
Reply
Thanks given by:
#3
RE: Upgrade to php5.6+ on ubuntu
stop apache2
service apache2 stop

add-apt-repository ppa:ondrej/php
apt update
apt-get autoremove
apt install php5.6-dev 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 php7.0
a2enmod php5.6
systemctl restart apache2

and to add suhosin

service apache2 stop

https://suhosin.org/stories/install.html

YOU MUSR HAVE A -DEV VERSION OF PHP INSTALLED SO IT ADDS BUILD JSON AND PSPIZE FILES NEEDED FOR USING PHPISE COMMAND

cd /tmp
wget https://download.suhosin.org/suhosin-0.9.38.tar.gz
tar -xzf suhosin-0.9.38.tar.gz
rm -f suhosin-0.9.38.tar.gz
cd suhosin-0.9.38
phpize -v
tells you that php api version it is going to run

make sure it matches the number in yours

/usr/include/php
/usr/lib/php

phpize
./configure
make
cd ..
rm -rf suhosin-0.9.38

add extension=suhosin.so to php.ini
cd /etc/php/apache2
nano php.ini

service apache2 restart

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.5.0, Copyright © 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright © 1999-2014, by Zend Technologies
with Suhosin v0.9.37.1, Copyright © 2007-2014, by SektionEins GmbH
Reply
Thanks given by: chipyzs
#4
RE: Upgrade to php5.6+ on ubuntu
(12-26-2017, 06:41 AM)Richardkl Wrote: stop apache2
service  apache2 stop

add-apt-repository ppa:ondrej/php
apt update
apt-get autoremove
apt install php5.6-dev 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 php7.0
a2enmod php5.6
systemctl restart apache2

and to add suhosin

service  apache2 stop

https://suhosin.org/stories/install.html

YOU MUSR HAVE A -DEV VERSION OF PHP INSTALLED SO IT ADDS BUILD JSON AND PSPIZE FILES NEEDED FOR USING PHPISE COMMAND

cd /tmp
wget https://download.suhosin.org/suhosin-0.9.38.tar.gz
tar -xzf suhosin-0.9.38.tar.gz
rm -f suhosin-0.9.38.tar.gz
cd suhosin-0.9.38
phpize -v
tells you that php api version it is going to run

make sure it matches the number in yours

/usr/include/php
/usr/lib/php

phpize
./configure
make
cd ..
rm -rf suhosin-0.9.38

add extension=suhosin.so to php.ini
cd /etc/php/apache2
nano php.ini

service  apache2 restart

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.5.0, Copyright © 1998-2014 Zend Technologies
   with Zend OPcache v7.0.3, Copyright © 1999-2014, by Zend Technologies
   with Suhosin v0.9.37.1, Copyright © 2007-2014, by SektionEins GmbH

Thanks, I got this working by upgrading my ubuntu version from 12.04 to 14.04
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
OS - Ubuntu 18.04 or Centos 8 Qrash 1 4 ,603 01-18-2021, 07:48 PM
Last Post: Jettaman
Ubuntu 18.04 vaxition 1 4 ,100 08-06-2020, 11:03 AM
Last Post: Jettaman
Php5.6 on ubuntu possible? lorenaustin 0 2 ,214 06-11-2020, 01:01 AM
Last Post: lorenaustin

Forum Jump:


Users browsing this thread: 1 Guest(s)