PHP upgrade from PHP 7.0.4 to PHP 7.0.8 Ubuntu 16.04 LTS

General Tech Bugs & Fixes 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

I have to upgrade PHP version PHP 7.0.4 to PHP 7.0.8 in order to install third party software which only supported on PHP version 7.0.6 or later.

root@A# php -v
PHP 7.0.4-7ubuntu2.1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

I have used this repository and this doesn't have any PHP version 7.0.6 or later

sudo add-apt-repository ppa:ondrej/php



    root@Anish:/tmp# apt-get update 
    Hit:1 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease                                             
    Hit:2 http://in.archive.ubuntu.com/ubuntu xenial InRelease                                                    
    Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
    Get:4 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [94.5 kB]        
    Hit:5 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease                           
    Get:6 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [244 kB]
    Get:7 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [240 kB]
    Get:8 http://in.archive.ubuntu.com/ubuntu xenial-up

dates/universe amd64 Packages [140 kB]
Get:9 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [137 kB]
Get:10 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [69.9 kB]
Fetched 1,019 kB in 22s (45.2 kB/s)                              
Reading package lists... Done
root@Anish:/tmp# php -v 
PHP 7.0.4-7ubuntu2.1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
root@Anish:/tmp# apt-cache policy php7.0
php7.0:
  Installed: 7.0.8-3+deb.sury.org~xenial+1
  Candidate: 7.0.8-3+deb.sury.org~xenial+1
  Version table:
 *** 7.0.8-3+deb.sury.org~xenial+1 500
        500 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 Packages
        500 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main i386 Packages
        100 /var/lib/dpkg/status
     7.0.4-7ubuntu2.1 500
        500 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages
     7.0.4-7ubuntu2 500
        500 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        500 http://in.archive.ubuntu.com/ubuntu xenial/main i386 Packages
root@Anish:/tmp# 



root@Anish:/tmp# /etc/alternatives/php -v
PHP 7.0.4-7ubuntu2.1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
root@Anish:/tmp# which php 
/usr/bin/php
root@Anish:/tmp# /usr/bin/php -v
PHP 7.0.4-7ubuntu2.1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
root@Anish:/tmp# 

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

tuteehub community

Join Our Community Today

Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.

tuteehub community