Linux, Node.js, npm, Git, Apache, PHP, PostgreSQL
- press win key
- type Turn Windows Features on or of
- tick Windows Subsystem for Linux
- go to MS store search and install your flavor of linux
- go to MS store search and install Windows Terminal
- sudo apt install curl
- curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
- sudo apt install nodejs
replace 14 with current version
- sudo npm cache clean -f
- sudo npm install -g n
- sudo n latest
sudo n stable for the stabel version
- sudo apt install git
- git config --global user.email "[email protected]"
- git config --global user.name "Your Name"
- sudo apt install apache2
- sudo apt install php
- sudo apt install wget ca-certificates
- sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
- wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
- sudo apt install wget ca-certificates
- wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add -
- sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
- sudo apt-get update
- sudo apt install postgresql postgresql-contrib
- sudo service apache2 restart
- sudo service postgresql restart
- sudo su postgres (enter your pass)
- psql
- \password
- \q
- sudo ln -s /mnt/c/projects /var/www/devroot
<VirtualHost *:80>
ServerName www.test.local
ServerAdmin mac@localhost
DocumentRoot /var/www/devroot/test
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/testerror.log
CustomLog ${APACHE_LOG_DIR}/testaccess.log combined
</VirtualHost>
- press win key
- type in Notepad
- right click and open as Administrator
- with the Notepad open the C:\Windows\System32\Drivers\etc\hosts (make sure all files are selected in the file type dropdown)
- add a new line 127.0.0.1 www.test.local
- sudo nano /etc/inputrc
- uncomment set bell-style none
- nano ~/.tmux.conf
- paste in
set -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
Follow this tutorial https://www.hanselman.com/blog/HowToMakeAPrettyPromptInWindowsTerminalWithPowerlineNerdFontsCascadiaCodeWSLAndOhmyposh.aspx