0:00
Recently PHP 8.0 has been released and in this guide I'm going to show you how to install
0:09
PHP 8 on Ubuntu, Debian or any of their derivatives. So let's get started
0:19
In order to install the PHP 8 we need to add a repository in the system
0:23
The default repositories do not have PHP 8 as it was recently released so it will take some time
0:29
But in order to install it, there is a debian developer who has been maintaining the PHP repository for really long time
0:37
And we are going to use that repository to install PHP 8 in the distribution
0:42
So first of all, make sure you have the add APT repository utility install in your system
0:47
If you do not have, then use this command to install it. After that we need to add the repository for that execute this command
1:11
Hit the enter to accept it. This should start automatically updating the packages cache in the system
1:18
In case if it did not then use the update command to do that. Now we can install PHP 8 in the system easily So let me show you the currently installed PHP version in my system
1:36
It's 7.4. If I try to hit the PHP command, it is not going to install any newer version
1:49
And if we want to install the PHP 8, then we have to specify that we want to install PHP 8
1:54
that execute this command that is pseudo APD get installed 8.0 hit enter and they
2:02
is saying that it is going to install pH 8 in the system and it is also going to
2:07
install some of the packages that are necessary to the pHp hit enter again to
2:11
accept the changes so the pHP has been installed now we can verify the
2:20
php version again as you can see the current php version now it is 8.0 and if you want to switch between different
2:30
php versions then you can update the alternatives and set the desired default
2:35
php version so this is how you can install the latest php 8.0 in your distribution
2:42
Ubuntu debion or any of their derivatives debon based distributions i hope you find this video
2:48
helpful if you did then leave it a like hit the subscribe button if you haven't and let me know what
2:53
what you think about it in the comment section below and i shall catch you in the next one till then take care and keep enjoying linux