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

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024
  • 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 2 года назад +7

    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 RUclips 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. :)

  • @DavidSusen
    @DavidSusen 3 года назад +4

    Thank you - The fastest install I've ever done! I'll be looking over your other videos for good instruction!!!

  • @Tushar-RA-G
    @Tushar-RA-G 3 года назад +5

    This saved my day. Thanks a lot Tony!

  • @user-uy9vn2nn1w
    @user-uy9vn2nn1w 2 месяца назад

    Concise and straight to the point. Great Video.

  • @satishkumarojha5377
    @satishkumarojha5377 3 года назад +2

    Tony , ur videos are just awesome🔥🔥🔥🔥🔥

  • @alinaseri7951
    @alinaseri7951 2 года назад

    Very Well explained. Clear voice and gearte zoom in video. Thankyou so much Tony.

  • @reimusk872
    @reimusk872 3 года назад +1

    this helped me a lot. thank you for such a great tutorial

  • @riderofthewhitehorse
    @riderofthewhitehorse 11 месяцев назад

    simple and to the point

  • @dev_manish
    @dev_manish 3 года назад +3

    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  3 года назад +2

      Great topic. I will add it to my list of videos to make :)

    • @dev_manish
      @dev_manish 3 года назад

      @@TonyTeachesTech would be waiting fo this video.

  • @sydneydrewid
    @sydneydrewid 3 года назад

    thanks for the quick version.. much appreciated

  • @kostyashoomsky4201
    @kostyashoomsky4201 3 года назад

    This video was super helpful! Thanks!

  • @brianhansen8876
    @brianhansen8876 3 года назад

    Great video, Tony - thanx!!

  • @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

  • @rustilldawn9608
    @rustilldawn9608 Год назад

    great video !

  • @quanglongtran03
    @quanglongtran03 2 года назад

    thank you so much for this video ❤❤

  • @bengrzybowski7671
    @bengrzybowski7671 3 года назад

    soooo helpful. thank you!

  • @arnoldganados
    @arnoldganados 2 года назад

    Thanks nice great tutorial

  • @ramsestatl5095
    @ramsestatl5095 3 года назад +4

    Ok. İnstalled LAMP Server ? LAM server :) Where is this "P" Phpmyadmin :) Thanks bro. Good Job.

  • @DevOpsPulse
    @DevOpsPulse Год назад

    Thank you

  • @xavieroke5369
    @xavieroke5369 Год назад

    Thanks😊

  • @EKBShorts
    @EKBShorts 3 года назад +1

    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  3 года назад +1

      Here's a WordPress install tutorial for a LAMP server ruclips.net/video/q-qfLUTgUl8/видео.html
      I'm curious where you are learning this stuff in school. Is it at college?

    • @EKBShorts
      @EKBShorts 3 года назад

      @@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 3 года назад

      @@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  3 года назад +1

      @@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 RUclips)

    • @EKBShorts
      @EKBShorts 3 года назад

      @@TonyTeachesTech No problem bro thank you for answer

  • @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.

  • @bmkay
    @bmkay Год назад

    Great video. Can you post the commands in the video description?

  • @feliuorol6966
    @feliuorol6966 3 года назад

    thank you Tony

  • @raptorubuntu2294
    @raptorubuntu2294 3 года назад

    nice explanation

  • @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.

  • @anthonyodama2927
    @anthonyodama2927 2 года назад +3

    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.

  • @farzadmehrava43
    @farzadmehrava43 2 года назад

    thanks ... you mentioned two more videos about wordpress and multiple hosts but I cant find them !!!

    • @TonyTeachesTech
      @TonyTeachesTech  2 года назад +1

      Sorry about that. Here you go.
      - ruclips.net/video/lGSRDV2IQhw/видео.html
      - ruclips.net/video/q-qfLUTgUl8/видео.html

  • @LeMystere
    @LeMystere 3 года назад

    Very good 👍👍👍👍👍👍

  • @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

  • @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.

  • @igormatheus1095
    @igormatheus1095 2 года назад

    muito bom o tutorial.

  • @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.

  • @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.

  • @padamrajrijal2723
    @padamrajrijal2723 2 года назад

    ty

  • @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 ruclips.net/video/uE4aljoMBeg/видео.html

  • @Maherco.Gaming
    @Maherco.Gaming 2 года назад

    Where do I put the css and js files?

  • @martinkaspar5095
    @martinkaspar5095 2 года назад

    howdy dear buddy - i am on MX-Linux - i wanna install the LAMP-Stack on this machine too. Any difference here !?

  • @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.

  • @killingspreeinfinitenightl552
    @killingspreeinfinitenightl552 7 месяцев назад

    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.

  • @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

  • @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?

  • @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

  • @mohammadbaharloo5507
    @mohammadbaharloo5507 3 года назад

    enter and type up of the page, it is too hard to watch it.

  • @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?

  • @serpantinthewild
    @serpantinthewild 3 года назад

    how to install maria DB? is it better than Mysql?

  • @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 ruclips.net/video/uE4aljoMBeg/видео.html

    • @haitthamabuzahra2293
      @haitthamabuzahra2293 3 года назад

      @@TonyTeachesTech thank you so much you saved my day :)

  • @adri_an_antony
    @adri_an_antony 3 года назад

    How we can allow root user remote login after installation?

  • @oleksiidobai7119
    @oleksiidobai7119 3 года назад

    sudo apt-get install tasksel ?

  • @melvinjacob
    @melvinjacob 3 года назад

    apache keeps failing on mine for some reason

  • @fissko1
    @fissko1 3 года назад

    You actually changed a HTML code.. :)

  • @offgridhomesteaders863
    @offgridhomesteaders863 3 года назад

    how do i get out of the screen at 4:33???? help!

    • @TonyTeachesTech
      @TonyTeachesTech  3 года назад +1

      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 ruclips.net/video/uE4aljoMBeg/видео.html

    • @offgridhomesteaders863
      @offgridhomesteaders863 3 года назад

      @@TonyTeachesTech Thank you so much!!

  • @panamala_hepsibha
    @panamala_hepsibha Год назад

    How we get phpmyadmin

  • @_bharatbk_
    @_bharatbk_ 3 года назад +1

    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

  • @youcefakeb160
    @youcefakeb160 3 года назад

    Yo Tony brother, Please specify on the title that the latter is for beginners.
    Thank you for the video.

  • @bastooopanooo2311
    @bastooopanooo2311 2 года назад

    No PhpAdmin :P