How to Update PHP in Ubuntu (to any version)

  Рет қаралды 31,263

Tony Teaches Tech

Tony Teaches Tech

Күн бұрын

Пікірлер: 93
@mohamedgomaa2940
@mohamedgomaa2940 10 ай бұрын
I keep coming for that video when i have such struggle with PHP versions, thank you.
@jagan2explore
@jagan2explore 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!
@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 5 ай бұрын
thanks for your info. it helps me to understand how to change php version
@kipkoechhillary3371
@kipkoechhillary3371 Жыл бұрын
Thank you for this video. it surely saved my long time properly
@chandarayi5673
@chandarayi5673 4 ай бұрын
This is aswesome, thank youuu
@ashique12009
@ashique12009 10 ай бұрын
This is wonderful stuff 👌Thanks!
@developingitm5960
@developingitm5960 3 жыл бұрын
Greate tutorial ! thanks for helping the community
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Happy to help! Thanks :)
@navid-bakhtiary
@navid-bakhtiary Жыл бұрын
thanks tony. your tutorial helped me.
@Vikaskumar-ur5di
@Vikaskumar-ur5di 2 жыл бұрын
thanks for sharing amazing video, i am looking this type of video.
@bigpapa59460
@bigpapa59460 3 жыл бұрын
Thank you for saving me ! Great Tutorial
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome!
@uzairsaeed8477
@uzairsaeed8477 2 жыл бұрын
You are legend thanks Man !
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You're welcome!!
@bryanportillo9772
@bryanportillo9772 3 жыл бұрын
AWESOME!!!! Thanks a lot buddy.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
No problem 👍
@hgy383
@hgy383 Жыл бұрын
thank you so much, it is exactly what I am looking for.
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
You are welcome Sam!
@azmifarhan1196
@azmifarhan1196 3 жыл бұрын
thank you tony, it means a lot to me.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Sure thing :)
@robertphillips124714
@robertphillips124714 Жыл бұрын
really helpful! thank you!
@ashique12009
@ashique12009 8 ай бұрын
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!
@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?
@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
@alexintech254
@alexintech254 3 жыл бұрын
Thank you man
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
No problem
@danielkardos7583
@danielkardos7583 3 жыл бұрын
ily my guy
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
:)
@abdiag603
@abdiag603 2 жыл бұрын
Will one need to restart/reload the server for changes to take effect? just asking
@Sufivlogs8182
@Sufivlogs8182 8 ай бұрын
It's fabulous
@TonyTeachesTech
@TonyTeachesTech 8 ай бұрын
Thanks
@rockstarhub6945
@rockstarhub6945 3 жыл бұрын
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 3 жыл бұрын
I don't have any experience in this realm, but perhaps in the future this could be a topic
@auberginesoep
@auberginesoep Жыл бұрын
Bedankt
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Graag gedaan
@angelbmxg
@angelbmxg 2 жыл бұрын
Thanks bro
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Welcome
@kugwa
@kugwa 3 жыл бұрын
thank you so much
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome
@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?
@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
@irvingmontes8179
@irvingmontes8179 3 жыл бұрын
Make a video switching php versions for apache and ngnix
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Please reference the installed version directly: /usr/bin/php7.4 /usr/bin/php8.0
@razuahammad55
@razuahammad55 Жыл бұрын
Does Root access required ?
@bimbim1862
@bimbim1862 2 жыл бұрын
hello what different : a2enmod proxy_fcgi setenvif && a2enconf php8.1-fpm AND a2enmod actions fcgid alias proxy_fcgi is must run ?
@agnemedia624
@agnemedia624 3 жыл бұрын
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 3 жыл бұрын
Sorry, I don't understand your question
@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?
@RakeshAdityaMitraHirve
@RakeshAdityaMitraHirve 8 ай бұрын
i try but /opt/lampp/bin/php -v and php --version give two different verion of php
@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
@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."
@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
@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
@muhammadfikrihaiqal3778
@muhammadfikrihaiqal3778 2 жыл бұрын
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
@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
@ludy997
@ludy997 2 жыл бұрын
thx
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You're welcome
@aitrahouabdlwahd3772
@aitrahouabdlwahd3772 Жыл бұрын
Hi please how to install php 5.5.9 on ubuntu ❤
@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.
@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.
@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
@chirdent23
@chirdent23 Жыл бұрын
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 6 ай бұрын
me too. If you fixed the error, please share me. Thanks
@chirdent23
@chirdent23 6 ай бұрын
@@apu6289 Unfortunately, I did not find a solution
@Kuchzaruribaatein
@Kuchzaruribaatein 2 жыл бұрын
Sir please help me my mind is not working
@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 :(
@Luis-uq4sp
@Luis-uq4sp 3 жыл бұрын
please make a wordpress migration video. migrating to Linode.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Hi Luis, I have this video which will show you how to do just that kzbin.info/www/bejne/h4StnaCelN2Si7M
@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
@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 for Nginx with PHP-FPM on Ubuntu
10:22
Tony Teaches Tech
Рет қаралды 59 М.
Configure Multiple PHP Versions on Ubuntu
11:45
Tech Blog
Рет қаралды 10 М.
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 29 МЛН
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
PRANK😂 rate Mark’s kick 1-10 🤕
00:14
Diana Belitskay
Рет қаралды 6 МЛН
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 7 МЛН
10 Basic Ways to Secure Ubuntu from Hackers
7:34
Tony Teaches Tech
Рет қаралды 46 М.
Things To Know Before Switching To Linux
7:02
GNULectures
Рет қаралды 248 М.
How to Configure PHP (and PHP-FPM) for Apache on Ubuntu
10:29
Tony Teaches Tech
Рет қаралды 35 М.
How Linux Kernel Runs Executables
16:46
Nir Lichtman
Рет қаралды 29 М.
How to Update PHP in WordPress (for Apache and Nginx)
9:38
Tony Teaches Tech
Рет қаралды 5 М.
100+ Linux Things you Need to Know
12:23
Fireship
Рет қаралды 1,3 МЛН
Why Are Open Source Alternatives So Bad?
13:06
Eric Murphy
Рет қаралды 671 М.
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 29 МЛН