Install LAMP Stack (Linux, Apache, MySQL, PHP) in Ubuntu 15.10

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ธ.ค. 2024

ความคิดเห็น • 173

  • @roamrcm
    @roamrcm 2 ปีที่แล้ว +2

    Damn, I've tried a lot of youtube tutorials for my WSL2 Ubuntu and this is the only one that worked for me smoothly. Great job!

  • @zt.5677
    @zt.5677 3 ปีที่แล้ว +3

    Thanks Brad! I like your attitude. I loved that authentic moment when you had realized that the config file was missing a line. I have those moments all the time. That is learning by doing.

  • @developermind7784
    @developermind7784 ปีที่แล้ว

    Still the this is super tutorial even it was made 7 years ago . I didn’t find like this masterpiece all around in 2023! You are the hero for all times.

  • @parkerbrown1323
    @parkerbrown1323 7 ปีที่แล้ว +51

    At 6:24 if you have installed php7.0 with ubuntu 16.04 via apt-get install php, then your php.ini file is located by CMD: sudo nano /etc/php/7.0/apache2/php.ini Happy Coding!

    • @realwizardry834
      @realwizardry834 7 ปีที่แล้ว +1

      Thank you Parker

    • @csabasaf
      @csabasaf 7 ปีที่แล้ว +1

      Thank you for the hint; it really helped me. At the time of installation we were already at Ubuntu 17.10 and PHP 7.1, but it really helped me figure out how to install all that stuff.

    • @HarshalShinde4277425btw
      @HarshalShinde4277425btw 6 ปีที่แล้ว

      thanks

    • @dg-hughes
      @dg-hughes 6 ปีที่แล้ว

      I followed the bread crumbs to that but using the info in the video it made PHP MyAdmin package spill its guts onto the admin page instead of the PHP MyAdmin GUI

    • @antonyinjila7152
      @antonyinjila7152 5 ปีที่แล้ว

      Yea. This is the part that I think might not be similar as demonstrated here.

  • @muhammadusmankhan6761
    @muhammadusmankhan6761 3 ปีที่แล้ว +2

    Your 5 years old videos are still better then the new videos from other users.

  • @gabrielmaphanga8328
    @gabrielmaphanga8328 8 ปีที่แล้ว +2

    Dude you are sick programmer. I aspire to like you. You help configure my lamp server in a night. With all the details with no assumption. God Bless!!

  • @arminb8425
    @arminb8425 5 ปีที่แล้ว +1

    Man, I've been trying to install it for weeks, I had given up thinking it was impossible to have phpmyadmin on linux, thank you so much Brad!!!

  • @ptitcka
    @ptitcka 8 ปีที่แล้ว +1

    Thank you so much! I had to google some things because my results varied with yours, but you were a big help, seeing as you focused on Ubuntu 15.10! I'm so grateful.

  • @f7a996
    @f7a996 3 ปีที่แล้ว +2

    When installing phpmyadmin at 5:22, Apache2 is just 'red'. Hit the spacebar to select the option and see a confirming '*', then you can tab to OK and hit enter......Great UI design.....

  • @mrhoxell
    @mrhoxell 4 ปีที่แล้ว +2

    Damn man. You made it extremely simple. Finally someone made it

  • @onepelaez
    @onepelaez 8 ปีที่แล้ว

    Awesowe LAMP installation video! That works so great ..... It also working on Ubuntu 16.04, there is no any difference. Great Job

  • @aliayub5034
    @aliayub5034 4 ปีที่แล้ว +1

    The tutorial is brief and on point. Thanx indeed

  • @freddie5401
    @freddie5401 6 ปีที่แล้ว +20

    sudo nano /etc/php/7.2/apache2/php.ini at 6:24

  • @benj2535
    @benj2535 7 ปีที่แล้ว +27

    If Your In 2017 "sudo apt-get install php" then "sudo apt-get install libapache2-mod-php"

    • @johnbritolima
      @johnbritolima 7 ปีที่แล้ว

      Up (2017)

    • @zenziiiiiiiiii
      @zenziiiiiiiiii 6 ปีที่แล้ว

      Thanx Benj

    • @masken8355
      @masken8355 5 ปีที่แล้ว +3

      fuck. im in 2019

    • @alanmejia1330
      @alanmejia1330 5 ปีที่แล้ว

      it can be late, but I want to tank you, I was having several issues xp

  • @csabasaf
    @csabasaf 7 ปีที่แล้ว

    Brad, you're awsome! I really had a hard time after switching from Windows 10 to Ubuntu 17.10, but now I have everything running flawlessly. Thank you.

  • @antonyinjila7152
    @antonyinjila7152 5 ปีที่แล้ว

    Its pretty easy and straight forward. Thank you Traversy Media

  • @beaupasquariello4227
    @beaupasquariello4227 5 ปีที่แล้ว +1

    Sorry, as I'm a noob. Where are you installing these services from? A disk? Or do they already reside on the drive?

  • @khalilyouceflagraa4808
    @khalilyouceflagraa4808 7 ปีที่แล้ว

    Thank you so much, this video clearly explain step by step how to install LAMP, and it's work.

  • @revenantaryan8736
    @revenantaryan8736 5 ปีที่แล้ว

    Thanks a lot .It Take a whole night to configure this.

  • @tsegazeab7580
    @tsegazeab7580 7 ปีที่แล้ว

    You know you have that great thing at explaining things!!!!! nice

  • @sandeshnangarepatil
    @sandeshnangarepatil 6 ปีที่แล้ว

    Thank you so much sir,simply and 100% working😊

  • @msfconsolelinux1381
    @msfconsolelinux1381 6 ปีที่แล้ว

    --- Before Starting ----- 1:10 - Open the Konsole 1:12 - Update Package List == sudo apt-get update == ---- Apache Part ---- 1:20 - Install Apache == sudo apt-get install apache2 2:00 - Open apache config == sudo nano /etc/apache2/apache2.conf 2:05 At the bottom of the file append -- ServerName 127.0.0.1 -- 2:45 - Restart Apache == sudo systemctl restart apache2 3:35 - Write Permission == sudo chmod 777 /var/www/html ---- Mysql Part ---- 4:00 - Install Mysql == sudo apt-get install mysql-server ---- PHP Part ---- 5:15 - Install PHP == sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql 6:00 - Open apache Dir conf == sudo nano /etc/apache2/mods-enabled/dir.conf 6:10 - Delete the -- index.php -- at the end of the second line 6:15 - Add -- index.php -- before index.html 6:30 - Restart apache == sudo systemctl restart apache2 6:40 - Go to hosted folder == cd /var/www/html 6:45 - Add index.php == sudo nano index.php 6:50 - Give it the content seen in the Video ---- phpmyadmin Part ---- 7:35 - Install phpmyadmin == sudo apt-get install phpmyadmin 8:25 - Open apache config == sudo nano /etc/apache2/apache.conf 8:30 - Add at the bottom -- Include /etc/phpmyadmin/apache.conf -- 8:55 - Reload Apache == sudo apachectl restart

    • @nisarggogate8952
      @nisarggogate8952 4 ปีที่แล้ว

      i m able to see the local host page. But when i go localhost/test.php it shows a blank page... I have written the exact same code as in video... Do you have any idea...

  • @XavThaMan
    @XavThaMan 8 ปีที่แล้ว +1

    I had an error when trying to install PHP5: Package php5 is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

  • @rahulkoli1491
    @rahulkoli1491 7 ปีที่แล้ว

    Thank you for the precise explanation . It really helped a lot .

  • @kidronzer7886
    @kidronzer7886 5 ปีที่แล้ว +1

    Thank You so much, this video was really very helpful.

  • @kikipranoto197
    @kikipranoto197 4 ปีที่แล้ว

    thank you very much it works on ubuntu 18.04 LTS

  • @euclid9492
    @euclid9492 6 ปีที่แล้ว

    how would I figure out how to do this without this video I never would think to edit those files on my own XD

  • @antonioflores8929
    @antonioflores8929 6 ปีที่แล้ว +1

    wow you made it look very easy, thanks a lot

  • @VelezBiH
    @VelezBiH 5 ปีที่แล้ว

    Nicely done and well explained .thank you.

  • @utsv5226
    @utsv5226 7 ปีที่แล้ว +2

    Package 'php5' has no installation candidate
    what should I do next ?

    • @eb4416
      @eb4416 5 ปีที่แล้ว

      Nothing. Try localhost/phpmyadmin already. Nevertheless you can get the info by using sudo nano /etc/php/7.2/apache2/php.ini but there you won't find the specific line that Brad showed us. It worked on my pc without changing anything in that file.

  • @kaylemaclou
    @kaylemaclou 7 ปีที่แล้ว +1

    ... well explained. Thank you!

  • @lindanarocks5326
    @lindanarocks5326 7 ปีที่แล้ว

    It's such a wonderful tutorial! So detailed explanation!!
    Can u plz make a video on how to run jdbc programs ?? Plz..I am using postgreSQL db btw..

  • @willgd5950
    @willgd5950 4 ปีที่แล้ว

    Can i install this on my chromebook? I have linux installed and my chromebook is compatible with very much programming/coding languages

  • @metaorior
    @metaorior 6 ปีที่แล้ว +1

    Professor Brad
    can you make a video covering Docker and it's basics ?
    how to setup a LAMP stack
    thanks alot

  • @TheBackerboy
    @TheBackerboy 8 ปีที่แล้ว +3

    probably a stupid question, but how can i put my files in the www folder? drag and drop does not work...

    • @TheBackerboy
      @TheBackerboy 8 ปีที่แล้ว

      and your tutorial was perfect! works like a charm! :) thx

    • @epicwhat001
      @epicwhat001 8 ปีที่แล้ว +9

      you need admin privilege so use sudo
      1. open the terminal where the file is
      2. sudo mv
      3. enter password and done.
      ex: test.php from desktop to /var/www/html
      sudo mv test.php /var/www/html

    • @manavsaxena5579
      @manavsaxena5579 7 ปีที่แล้ว

      Thanks guys!

  • @brianhansen8876
    @brianhansen8876 3 ปีที่แล้ว

    Great video, Brad - thanx!!

  • @robg9508
    @robg9508 7 ปีที่แล้ว

    Thanks so much, comments with updates very helpful.

  • @PhearMyWrath
    @PhearMyWrath 7 ปีที่แล้ว

    Where is the apache.conf file located with php7? The /etc/php/7.0/apache2/ folder only has a conf.d folder...

  • @Анастасия-ч6ш4ю
    @Анастасия-ч6ш4ю 7 ปีที่แล้ว

    Thanks! It's very helpful!

  • @deepamgupta8011
    @deepamgupta8011 6 ปีที่แล้ว +2

    Hey phpMyAdmin is not accepting "root" as its username, any help is appreciable.

  • @mukhammeddaulet-kazhy4405
    @mukhammeddaulet-kazhy4405 5 ปีที่แล้ว

    What if i have different text editor, how should i write? I am using Sublime Text and how it would be instead nano? (trying to write, but that is not working)

  • @arminb8425
    @arminb8425 5 ปีที่แล้ว

    Hi Brad, could you do a video on installing homestead on Ubuntu?

  • @DiegoHerrera-yo3oq
    @DiegoHerrera-yo3oq 8 ปีที่แล้ว

    Hello friend first of all i want to say that is an excellent video because the information is to much clear, but I want to ask you something, what operating system you have in virtual machine Windows or Ubuntu? and other question is, How did you know that IP had the localhost to see running the php, mysql and phpmyadmin in Windows? I hope my questions are clear and you can answer it, Beforehand thank you very much, Regards!

  • @mohammadsohail9283
    @mohammadsohail9283 6 ปีที่แล้ว

    Package php5 is not available, but is referred to by another package.

  • @shivamsatija2016
    @shivamsatija2016 8 ปีที่แล้ว

    Hey! I have followed this video to install apache on my Ubuntu 15.10, but localhost page is coming blank.

  • @manavsaxena5579
    @manavsaxena5579 7 ปีที่แล้ว

    Could someone guide me on how to copy an entire directory into the /www folder. I can't locate on the explorer, in windows I could simply copy the folder into htdocs and it would work but I don't know how to do it in ubuntu.

  • @GodricThe
    @GodricThe 5 ปีที่แล้ว

    less than 2 minutes in and I have a problem. Localhost thing does not work in Windows(host OS), but it does on Ubuntu in VirtualBox and in browser does not work.I have to do port forwarding and I have no idea how to do it and there is not tutorial anywhere for it

  • @sahilgarg94
    @sahilgarg94 7 ปีที่แล้ว

    Thankyou very much for this tutorial

  • @RaviShankar-bc7wl
    @RaviShankar-bc7wl 7 ปีที่แล้ว

    its not parsing PHP when i run the localhoat/test.php it rather prints the whole code.
    I have installed PHP7.0

  • @EinsameNudel
    @EinsameNudel 8 ปีที่แล้ว

    The mbstring extension is missing. Please check your PHP configuration.Can someone help?

  • @islamstanaliev9843
    @islamstanaliev9843 8 ปีที่แล้ว

    How can I connect apache2 with sublime text 3?

  • @abulhasnattanvir8009
    @abulhasnattanvir8009 7 ปีที่แล้ว

    hy bro
    my problam
    Error writing /etc/php7/apache2/php.ini: No such file or directory

  • @a_rod1678
    @a_rod1678 4 ปีที่แล้ว

    localhost is currently unable to handle this request. what should i do?

  • @surfinbird71
    @surfinbird71 7 ปีที่แล้ว +13

    UPDATED(April 7, 2017) Same as video but with the newest php, and no issues with mbstring!
    sudo apt-get update && sudo apt-get upgrade
    sudo apt-get install apache2
    sudo /etc/init.d/apache2 start
    sudo add-apt-repository ppa:ondrej/php
    sudo apt-get update
    sudo apt-get install php7.1
    sudo /etc/init.d/apache2 restart
    sudo nano /var/www/html/test.php
    // Enter:
    sudo apt-get install mysql-server
    CREATE MYSQL PASSWORD
    mysql root -u -p
    ENTER MYSQL PASSWORD
    create database testdb;
    show databases;
    exit
    sudo apt-get install phpmyadmin
    // Select apache2 from menu
    // Select Yes
    CREATE PASSWORD FOR PHPMYADMIN
    ENTER MYSQL PASSWORD
    sudo nano /etc/php/7.1/apache2/php.ini
    // Delete the ; where it says: extension=mysql.so
    // Delete the ; where it says: extension=php_mbstring.dll
    sudo nano /etc/apache2/apache2.conf
    // At very bottom type: Include /etc/phpmyadmin/apache.conf
    sudo apt-get install php-mbstring php7.1-mbstring php-gettext
    sudo apt-get install php-xml
    sudo /etc/init.d/apache2 restart
    // Works perfect on Ubuntu 16.04

  • @buggaman2009
    @buggaman2009 4 ปีที่แล้ว

    Can you show how to install multiple lampp one with php 5 and other php 7 and run parallel

  • @preetidash2217
    @preetidash2217 7 ปีที่แล้ว

    Hi, When it comes to exiting the sql, I am unable to exit and move on to the step where I install phpmyadmin

  • @libassediop4764
    @libassediop4764 7 ปีที่แล้ว +2

    can I install wordpress in it?

  • @mingyan8081
    @mingyan8081 8 ปีที่แล้ว

    Once I install php5 in LAMP, how can I upgrade it to PHP7? could you tell me? Thank you!

    • @PietroNardelli
      @PietroNardelli 8 ปีที่แล้ว +1

      If you type "sudo apt-get install php" you can check the installation before pressing y, it will show php7

  •  3 ปีที่แล้ว

    when I installed mysql-server it did not ask me for a root password, and I can't access to it

  • @jonathanhembra2098
    @jonathanhembra2098 3 ปีที่แล้ว

    any updated version of the this?

  • @evanburr8503
    @evanburr8503 5 ปีที่แล้ว

    If you have trouble installing MySQL, implement “sudo apt-get update” before the sudo install

  • @timomuller6081
    @timomuller6081 7 ปีที่แล้ว

    how do I make my mysql databases available ?

  • @valkrumprofegh9958
    @valkrumprofegh9958 2 ปีที่แล้ว

    on the mysql it didn't appear popup for set a root password, is there any option to creating a password?

  • @consoledoterror971
    @consoledoterror971 4 ปีที่แล้ว

    3 : 25 I got '404 Not Found Error'. Help me.

  • @SaddamHossain-zi2fl
    @SaddamHossain-zi2fl 7 ปีที่แล้ว

    how can i reinstall lamp???i have removed it before.now i cannt install apache2,mysql

  • @l.p.7916
    @l.p.7916 6 ปีที่แล้ว

    sick wall paperr were did u get it

  • @mosfeqanik549
    @mosfeqanik549 6 ปีที่แล้ว +2

    thanks this video helped me a lot.at 7.05 extension= msql.so is not found.but ( Include /etc/phpmyadmin/apache.conf) worked.i install php 7.2 with ubuntu 18.04 .location will be sudo nano /etc/php/7.2/apache2/php.ini.in the phpmyadmin it is showing error. so this command works
    Login to your MySQL sudo mysql -p -u root
    CREATE USER
    CREATE USER 'admin'@'%' IDENTIFIED BY 'admin4321';
    GRANT ALL PRIVILEGES
    GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION

  • @srinivasannarasiman7693
    @srinivasannarasiman7693 7 ปีที่แล้ว

    sudo apt-get install apache2
    E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

  • @umeraslam8126
    @umeraslam8126 3 ปีที่แล้ว

    Awesome! worked for me.

  • @husainahmmed9025
    @husainahmmed9025 7 ปีที่แล้ว

    Thanks for this awesome tutorial. If you can please update this tutorial with php7

  • @boliussa
    @boliussa 4 ปีที่แล้ว

    where is the guide for this written though?

  • @SoupTurtle16
    @SoupTurtle16 5 ปีที่แล้ว

    I never got to set a password for the sql server what do I do

  • @beatsci-fi
    @beatsci-fi 6 ปีที่แล้ว

    just great. thank you

  • @HildoQuetz
    @HildoQuetz 7 ปีที่แล้ว

    Thanks my friend! :)

  • @mayurkapadia3985
    @mayurkapadia3985 6 ปีที่แล้ว

    Thank u Sir..!!!

  • @chris-boy
    @chris-boy 7 ปีที่แล้ว

    Nice work

  • @farhaneyasmine727
    @farhaneyasmine727 7 ปีที่แล้ว

    can any body help me ?
    I want to install php4 not php5 for compatibility reasons :( please what can I do all tutorials show how to install php5 or 7

  • @ryan.aquino
    @ryan.aquino 7 ปีที่แล้ว +5

    sudo apt-get install libapache2-mod-php

  • @mdalaminmahamud3775
    @mdalaminmahamud3775 8 ปีที่แล้ว

    that was a great video!

  • @shila730
    @shila730 8 ปีที่แล้ว

    Great. Thank you :)

  • @danishtahir85
    @danishtahir85 6 ปีที่แล้ว

    phpmyadmin error.
    The mysqli extension is missing.

  • @epicwhat001
    @epicwhat001 8 ปีที่แล้ว

    big help thanks

  • @chrisyoshi7365
    @chrisyoshi7365 7 ปีที่แล้ว

    It might be good to point out that Ubuntu 15.01 is now no longer supported, therefore there is no way to update the system.

  • @aliayub5034
    @aliayub5034 4 ปีที่แล้ว

    Thanx very much

  • @rottencase2498
    @rottencase2498 3 ปีที่แล้ว

    in case ur version of php is problem, use php-fpm instead of php5

  • @alex23tr
    @alex23tr 8 ปีที่แล้ว

    thank you bro.
    If anyone wants to setup via new version files, must to concentrate php 5 , php 7 and where is php.ini files.

  • @rajivgeorge4105
    @rajivgeorge4105 7 ปีที่แล้ว

    where are you typing all this

  • @baqarmangrani
    @baqarmangrani 7 ปีที่แล้ว

    Thank you so much

  • @beginbytecbw8179
    @beginbytecbw8179 4 ปีที่แล้ว

    ERROR 1698 (28000): Access denied for user 'root'@'localhost'

  • @saikatbiswas4402
    @saikatbiswas4402 4 ปีที่แล้ว

    Nice

  • @odaimohammad3687
    @odaimohammad3687 7 ปีที่แล้ว

    Thank you!

  • @fahdzaghdoudi1953
    @fahdzaghdoudi1953 7 ปีที่แล้ว

    /etc/php5/apache2/php.ini not found !

    • @yukidejesus1956
      @yukidejesus1956 7 ปีที่แล้ว

      i did ..../etc/php/5.0/apache2/php.ini

    • @naumanafsar3053
      @naumanafsar3053 7 ปีที่แล้ว

      it's because there's no /etc/php5/apache2/php.ini
      try /etc/php/5.0/apache2/php.ini
      or /etc/php/7.0/apache2/php.ini if you're using php 7.0!

  • @nenadmihajlovic2102
    @nenadmihajlovic2102 7 ปีที่แล้ว

    Work like a charm

  • @eloyeloy1780
    @eloyeloy1780 8 ปีที่แล้ว

    thanks! 😀

  • @sed2016
    @sed2016 5 ปีที่แล้ว

    great! Thanks guy

  • @aryabhatt5833
    @aryabhatt5833 3 ปีที่แล้ว

    Thanks a ton!!!!

  • @ramirez368
    @ramirez368 3 ปีที่แล้ว

    amazing Brad!!!

  • @fresh-k
    @fresh-k 2 ปีที่แล้ว

    Merci beaucoup

  • @mmughal
    @mmughal 7 ปีที่แล้ว +1

    Thank you so much!!!

  • @adilshahnawaz2036
    @adilshahnawaz2036 7 ปีที่แล้ว

    guys how to find the apache server ip address like he has(10.0.0.79)

    • @ЭдЛесничий-щ8т
      @ЭдЛесничий-щ8т 7 ปีที่แล้ว +1

      Adil Shahnawaz just type in the terminal “ifconfig” and you will see ip a dress of machine