wsl_ubuntu_for_key
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| wsl_ubuntu_for_key [2025/04/07 19:17] – created kenson | wsl_ubuntu_for_key [2025/04/07 19:31] (current) – kenson | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Installing WSL Ubuntu for Key ====== | + | ====== Installing WSL Ubuntu |
| Note: WSL works on Windows 10 (>=2004) and Windows 11. For older versions reference the [[https:// | Note: WSL works on Windows 10 (>=2004) and Windows 11. For older versions reference the [[https:// | ||
| - | ===== Install WSL ===== | + | LAMP commonly refers to Linux, Apache, Mysql & PHP, which was a common web development stack a few years ago. |
| + | There are newer, more modern replacements for each component but each alternative adds complexity. I recommend | ||
| + | exploring these replacements AFTER you've mastered the basic LAMP stack. | ||
| + | |||
| + | ===== Install WSL Ubuntu | ||
| Open PowerShell in Administrator mode. | Open PowerShell in Administrator mode. | ||
| Line 31: | Line 35: | ||
| < | < | ||
| + | |||
| + | |||
| + | ===== Install LAMP ===== | ||
| + | |||
| Now you can take a shortcut and install the entire stack with: | Now you can take a shortcut and install the entire stack with: | ||
| Line 38: | Line 46: | ||
| < | < | ||
| sudo apt install apache2 | sudo apt install apache2 | ||
| - | sudo apt install mysql-server | ||
| sudo apt install php libapache2-mod-php php-mysql | sudo apt install php libapache2-mod-php php-mysql | ||
| + | sudo apt install mysql-server | ||
| + | </ | ||
| + | |||
| + | Next go through the basic mysql setup | ||
| + | |||
| + | < | ||
| + | |||
| + | It will prompt for your sudo password if you haven' | ||
| + | |||
| + | < | ||
| + | [sudo] password for spiderkey: | ||
| + | |||
| + | Securing the MySQL server deployment. | ||
| + | |||
| + | Connecting to MySQL using a blank password. | ||
| + | |||
| + | VALIDATE PASSWORD COMPONENT can be used to test passwords | ||
| + | and improve security. It checks the strength of password | ||
| + | and allows the users to set only those passwords which are | ||
| + | secure enough. Would you like to setup VALIDATE PASSWORD component? | ||
| + | |||
| + | Press y|Y for Yes, and other key for No: y | ||
| + | |||
| + | There are three levels of password validation polocy: | ||
| + | |||
| + | LOW Length >=8 | ||
| + | MEDIUM Length >=8, numeric, mixed case, and special characters | ||
| + | STRONG Length >=8, numeric, mixed case, special characters and dictionary | ||
| + | file | ||
| + | |||
| + | Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 1 | ||
| + | Please set the password for root here. | ||
| </ | </ | ||
| + | Note this is the password for MySQL root, not system root. | ||
wsl_ubuntu_for_key.1744053426.txt.gz · Last modified: 2025/04/07 19:17 by kenson
