Meh Belly Lint Collection

That awful moment when you realize,
THIS is YOUR circus and THOSE are YOUR monkeys.

User Tools

Site Tools


wsl_ubuntu_for_key

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wsl_ubuntu_for_key [2025/04/07 19:17] – created kensonwsl_ubuntu_for_key [2025/04/07 19:31] (current) kenson
Line 1: Line 1:
-====== Installing WSL Ubuntu for Key ======+====== Installing WSL Ubuntu w/ LAMP for Key ======
  
 Note: WSL works on Windows 10 (>=2004) and Windows 11. For older versions reference the [[https://learn.microsoft.com/en-us/windows/wsl/install-manual|MS docs]] Note: WSL works on Windows 10 (>=2004) and Windows 11. For older versions reference the [[https://learn.microsoft.com/en-us/windows/wsl/install-manual|MS docs]]
  
-===== 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:
  
 <code>sudo apt update</code> <code>sudo apt update</code>
 +
 +
 +===== 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:
 <code> <code>
 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
 +</code>
 +
 +Next go through the basic mysql setup 
 +
 +<code>sudo mysql_secure_installation</code>
 +
 +It will prompt for your sudo password if you haven't used it in a while, and then ask if you want to VALIDIATE PASSWORD COMPONENT.
 +
 +<code>
 +[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.
 </code> </code>
  
 +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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki