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.
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.
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!
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.
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
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.
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.....
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.
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...
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
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.
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
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)
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!
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.
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
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
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
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!
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.
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.
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!
Thank you Parker
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.
thanks
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
Yea. This is the part that I think might not be similar as demonstrated here.
Your 5 years old videos are still better then the new videos from other users.
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!!
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!!!
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.
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.....
Damn man. You made it extremely simple. Finally someone made it
Awesowe LAMP installation video! That works so great ..... It also working on Ubuntu 16.04, there is no any difference. Great Job
The tutorial is brief and on point. Thanx indeed
sudo nano /etc/php/7.2/apache2/php.ini at 6:24
You Legend.
thanks bro, this was helpful
Now its sudo nano /etc/php/7.4/apache2/php.ini
Thank you
If Your In 2017 "sudo apt-get install php" then "sudo apt-get install libapache2-mod-php"
Up (2017)
Thanx Benj
fuck. im in 2019
it can be late, but I want to tank you, I was having several issues xp
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.
Its pretty easy and straight forward. Thank you Traversy Media
Sorry, as I'm a noob. Where are you installing these services from? A disk? Or do they already reside on the drive?
Thank you so much, this video clearly explain step by step how to install LAMP, and it's work.
Thanks a lot .It Take a whole night to configure this.
You know you have that great thing at explaining things!!!!! nice
Thank you so much sir,simply and 100% working😊
--- 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
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...
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
Thank you for the precise explanation . It really helped a lot .
Thank You so much, this video was really very helpful.
thank you very much it works on ubuntu 18.04 LTS
how would I figure out how to do this without this video I never would think to edit those files on my own XD
wow you made it look very easy, thanks a lot
Nicely done and well explained .thank you.
Package 'php5' has no installation candidate
what should I do next ?
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.
... well explained. Thank you!
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..
Can i install this on my chromebook? I have linux installed and my chromebook is compatible with very much programming/coding languages
Professor Brad
can you make a video covering Docker and it's basics ?
how to setup a LAMP stack
thanks alot
probably a stupid question, but how can i put my files in the www folder? drag and drop does not work...
and your tutorial was perfect! works like a charm! :) thx
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
Thanks guys!
Great video, Brad - thanx!!
Thanks so much, comments with updates very helpful.
Where is the apache.conf file located with php7? The /etc/php/7.0/apache2/ folder only has a conf.d folder...
Thanks! It's very helpful!
Hey phpMyAdmin is not accepting "root" as its username, any help is appreciable.
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)
Hi Brad, could you do a video on installing homestead on Ubuntu?
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!
Package php5 is not available, but is referred to by another package.
Hey! I have followed this video to install apache on my Ubuntu 15.10, but localhost page is coming blank.
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.
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
Thankyou very much for this tutorial
its not parsing PHP when i run the localhoat/test.php it rather prints the whole code.
I have installed PHP7.0
The mbstring extension is missing. Please check your PHP configuration.Can someone help?
How can I connect apache2 with sublime text 3?
hy bro
my problam
Error writing /etc/php7/apache2/php.ini: No such file or directory
localhost is currently unable to handle this request. what should i do?
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
surfinbird71 thank you man
instead of mysql root -u -p
use: mysql -u root -p (at least worked for me)
Can you show how to install multiple lampp one with php 5 and other php 7 and run parallel
Hi, When it comes to exiting the sql, I am unable to exit and move on to the step where I install phpmyadmin
type: exit
can I install wordpress in it?
Yes you can!
of course you can
Once I install php5 in LAMP, how can I upgrade it to PHP7? could you tell me? Thank you!
If you type "sudo apt-get install php" you can check the installation before pressing y, it will show php7
when I installed mysql-server it did not ask me for a root password, and I can't access to it
any updated version of the this?
If you have trouble installing MySQL, implement “sudo apt-get update” before the sudo install
still have problem
how do I make my mysql databases available ?
on the mysql it didn't appear popup for set a root password, is there any option to creating a password?
3 : 25 I got '404 Not Found Error'. Help me.
how can i reinstall lamp???i have removed it before.now i cannt install apache2,mysql
sick wall paperr were did u get it
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
sudo apt-get install apache2
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Awesome! worked for me.
Thanks for this awesome tutorial. If you can please update this tutorial with php7
where is the guide for this written though?
I never got to set a password for the sql server what do I do
just great. thank you
Thanks my friend! :)
Thank u Sir..!!!
Nice work
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
sudo apt-get install libapache2-mod-php
that was a great video!
Great. Thank you :)
phpmyadmin error.
The mysqli extension is missing.
same :(
big help thanks
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.
Thanx very much
in case ur version of php is problem, use php-fpm instead of php5
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.
where are you typing all this
Thank you so much
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
Nice
Thank you!
/etc/php5/apache2/php.ini not found !
i did ..../etc/php/5.0/apache2/php.ini
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!
Work like a charm
thanks! 😀
great! Thanks guy
Thanks a ton!!!!
amazing Brad!!!
Merci beaucoup
Thank you so much!!!
guys how to find the apache server ip address like he has(10.0.0.79)
Adil Shahnawaz just type in the terminal “ifconfig” and you will see ip a dress of machine