Installing and using Cygwin for Windows

Step 1: Visit http://cygwin.com/install.html and select setup-x86_64.exe or setup-x86.exe depending on if you have a 64 or 32 bit machine respectively.

cygwin download

Step 2: Watch it download. When it's done ...

cygwin download

Step 3: Start it...

cygwin start

Step 4: Choose the default download source.

cygwin start

Step 5: The directory where you want to install it (usually c:\cygwin or c:\cygwin64), and select all users.

cygwin start

Step 6: Set the local package directory (usually the default is fine)

cygwin start

Step 7: Again the default for the internet (Direct Connection)

cygwin start

Step 8: Pick any download site (preferably one that is closer to us in proximity geographically). A progress box will show up after that.

cygwin start cygwin start

Step 9: In the Search field, type the following packages and change them from “Skip” to a number

cygwin start cygwin start

Step 10: Press the next button

cygwin start

Step 11: Press the next button again to confirm everything

cygwin start

Step 12: Then wait for a LONG time while it installs.

cygwin start

Step 13: Add the desktop icon and shortcut if you'd like and click finish!

cygwin start

Step 14: Double click on the desktop icon to start cygwin.

cygwin start

Step 15: You can change the colors of this but default is terminal style.

cygwin start

Step 16: Your MAMP web server directory is in /cygdrive/c/MAMP/htdocs

cygwin start

Step 17: Create a hello.php file to test your php installation. Here we used the command nano hello.php to create the file.

cygwin start

Step 18: Type php hello.php command to see if it works!

cygwin start

Congratulations, your Cygwin is complete