Install phpMyAdmin On Ubuntu 20.04
ฝัง
- เผยแพร่เมื่อ 8 ก.พ. 2025
- Install Ubuntu 20.04 LTS on Virtual Machine:
• Install Ubuntu 20.04 L...
***************************** Steps and command **********************
1. To install apache2
sudo apt-get install apache2
2. For moving to the root directory type the command :
Sudo su
3. Now to install the lamp server type the command:
apt-get install lamp-server^
4.To install phpmyadmin type the command as :-
apt-get install phpmyadmin -y
5. One dialog box will appear and select the ‘apache2’ by pressing spacebar.
6. Now configuring phpmyadmin dialog box will appear and select ‘yes’ after that give the password in my case it’s ‘admin’ 🡪 This password is of ‘root password’
7. Now, goto the php directory as:-
cd /var/www/html/
8. If you hit the command as:-
ls
you can see the index.html file over that directory.
9. To see the php version you are using create info.php using command as:-
nano info.php
after that type the code as:-
phpinfo();
And press ctrl + o to save and ctrl + x to exit.
10. Now goto the browser and type ‘localhost/info.php’ you will get the php version.
11. Then in browser go to the ‘localhost/phpmyadmin’ you will have to login now so to create user name and password at first go to
sudo mysql -p -u root
12. Create User using command as:-
CREATE USER 'admin'@'%' IDENTIFIED BY 'admin';
It means that the user name is ‘admin’ and password is also ‘admin’
13. Grant Permission using the command as:-
GRANT ALL PRIVILEGES ON . TO 'admin'@'%' WITH GRANT OPTION;
Clear, brief, easy to follow...
Perfect tutorial.
Thanks a lot!
Very useful guide. Works on latest unbuntu as of Nov 2022
This is the best explanation and assistant with commands below
Its a easy to understand command and clear specification.
so this is useful thank you sir
Very useful, many thanks for step-by-step, I can set it up in one time. Thanks thanks again. God bless you. Cheers!!
Thanks for the tutorial, this saved me.
But there is something you skipped in your explanation
Enabling phpmyadmin in Apache2 server.
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin
sudo service apache2 reload
Thanks a lot bro. This was the missing final step in my set up.
Lifesaver!! I've been trying to install this for days and now it finally works! Thank you!
Thanks bro. What a lifesaver..
What’s the difference between the Apache web server and the lamp server?
Greate,
after long search i found this,
Thanks a lot,
Hi man. I sow yr video, but i got a problem: how i finish to set the "info.php" file, and retry to start "localhost/phpmyadmin/" my browser allert me with "404 Not found:The requested URL was not found on this server. Apache/2.4.41 (Ubuntu) Server at localhost Port 80".
I've followed all yr steps watching video
I had the same issue, but you need to enable the phpMyadmin module in Apache2 and then restart your apache server
Just use the following commands
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin
sudo service apache2 reload
@@ninsiimawilber Thank u, bro!!!
@@ninsiimawilber worked like a charm. thanks!
Very help! Thank you! The best manual!
i add my projet in www/html/
after
localhost/myprojet/
but the phpmyadmin not connected with my database
Nice, it also came with written instruction!
fast and easy
Wou, thanks for you bro.......⚡⚡⚡
Omg! Thanks, man,! you're very helpful
E: Unable to locate package -y
while -- apt-get install phpmyadmin -y
use it without -y: apt-get install phpmyadmin
ty man, really useful :D
Can't understand 5:25 to 5:30 minute..Please help
Thanks alot....It worked!
Hello I get an error when I set the password :
│ mysql said: ERROR 1819 (HY000) at line 1: Your password does not satisfy
│ the current policy requirements
even though my password is strong, it does it everytime, what should I do ?
Very useful, but I have one question if I have installed phpmyadmin on server, how can I transfer data to php? I can connect to database remotely but I can't use data from database in php project. Can somebody help me? Thanks
the same quetion
How do you enter the last character in apt-get install lamp-server^
Found it. The browser does not run any *.php files and only displays the source code. Was there some other configuration missing? Thank you
@@robertmassotti4177 No any configuration have been missed. Thank you!
Thank you very much sir
It was really healpfull sir,Thank you
thank you... it very helpfull
this doesnt work unable to see phpmyadmin
thanks a lot
It was very useful and practical
Thanks for that tutorial
Very very helpful bro thanks
Very helpful video, you made my day
thanks bro. very helpful
very helpful! Thank you
Very helpful
Thanks a lot Bro ,
Thank very much!!!!!
web interface. not show
Thank you very much !
Still show not found
nice tutorial, it was verry helpfull
Thank you sir
i was stuck at the log in stage, I had not created a user. - ty
you need to create a user at first
thank you so much you are geniesse
legend!
thanks a lot bro..
when i am try this command it is throwing an error. permision denied
thats because you edit your /var/www/html folder, thats by default 'permission denied'. try run the following command in the terminal: sudo chmod 777 /var/www/html/
@@roypolinder8158 thanks bro u saved me
Thanks bro.
Thank you.
What is the password for ubuntu
This did not work for me.
what's the error you are getting?
@@dipenshrestha1105 phpmyadmin isnt showing login page and i did this correctly
Thankssssssss
Nice to see this video
Your video was very helpful thanks I sub u same time
think you
thanks
scripted!
69 comments to 70. (;
69. (;.
GRANT ALL PRIVILEGES ON*.* TO 'admin'@'%' WITH GRANT OPTION; update the privilege's code otherwise it will give error, Thanks
Latest grant permission: GRANT ALL PRIVILEGES ON *.* TO 'user'@'%';
thanks
the last command in the comment needs to be updated the below one works for me
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION;
Ty bro!!!!
Thank you !!!
Thanks alot
Thank you.