filmov
tv
How to Install LEMP on Ubuntu? | Easiest Way to Install Linux, Nginx, MySQL, and PHP
Показать описание
🔥 Learn how to set up a powerful LEMP stack on Ubuntu! In this tutorial, you'll master the basics of installing Nginx, MySQL, and PHP. 🚀
If the Password Error occurs to you while setting it for MySQL Root User, here’s the reason:
“mysql_secure_installation asked password for root, Failed! Error: SET PASSWORD” has no significance for user root @localhost as the authentication method used does not store authentication data in the Mysql server .Please consider using ALTER USER instead if tou want to change authentication parameter
MEans that you’re encountering an issue with the mysql_secure_installation script because the default authentication method for the root user is set to auth_socket, which doesn’t use a password. To resolve this, you can change the authentication method to mysql_native_password using the ALTER USER command.
Commands:
Check Ubuntu version: cat /etc/os-release
Update packages: sudo apt update -y
Install Nginx: sudo apt install nginx
Check Nginx status: sudo systemctl status nginx
Allow firewall access: sudo ufw allow 80/tcp & sudo ufw allow 443/tcp
Reload firewall: sudo ufw reload
Check firewall status: sudo ufw status
Install MySQL: sudo apt install mysql-server
Check MySQL status: sudo systemctl status mysql
Secure MySQL: sudo mysql_secure_installation (answer 'n' to prompts)
Update MySQL root password: ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'YOUR_STRONG_PASSWORD';
Check MySQL version: sudo mysqladmin -p -u root version
Install PHP: sudo apt install php php-fpm php-common php-mysql php-gd php-cli
Don't forget to:
👍 Like this video if it helped
💬 Share your experience in the comments
🔔 Subscribe for more tech tutorials
🚀 Share this video with your friends!
If the Password Error occurs to you while setting it for MySQL Root User, here’s the reason:
“mysql_secure_installation asked password for root, Failed! Error: SET PASSWORD” has no significance for user root @localhost as the authentication method used does not store authentication data in the Mysql server .Please consider using ALTER USER instead if tou want to change authentication parameter
MEans that you’re encountering an issue with the mysql_secure_installation script because the default authentication method for the root user is set to auth_socket, which doesn’t use a password. To resolve this, you can change the authentication method to mysql_native_password using the ALTER USER command.
Commands:
Check Ubuntu version: cat /etc/os-release
Update packages: sudo apt update -y
Install Nginx: sudo apt install nginx
Check Nginx status: sudo systemctl status nginx
Allow firewall access: sudo ufw allow 80/tcp & sudo ufw allow 443/tcp
Reload firewall: sudo ufw reload
Check firewall status: sudo ufw status
Install MySQL: sudo apt install mysql-server
Check MySQL status: sudo systemctl status mysql
Secure MySQL: sudo mysql_secure_installation (answer 'n' to prompts)
Update MySQL root password: ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'YOUR_STRONG_PASSWORD';
Check MySQL version: sudo mysqladmin -p -u root version
Install PHP: sudo apt install php php-fpm php-common php-mysql php-gd php-cli
Don't forget to:
👍 Like this video if it helped
💬 Share your experience in the comments
🔔 Subscribe for more tech tutorials
🚀 Share this video with your friends!