Skip to content

Instantly share code, notes, and snippets.

@nadar
Last active August 4, 2017 11:53
Show Gist options
  • Save nadar/65255ba08b291c454f36cf465edc4da9 to your computer and use it in GitHub Desktop.
Save nadar/65255ba08b291c454f36cf465edc4da9 to your computer and use it in GitHub Desktop.
Windows 10 Linux Subsystem and GitHub Setup

Aug, 2017 => https://insights.ubuntu.com/2017/08/03/upgrading-your-ubuntu-on-windows-install-to-the-app-version/

How to setup a Windows 10 Computer with Linux Subsystem, GitHub, Apache2 and PHP.

  1. Install the Linux Subsytem
  2. Installing Apache & PHP (sudo apt-get install apache2 libapache2-mod-php7.0 php7.0 php7.0-mysql mysql-server) a. PhpMyAdmin https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-16-04
  3. Install Eclipse an create a Folder on the C: Partion Root winwww which your eclipse Workspace is located.
  4. Create Symlink from Subsystem to NTFS Partition a. cd /var/www/html b. ln -s /mnt/c/winwww
  5. Modify the Apache2 sites-enabled DocumentRoot to match /var/www/html/winwww
  6. Install Git for Windows, generate an ssh key and register on GitHub: https://git-scm.com/download/win
  7. Now Import your Projects trough Eclipse into your Workspace.
  8. Open localhost in your Browser.

Composer: curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

PHP Extensions: sudo apt-get install php-curl php-mbstring php-zip

Enjoy!

(Reinstalling Linux Subystem: https://www.howtogeek.com/261188/how-to-uninstall-or-reinstall-windows-10s-ubuntu-bash-shell/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment