How to Install an Apache LAMP Server on Ubuntu 20.04 (in 5 minutes)

  Рет қаралды 77,551

Tony Teaches Tech

Tony Teaches Tech

Күн бұрын

Learn how to install a LAMP server on the latest stable version of Ubuntu 20.04 using the apt-get command to install Apache, PHP, and MySQL.
LAMP server hosting from $5/mo 👉 ttt.do/Digital... ($200 free credits with my affiliate link)
Find more at tonyteaches.tech
Check out my vlog channel ‪@TonyFlorida‬
#lamp #ubuntu #apache

Пікірлер: 126
@tritonus1008
@tritonus1008 3 жыл бұрын
Great, thanks! Just a little tip for a better usability of your videos: When I hit stop to write a code into my own command line, the KZbin Play/Next/Volume buttons are on top of your active command line so I cant see the line anymore. Maybe you can add a little extra space in the video editing next time. :)
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Thanks for advising me on that!
@ramsestatl5095
@ramsestatl5095 3 жыл бұрын
Ok. İnstalled LAMP Server ? LAM server :) Where is this "P" Phpmyadmin :) Thanks bro. Good Job.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome ☺️
@mohammadelnayef
@mohammadelnayef 3 жыл бұрын
Linux, Apache Mysql PHP , not phpmyadmin
@anthonyodama2927
@anthonyodama2927 2 жыл бұрын
Hey Tony, I followed your instructions, when it came to creating mysql password, I get the following error. FAILED! ERROR: SET PASSWORD has no significance for user 'root'@'localhost' as authentication method used doesn't store authentication data in the MYSQL server. Please consider using ALTER USER instead if you want to change authentication parameters. - any ideas?
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
I have never seen that error before. I unfortunately don't have any ideas on that
@stonechild4713
@stonechild4713 2 жыл бұрын
Wow ok
@sabeehazam9273
@sabeehazam9273 Жыл бұрын
Did you figure anything out yet?? Cause I'm having the same problem.
@killingspreeinfinitenightl552
@killingspreeinfinitenightl552 8 ай бұрын
ls - List Files Command: ls [options] [directory] Explanation: Lists files and directories in the specified directory. Common options include -l (long format) and -a (show hidden files). cd - Change Directory Command: cd [directory] Explanation: Changes the current working directory to the specified directory. pwd - Print Working Directory Command: pwd Explanation: Displays the current working directory's full path. cp - Copy Command: cp [source] [destination] Explanation: Copies files or directories from the source to the destination. mv - Move/Rename Command: mv [source] [destination] Explanation: Moves files or directories from the source to the destination. Can also be used for renaming. rm - Remove/Delete Command: rm [options] [file] Explanation: Removes or deletes files. Be cautious, as this action is irreversible. Common options include -r (recursively remove directories) and -f (force). mkdir - Make Directory Command: mkdir [directory] Explanation: Creates a new directory with the specified name. rmdir - Remove Directory Command: rmdir [directory] Explanation: Removes an empty directory. touch - Create Empty File Command: touch [filename] Explanation: Creates an empty file with the specified name. nano/vi/vim - Text Editors Command: nano [filename], vi [filename], vim [filename] Explanation: Opens the specified file in a text editor. nano is a simple text editor, while vi and vim are more advanced with various modes and commands. cat - Concatenate and Display Command: cat [file] Explanation: Displays the contents of a file. Can also be used to concatenate and display multiple files. grep - Search Text Command: grep [pattern] [file] Explanation: Searches for a specified pattern in a file. Useful for text processing and searching. chmod - Change File Permissions Command: chmod [permissions] [file] Explanation: Changes the permissions of a file. Permissions include read (r), write (w), and execute (x) for the owner, group, and others. chown - Change Owner Command: chown [new_owner:new_group] [file] Explanation: Changes the owner of a file. ps - Process Status Command: ps [options] Explanation: Displays information about running processes. Common options include -e (all processes) and -aux (detailed information). kill - Terminate a Process Command: kill [process_id] Explanation: Sends a signal to terminate a specified process.
@dev_manish
@dev_manish 4 жыл бұрын
Hi Tony, There is no proper guide or video all over the internet about ** Staging a WordPress website ** hosted on VPS such as Digital Ocean, Linode, etc. Can you please make a video about how to do that and then push those changes made on the Staging website to the Live Website that would be very helpful and will definitely get tonnes of views.
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
Great topic. I will add it to my list of videos to make :)
@dev_manish
@dev_manish 4 жыл бұрын
@@TonyTeachesTech would be waiting fo this video.
@DavidSusen
@DavidSusen 3 жыл бұрын
Thank you - The fastest install I've ever done! I'll be looking over your other videos for good instruction!!!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
No problem David, happy to help
@Tushar-RA-G
@Tushar-RA-G 3 жыл бұрын
This saved my day. Thanks a lot Tony!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome!
@martinkaspar5095
@martinkaspar5095 2 жыл бұрын
howdy dear buddy - i am on MX-Linux - i wanna install the LAMP-Stack on this machine too. Any difference here !?
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Sorry I'm not familiar with MX Linux
@DeviMounikaBolli
@DeviMounikaBolli Жыл бұрын
hello Tony, I am getting an error while upgrading, it is showing the following packages have been kept back: grub-efi-amd64-bin grub-efi-amd64-signed python3-software-properties software-properties-common ubuntu-advantage-tools update-notifier-common 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. please help me with this error correction.
@pete6547
@pete6547 Жыл бұрын
Hi, i am getting timed out when I am trying to connect with my instances public ip to the webpage. I went back and checked the steps but nothing i seem to be doing is getting the web page to pop up.
@linkdorf376
@linkdorf376 Жыл бұрын
You need to port forward if you want to access website from remote locations.
@ankitsuthar526
@ankitsuthar526 Жыл бұрын
can you make a video on shopware development and all the installation required in ubuntu 22.04 ? please it will be very helpful if you do.
@satishkumarojha5377
@satishkumarojha5377 3 жыл бұрын
Tony , ur videos are just awesome🔥🔥🔥🔥🔥
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Thank you 🙏
@vashisthegde2169
@vashisthegde2169 Жыл бұрын
Hi Thanks for the video! I had a question, when you copied the IP Address, to verify if the setup was working, which IP Address is it? Is it the Public IPv4 Address? or something else?
@beaub9766
@beaub9766 Жыл бұрын
Your IPV4 should work.
@bastooopanooo2311
@bastooopanooo2311 2 жыл бұрын
No PhpAdmin :P
@dinbackupsbashiro6963
@dinbackupsbashiro6963 2 жыл бұрын
Hello Tony, I've been watching your videos lately. Thanks for the great videos. How do one start apache as a service using xampp or lamp? Do you have a video on that ? Thanks
@DanielSolomon-m9j
@DanielSolomon-m9j 3 ай бұрын
Concise and straight to the point. Great Video.
@bmkay
@bmkay Жыл бұрын
Great video. Can you post the commands in the video description?
@lechsiz1642
@lechsiz1642 3 жыл бұрын
wasn't allowed to use that, but terminal read: the following packages replace it: mariadb-server-10.0Was able to use php-mysqul, though
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Great
@farzadmehrava43
@farzadmehrava43 2 жыл бұрын
thanks ... you mentioned two more videos about wordpress and multiple hosts but I cant find them !!!
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Sorry about that. Here you go. - kzbin.info/www/bejne/oni2g3eMZ66Entk - kzbin.info/www/bejne/p17Ul3-LicyIopo
@en4626
@en4626 Жыл бұрын
Hey, great video! Question for anyone who can help: Which ip address do I use? I tried my public ipv4, but putting that in a browser takes me to a Linksys smart Wi-Fi page. Is that normal? Thanks.
@afansuperkul4307
@afansuperkul4307 2 жыл бұрын
04:34h i can't get back and continue like u do. Please tell me what do you do, and also, could you please resiye your screen so when we pause we can actually see what are you doing.
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Sorry about that. Please watch this short video to understand how to save and exit in vim kzbin.info/www/bejne/q3aXkp-gpLJ1m8k
@DevOpsPulse
@DevOpsPulse Жыл бұрын
Thank you
@lechsiz1642
@lechsiz1642 3 жыл бұрын
noob Q: if you disallowed root login for Apache, does this mean i must adduser on ssh if using ssh? I was going to add/change that later. I have a brand new headless Pi4 server and Debian OS on a PC, if that affects anything.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Yeas add a user first before disabling root login
@Maherco.Gaming
@Maherco.Gaming 2 жыл бұрын
Where do I put the css and js files?
@alinaseri7951
@alinaseri7951 2 жыл бұрын
Very Well explained. Clear voice and gearte zoom in video. Thankyou so much Tony.
@satishkumarojha5377
@satishkumarojha5377 3 жыл бұрын
Suddenly I am facing a problem that I am not able to login in to my server & my website is showing that "this site can't be reached"... please help 😥😥😥
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Sounds like your server is offline. Can you confirm the status?
@panamala_hepsibha
@panamala_hepsibha Жыл бұрын
How we get phpmyadmin
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
kzbin.info/www/bejne/kJ3QeXZpp9t6iac
@EKBShorts
@EKBShorts 4 жыл бұрын
Super tutorial bro, i am learning this also in school this period of time a this help me a lot for practice, ca you make a video also how to install wordpress there?
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
Here's a WordPress install tutorial for a LAMP server kzbin.info/www/bejne/p17Ul3-LicyIopo I'm curious where you are learning this stuff in school. Is it at college?
@EKBShorts
@EKBShorts 4 жыл бұрын
@@TonyTeachesTech Is a 1 year profesional school for It & Computer tech, we learn a lot form reparing pc, routers, windos server, linux, html css php java, and some other topics but they are not super full in detail for each topic so i have to make my research to learn more. School name is called Instituti Profesional ATC.
@EKBShorts
@EKBShorts 4 жыл бұрын
@@TonyTeachesTech And i have another quesion i am making a project at home building a webserver form an old pc, is it posible to acces webpage from other network for free or i need to buy and public ip from internet company.
@TonyTeachesTech
@TonyTeachesTech 4 жыл бұрын
@@EKBShorts sorry I missed your question here. I hope you saw my response on your other question (comment reply notifications are different than comment notification on KZbin)
@EKBShorts
@EKBShorts 4 жыл бұрын
@@TonyTeachesTech No problem bro thank you for answer
@quanglongtran03
@quanglongtran03 2 жыл бұрын
thank you so much for this video ❤❤
@shathanandsai6244
@shathanandsai6244 3 жыл бұрын
There is an issue while installing the apache2 service it is showing couldn't open the lock file and Unable to acquire the dpkg frontend lock
@bengrzybowski7671
@bengrzybowski7671 3 жыл бұрын
prepend the sudo command to the install command, that should make it run the install. I.E. "sudo apt install apache"
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Ben's advice is right
@riderofthewhitehorse
@riderofthewhitehorse 11 ай бұрын
simple and to the point
@reimusk872
@reimusk872 3 жыл бұрын
this helped me a lot. thank you for such a great tutorial
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're very welcome!
@roger2bro
@roger2bro 2 жыл бұрын
Thank you very much for this video. Have watched but not tried the specific commands yet. Question -- I notice that you're installing as the root user. Do you know if it makes a difference if you're a regular user and just use sudo on all the `apt install ...` commands instead? UPDATE: i tried it and it doesn't seem to make a difference. The reason I asked this question is because I had noticed that the user and group on the files are all root:root which makes me nervous. I had seen a coworker system admin at another company have the user:group be something like nobody:nogroup. I'll search around for something on that either way. Thanks for getting me started.
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Sure thing Roger. Thanks for the update. It's not ideal to use root, but better than nobody:nogroup
@roger2bro
@roger2bro 2 жыл бұрын
Thanks. I did some more searching and everybody so far said to avoid both "root" and "nobody". Found some discussions like at stackoverflow and Ubuntu docs saying to run it as www-data with no other user being a member of that group. So I added the user/group and ran a chown -R after doing the install to make it be www-data.
@mohammadbaharloo5507
@mohammadbaharloo5507 3 жыл бұрын
enter and type up of the page, it is too hard to watch it.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Sorry about that
@serpantinthewild
@serpantinthewild 3 жыл бұрын
how to install maria DB? is it better than Mysql?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
apt install mariadb-server
@xavieroke5369
@xavieroke5369 Жыл бұрын
Thanks😊
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Welcome 😊
@adri_an_antony
@adri_an_antony 3 жыл бұрын
How we can allow root user remote login after installation?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
This is allowed by default
@fissko1
@fissko1 3 жыл бұрын
You actually changed a HTML code.. :)
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Yes indeed
@haitthamabuzahra2293
@haitthamabuzahra2293 3 жыл бұрын
hey im stuck with the html part and i can't figure out how to save my html file
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
For a quick vim primer, see this video kzbin.info/www/bejne/q3aXkp-gpLJ1m8k
@haitthamabuzahra2293
@haitthamabuzahra2293 3 жыл бұрын
@@TonyTeachesTech thank you so much you saved my day :)
@_bharatbk_
@_bharatbk_ 3 жыл бұрын
where to get that ip address ??
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
The IP address is the IP address of your server. If you don't have access to a server, you can create a virtual server. Check out the link to Digital Ocean in the description.
@_bharatbk_
@_bharatbk_ 3 жыл бұрын
​@@TonyTeachesTech is their any other way other than this
@kendjinone830
@kendjinone830 3 жыл бұрын
no else you need to work on localhost which is the virtual network
@_bharatbk_
@_bharatbk_ 3 жыл бұрын
@@kendjinone830 when i open local host it says 'page not found'
@kendjinone830
@kendjinone830 3 жыл бұрын
@@_bharatbk_ you needs to start apache idk how it works on linux though but it's very easy to do on windows
@padamrajrijal2723
@padamrajrijal2723 2 жыл бұрын
ty
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
yw
@arnoldganados
@arnoldganados 2 жыл бұрын
Thanks nice great tutorial
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Thanks!
@sydneydrewid
@sydneydrewid 3 жыл бұрын
thanks for the quick version.. much appreciated
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Sure thing Dennis
@oleksiidobai7119
@oleksiidobai7119 3 жыл бұрын
sudo apt-get install tasksel ?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
What's that?
@melvinjacob
@melvinjacob 3 жыл бұрын
apache keeps failing on mine for some reason
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
What is the error you get?
@kostyashoomsky4201
@kostyashoomsky4201 3 жыл бұрын
This video was super helpful! Thanks!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Glad it was helpful!
@sahithisahi1486
@sahithisahi1486 3 жыл бұрын
Basically what is lamp?? Is that a server, that is used for web applications?? Or else lamp is leatest version of Apache php mysql??
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Yes! LAMP is a software configuration for web applications. It's simply a buzzword to describe installing Linux (Ubuntu in this case), Apache, MySQL (or MariaDB), and PHP on a single server.
@sahithisahi1486
@sahithisahi1486 3 жыл бұрын
@@TonyTeachesTech lamp runs on which OS?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
@@sahithisahi1486 Any "Linux" OS that's capable of installing Apache, MySQL, and PHP. This could be Ubuntu, Debian, CentOS, Fedora, etc.
@sahithisahi1486
@sahithisahi1486 3 жыл бұрын
@@TonyTeachesTech OK thank you Tomorrow I am having seminar on this topic could you please suggest any PPT?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
@@sahithisahi1486 What is a PPT?
@offgridhomesteaders863
@offgridhomesteaders863 3 жыл бұрын
how do i get out of the screen at 4:33???? help!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Sorry for not making that clear. You must hit the Esc key and then type :wp followed by Enter. This video will go over the basics of vim for you kzbin.info/www/bejne/q3aXkp-gpLJ1m8k
@offgridhomesteaders863
@offgridhomesteaders863 3 жыл бұрын
@@TonyTeachesTech Thank you so much!!
@brianhansen8876
@brianhansen8876 3 жыл бұрын
Great video, Tony - thanx!!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome Brian
@rustilldawn9608
@rustilldawn9608 Жыл бұрын
great video !
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Thanks
@bengrzybowski7671
@bengrzybowski7671 3 жыл бұрын
soooo helpful. thank you!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Glad it was helpful!
@raptorubuntu2294
@raptorubuntu2294 3 жыл бұрын
nice explanation
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Thanks !
@LeMystere
@LeMystere 3 жыл бұрын
Very good 👍👍👍👍👍👍
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Thank you! Cheers!
@feliuorol6966
@feliuorol6966 3 жыл бұрын
thank you Tony
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome
@igormatheus1095
@igormatheus1095 2 жыл бұрын
muito bom o tutorial.
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
:)
@youcefakeb160
@youcefakeb160 3 жыл бұрын
Yo Tony brother, Please specify on the title that the latter is for beginners. Thank you for the video.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome :)
How To Setup WordPress on an Apache LAMP Server
11:47
Tony Teaches Tech
Рет қаралды 35 М.
10 Tips for Hardening your Linux Servers
22:48
Learn Linux TV
Рет қаралды 67 М.
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 23 МЛН
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 78 МЛН
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 24 МЛН
Install and Configure Apache on Ubuntu Server | Set Up Virtual Host
31:46
Install LAMP Stack (Linux, Apache, MySQL, PHP) in Ubuntu 15.10
9:34
Traversy Media
Рет қаралды 187 М.
10 ways Linux is just better!
11:32
Linus Tech Tips
Рет қаралды 4 МЛН
Using docker in unusual ways
12:58
Dreams of Code
Рет қаралды 451 М.
10 Basic Ways to Secure Ubuntu from Hackers
7:34
Tony Teaches Tech
Рет қаралды 44 М.
18 Weird and Wonderful ways I use Docker
26:18
NetworkChuck
Рет қаралды 216 М.
Web Development Setup on Linux Ubuntu 20.04 (Focal Fossa)
18:16
The Codeholic
Рет қаралды 93 М.
How to Run an Ubuntu Server VM with VirtualBox (and login via SSH)
9:55
Tony Teaches Tech
Рет қаралды 60 М.
The NGINX Crash Course
50:53
Laith Academy
Рет қаралды 490 М.
Users, Groups and Permissions in Linux
37:00
Eli the Computer Guy
Рет қаралды 544 М.
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 23 МЛН