PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, January 5, 2022

[FIXED] Upgrade php 7.4.3 to php 7.4.8

 January 05, 2022     composer-php, laravel, php     No comments   

Issue

When I am running composer install on my laravel project it requires php v 7.4.8 but on my ubuntu system when I am installing php7.4 using sudo apt install 7.4 it's installing the version 7.4.3 instead of latest php 7.4.8

I don't want to change the configuration composer.json because as it is not my personal project

How can I upgrade php version from 7.4.3 to 7.4.8


Solution

You might need to add thirdparty repository to install latest php version if it's not available in ubuntu main repository. Run following commands to add repository and install php version:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.4.8

Replace the version in the last command if you want to install any other version of php.



Answered By - Ahsan Mahmood
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing