This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| deb12:lamp [2024/05/23 06:13] – [WSL2 (NAT)] Bernard Condrau | deb12:lamp [2025/11/17 14:53] (current) – [Create certificate for localhost] Bernard Condrau | ||
|---|---|---|---|
| Line 142: | Line 142: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | * [[https:// | ||
| ===== MariaDB 10.11.6 Installation ===== | ===== MariaDB 10.11.6 Installation ===== | ||
| Line 182: | Line 183: | ||
| echo -e " | echo -e " | ||
| echo -e " | echo -e " | ||
| + | * Check the xdebug logfile with '' | ||
| - | + | === Windows host IP address === | |
| - | * WSL2: run the following command | + | * Alternatively you could use the Windows host IP address (feasible if it remains the same through re-boots) in which case you need to add a firewall rule to allow access through the xdebug port. Command to run in an elevated |
| - | * Check with:< | + | * Commands to check or remove the firewall rule:< |
| Remove-NetFirewallRule -DisplayName " | Remove-NetFirewallRule -DisplayName " | ||
| - | * Check logfile with tail -f / | ||
| ==== WSL2 (mirrored) ==== | ==== WSL2 (mirrored) ==== | ||
| - | * WSL2 runs networking in '' | + | * WSL2 set to '' |
| - | * To enabled '' | + | * This networking mode is available for Windows 11 23H2 and later |
| - | networkingMode=mirrored</ | + | * To enabled '' |
| - | * The following instructions apply to the default | + | networkingMode=mirrored</ |
| - | * WSL2: run the following command in PowerShell:< | + | * Your Linux box runs within a Hyper-V Virtual Machine |
| - | * Check with:< | + | * You can access |
| - | Remove-NetFirewallRule -DisplayName " | + | * '' |
| - | * Check logfile with tail -f / | + | * Check the xdebug logfile with '' |
| + | * Note that WSL in '' | ||
| ==== Links ==== | ==== Links ==== | ||
| * [[https:// | * [[https:// | ||
| - | * [[https:// | ||
| ===== SSL for localhost ===== | ===== SSL for localhost ===== | ||
| Line 238: | Line 238: | ||
| * You can check the domain names included in the original certificate:< | * You can check the domain names included in the original certificate:< | ||
| + | ==== Trust localhost certificate on Windows 11 ==== | ||
| + | * Run '' | ||
| + | * Right-click on // | ||
| ==== Links ==== | ==== Links ==== | ||
| * [[https:// | * [[https:// | ||