How to Update PHP in Ubuntu (to any version)

  Рет қаралды 32,061

Tony Teaches Tech

Tony Teaches Tech

Күн бұрын

Пікірлер: 93
@mohamedgomaa2940
@mohamedgomaa2940 Жыл бұрын
I keep coming for that video when i have such struggle with PHP versions, thank you.
@jagankrishn
@jagankrishn 3 жыл бұрын
Thank you for the tutorial. I have to rewind several times to follow. But gets my job done.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Good to hear!
@BarryBarida
@BarryBarida Ай бұрын
clear and direct, you did a job on this one
@auberginesoep
@auberginesoep Жыл бұрын
Bedankt
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Graag gedaan
@PumpkinSpicePretzels
@PumpkinSpicePretzels 2 жыл бұрын
Yay I can hear you loud and clear with no thick accent in a dungeon.
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Very good :)
@fajarsetiawansiagian
@fajarsetiawansiagian 8 ай бұрын
thanks for your info. it helps me to understand how to change php version
@Vikaskumar-ur5di
@Vikaskumar-ur5di 2 жыл бұрын
thanks for sharing amazing video, i am looking this type of video.
@kipkoechhillary3371
@kipkoechhillary3371 Жыл бұрын
Thank you for this video. it surely saved my long time properly
@navid-bakhtiary
@navid-bakhtiary Жыл бұрын
thanks tony. your tutorial helped me.
@developingitm5960
@developingitm5960 3 жыл бұрын
Greate tutorial ! thanks for helping the community
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Happy to help! Thanks :)
@bigpapa59460
@bigpapa59460 3 жыл бұрын
Thank you for saving me ! Great Tutorial
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome!
@ashique12009
@ashique12009 Жыл бұрын
This is wonderful stuff 👌Thanks!
@chandarayi5673
@chandarayi5673 7 ай бұрын
This is aswesome, thank youuu
@bryanportillo9772
@bryanportillo9772 3 жыл бұрын
AWESOME!!!! Thanks a lot buddy.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
No problem 👍
@irvingmontes8179
@irvingmontes8179 4 жыл бұрын
Make a video switching php versions for apache and ngnix
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
Please reference the installed version directly: /usr/bin/php7.4 /usr/bin/php8.0
@uzairsaeed8477
@uzairsaeed8477 2 жыл бұрын
You are legend thanks Man !
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You're welcome!!
@azmifarhan1196
@azmifarhan1196 3 жыл бұрын
thank you tony, it means a lot to me.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Sure thing :)
@chirdent23
@chirdent23 2 жыл бұрын
Not work for me in 03:26 my output : Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package php7.3 E: Couldn't find any package by glob 'php7.3' E: Couldn't find any package by regex 'php7.3'
@apu6289
@apu6289 8 ай бұрын
me too. If you fixed the error, please share me. Thanks
@chirdent23
@chirdent23 8 ай бұрын
@@apu6289 Unfortunately, I did not find a solution
@ashique12009
@ashique12009 11 ай бұрын
This is good but could you show us something a good alternative like Laragon or Laravel Herd in Ubuntu? Where we can switch PHP version easily without going to terminal. Thanks!
@robertphillips124714
@robertphillips124714 Жыл бұрын
really helpful! thank you!
@hgy383
@hgy383 2 жыл бұрын
thank you so much, it is exactly what I am looking for.
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You are welcome Sam!
@bimbim1862
@bimbim1862 2 жыл бұрын
hello what different : a2enmod proxy_fcgi setenvif && a2enconf php8.1-fpm AND a2enmod actions fcgid alias proxy_fcgi is must run ?
@danielkardos7583
@danielkardos7583 3 жыл бұрын
ily my guy
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
:)
@pahtashow
@pahtashow 3 жыл бұрын
php --version PHP 8.0.3 (cli) (built: Mar 5 2021 07:53:56) ( NTS ) Strange my Ubuntu 18.04 can update to PHP 8.0.3. In my case what I have to do if my system can update to PHP 8.0.3 ?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Perhaps this is possible now. I would try it out to see if it works
@newblogr1260
@newblogr1260 2 жыл бұрын
Hi Tony. Love your videos. When I access my OpenLitespeed server using SSH, it tells me I can Upgrade Ubuntu To 22.04. Do you recommend doing this?
@rockstarhub6945
@rockstarhub6945 4 жыл бұрын
Sir please make a video how to add wordpress site to loadbalancer. Sir please make a video on this, I have been looking for such a video for a long time. Please make a video. How to add wordpress site to loadbalancer
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
I don't have any experience in this realm, but perhaps in the future this could be a topic
@kaykayadarsh2207
@kaykayadarsh2207 2 жыл бұрын
After successfully installing php8.0 my phpmyadmin is not working it is showing a blank page but when disabled 8.0 php and again enabled my php7.2 it again start working can you please help me out here?
@muafaa
@muafaa 2 жыл бұрын
can i install php 7.4 in Ubuntuk 18.10 now? since the repsitories you used in this video no longer suppport Ubuntu 18.10
@abdiag603
@abdiag603 2 жыл бұрын
Will one need to restart/reload the server for changes to take effect? just asking
@alexintech254
@alexintech254 3 жыл бұрын
Thank you man
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
No problem
@kooponindia6378
@kooponindia6378 3 жыл бұрын
got this error after PFP update. Your PHP installation appears to be missing the MySQL extension which is required by WordPress. :-(
@kooponindia6378
@kooponindia6378 3 жыл бұрын
*PHP
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Try this: sudo apt-get install php-mysql
@razuahammad55
@razuahammad55 Жыл бұрын
Does Root access required ?
@CarlosMarli_
@CarlosMarli_ 2 жыл бұрын
I follow this tutorial but I still get the message "PLUGIN need php 7.3 or higher , your are using 7.2.24-0ubuntu0.18.04.12."
@aitrahouabdlwahd3772
@aitrahouabdlwahd3772 Жыл бұрын
Hi please how to install php 5.5.9 on ubuntu ❤
@Kuchzaruribaatein
@Kuchzaruribaatein 2 жыл бұрын
Sir please help me.. 🙏😓 When I am typing: add-apt-respository ppa:ondrej/php It is showing cannot add ppa: ‘ppa:~ondrej/Ubuntu/php Error: ‘~ondrej’ user or team does not exist
@zackrag2135
@zackrag2135 2 жыл бұрын
thank you so much for the video my question is I installed Wordpress while I was using 7.14 version but when I switch to 8.0 my website or the Wordpress doesn't load and gives "501 bad gateway ' error so do I need to install another Wordpress for the 8.0 version? or how do I make it work
@zackrag2135
@zackrag2135 2 жыл бұрын
in other words do i need to make a new directory for my website on the 8.0 version of php
@AnkushKumar-bh1bv
@AnkushKumar-bh1bv 2 жыл бұрын
can you share php restart command, I am using php7.4.3 ver
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
systemctl restart php
@AnkushKumar-bh1bv
@AnkushKumar-bh1bv 2 жыл бұрын
@@TonyTeachesTech ok thanks.
@muhammadfikrihaiqal3778
@muhammadfikrihaiqal3778 3 жыл бұрын
Please help, sir, in php cli, the version has changed to php 8. but when I upload the project on the web server. I checked phpinfo(); the php version is still at 7.4. so when I run a php 8-based project but run on a webserver, there are a lot of errors. how do i change to the one on apache2? I've done commands like "sudo a2enmod php8.0" and "sudo a2dismod php7.4" but still in php info it still goes to 7.4 . but for the CLI it has changed to php 8
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Check out this video kzbin.info/www/bejne/rHvaZ4aOZsuXi9E
@princechandel5618
@princechandel5618 3 жыл бұрын
after follow your troubleshooting step not issue has resolved, getting error php.info showing old version, if anyone have solution let me update
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Sorry , I'm not sure why it's showing the old version
@Sufivlogs8182
@Sufivlogs8182 11 ай бұрын
It's fabulous
@TonyTeachesTech
@TonyTeachesTech 11 ай бұрын
Thanks
@agnemedia624
@agnemedia624 4 жыл бұрын
Great tutorial (what will be a Wordpress site 1 with php 7.3 and Wordpress site 2 with php.x 7.4 : and Wordpress website with php.x 5.4 - setting up and assigned php options ?) Sample; ubuntu has websites and site A need php 5.4x and site B need 7.2x others is fine with 7.4x
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
Sorry, I don't understand your question
@arunkumar-cs1kd
@arunkumar-cs1kd 3 жыл бұрын
I need exactly same tutorial for aws linux 2, any resource or guidance please.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Sorry, I'm not familiar with AWS right now
@Vikaskumar-ur5di
@Vikaskumar-ur5di 2 жыл бұрын
@@TonyTeachesTech I have try aws ec2 machine its working fine
@kugwa
@kugwa 3 жыл бұрын
thank you so much
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome
@bhavinkarthiya5421
@bhavinkarthiya5421 3 жыл бұрын
How I set php 7.0 in google cloud??
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
This video will show you
@bhavinkarthiya5421
@bhavinkarthiya5421 3 жыл бұрын
@@TonyTeachesTech but i use centos
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
@@bhavinkarthiya5421 Oh I'm sorry idk
@bhavinkarthiya5421
@bhavinkarthiya5421 3 жыл бұрын
@@TonyTeachesTech you help me suggest video??
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
@@bhavinkarthiya5421 Sorry i don't know :(
@angelbmxg
@angelbmxg 2 жыл бұрын
Thanks bro
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Welcome
@vectorv750
@vectorv750 2 жыл бұрын
Hi everyone I would like to ask for some advice from this community of web developers about the problem that I am facing right now as I am personally an IT person. I hired a web developer to develop an e-commerce website for me. Yesterday I came to know that the PHP version that was used to creat the website was very old, it’s PHP 5.6. A friend of mine who a understand a thing or two about the web development, said that this web developer had you, in an ugly way thoroughly. What he meant is that the version is to old. And it’s practically useless. He said it’s impossible to upgrade it or do anything about it. He said the web developer sold me a useless website. If it’s not a problem for you guys, could you please enlighten me as how bad is my situation here, and if my friend is right. Because, though my friend understanding something about web developing but he is not a professional.
@Luis-uq4sp
@Luis-uq4sp 4 жыл бұрын
please make a wordpress migration video. migrating to Linode.
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
Hi Luis, I have this video which will show you how to do just that kzbin.info/www/bejne/h4StnaCelN2Si7M
@Kuchzaruribaatein
@Kuchzaruribaatein 2 жыл бұрын
Sir please help me my mind is not working
@Jseee
@Jseee 3 жыл бұрын
I've just done this for a client's site and it's still showing the outdated PHP version in the WP dashboard. Does this usually take time to propagate or should this be instant?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
It should be instant. Perhaps restarting your web server
@frjgg1
@frjgg1 3 жыл бұрын
Congratulations on the video, I had a question, I have updated the php version in ubuntu 16.04, the problem is that since I update it when I try to enter roundcube the screen to login appears, but when I try to enter it shows a blank screen with error 500. Could it be that I am missing something more than install? i have apache server. Well congratulations again for the channel! and sorry for my english.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Error 500 is an internal server error. This could be a number of different problems. Have you already looked at the logs and determined that this is indeed a PHP error?
@ludy997
@ludy997 2 жыл бұрын
thx
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You're welcome
@10vingers
@10vingers 2 жыл бұрын
So It's not an update, pfff.
@olekristianmller-hansen4220
@olekristianmller-hansen4220 2 жыл бұрын
Hi! When I enter the command "app-apt-repository ppa:ondrej/php", I get the following output: Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File "/usr/lib/python3.7/threading.py", line 865, in run self._target(*self._args, **self._kwargs) File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 688, in addkey_func func(**kwargs) File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 386, in add_key return apsk.add_ppa_signing_key() File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 252, in add_ppa_signing_key tmp_keyring, tmp_secret_keyring, signing_key_fingerprint, tmp_keyring_dir): File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 181, in _recv_key "--recv", signing_key_fingerprint, File "/usr/lib/python3.7/subprocess.py", line 323, in call with Popen(*popenargs, **kwargs) as p: File "/usr/lib/python3.7/subprocess.py", line 775, in __init__ restore_signals, start_new_session) File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'gpg': 'gpg' I have done some research, and almost all articles on the internet suggests that I add the US locale, however this is the only locale I ever had. I'm running Debian 10.12, nGinX 1.14.2 and PHP v7.3.31. I am completely lost and I have no clue what to do. Any help would be greatly appreciated.
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Hmm I haven't seen that error before. Try one of these solutions www.google.com/search?q=%22No+such+file+or+directory+gpg
How to Configure PHP (and PHP-FPM) for Apache on Ubuntu
10:29
Tony Teaches Tech
Рет қаралды 36 М.
Apache Server | Setup Virtual Host on Ubuntu Server 20.04
22:22
KeepItTechie
Рет қаралды 54 М.
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 400 М.
TailsOS Guide For The Ultra Paranoid
35:32
Mental Outlaw
Рет қаралды 473 М.
How to Configure PHP for Nginx with PHP-FPM on Ubuntu
10:22
Tony Teaches Tech
Рет қаралды 60 М.
How to Make Your Own VPN (And Why You Would Want to)
25:54
Wolfgang's Channel
Рет қаралды 2,3 МЛН
Apache Virtual Hosts
40:20
Nerd on the Street
Рет қаралды 107 М.
Problems You will Encounter on Linux (and How to Solve Them)
23:01
Rob Braxman Tech
Рет қаралды 189 М.
I REPLACED WINDOWS 11 WITH ARCH LINUX
10:04
AlenV
Рет қаралды 106 М.
How to Host Multiple WordPress Websites on One Server with Apache
12:08
Tony Teaches Tech
Рет қаралды 28 М.
How To Setup WordPress on an Nginx LEMP Server
11:51
Tony Teaches Tech
Рет қаралды 35 М.