This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| deb12:lamp [2024/05/23 05:55] – [WSL (Windows Subsystem for Linux)] Bernard Condrau | deb12:lamp [2025/11/17 14:53] (current) – [Create certificate for localhost] Bernard Condrau | ||
|---|---|---|---|
| Line 132: | Line 132: | ||
| - Make sure the xdebug configuration is loaded last (e.g., '' | - Make sure the xdebug configuration is loaded last (e.g., '' | ||
| - Also update php.ini files in adjacent directories (// | - Also update php.ini files in adjacent directories (// | ||
| - | - Read [[web:eclipse# | + | - Read [[# |
| - Read [[https:// | - Read [[https:// | ||
| - Restart your webserver after configuration changes | - Restart your webserver after configuration changes | ||
| Line 142: | Line 142: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | * [[https:// | ||
| ===== MariaDB 10.11.6 Installation ===== | ===== MariaDB 10.11.6 Installation ===== | ||
| Line 173: | Line 174: | ||
| * You do not need to set '' | * You do not need to set '' | ||
| * Will work with default configuration settings | * Will work with default configuration settings | ||
| - | ==== WSL2 ==== | + | ==== WSL2 (NAT) ==== |
| - | * WSL2 runs networking in '' | + | * WSL2 set to '' |
| - | * To enabled | + | * Your Linux box runs within a Hyper-V Virtual Machine |
| - | networkingMode=mirrored</ | + | * You can access the Windows host through the IP address stored in '' |
| - | * The following instructions apply to the default | + | * '' |
| - | * WSL2: run the following command | + | IP=$(ip route show | grep -i default | awk '{ print $3}') |
| - | * Check with:< | + | INI="/ |
| + | echo -e "[Xdebug]" > $INI | ||
| + | echo -e " | ||
| + | * Check the xdebug logfile with '' | ||
| + | |||
| + | === Windows host IP address === | ||
| + | * 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 | ||
| + | * Commands to check or remove the firewall rule:< | ||
| Remove-NetFirewallRule -DisplayName " | Remove-NetFirewallRule -DisplayName " | ||
| - | * Check logfile with tail -f / | ||
| + | ==== WSL2 (mirrored) ==== | ||
| + | * WSL2 set to '' | ||
| + | * This networking mode is available for Windows 11 23H2 and later | ||
| + | * To enabled '' | ||
| + | networkingMode=mirrored</ | ||
| + | * Your Linux box runs within a Hyper-V Virtual Machine | ||
| + | * You can access the Windows host through the IP address '' | ||
| + | * '' | ||
| + | * Check the xdebug logfile with '' | ||
| + | * Note that WSL in '' | ||
| ==== Links ==== | ==== Links ==== | ||
| * [[https:// | * [[https:// | ||
| - | * [[https:// | ||
| ===== SSL for localhost ===== | ===== SSL for localhost ===== | ||
| Line 222: | 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:// | ||