Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Bitnami WAMP Install on Windows 10

I decided to follow Alena Holligan and her advice to start with Bitnami. There was a bit of a learning curve to take this route and I want to provide the solutions that I uncovered to save others from having to beat their heads against the keyboard:

These steps apply to Windows installations of Bitnami WAMP, but the overall steps will still have value for Mac users, though path strings will vary

A. Installing Bitnami, Port Setting and DB Password

  1. Alena's link goes directly to the Infrastructure page on the Bitnami site, which contains a lot of links to downloadable apps. Instead, here are direct links to what you need:

-To install WAMP on your Windows Computer: Click https://bitnami.com/stack/wamp/installer then click Download link next to the 'Recommended' tag.

-To install MAMP on your Mac Computer: CLick https://bitnami.com/stack/mamp/installer then click Download link next to the 'Recommended' tag.

  1. You will be prompted to configure a port and a DB password during installation.

-I am running Windows 10 as my operating system and I had conflicts with port 80, which is the default value. After doing research I ended up setting my port to 1025. I arrived at this by reading through documentation at the following link, which you can avoid by setting yours to 1025 and moving on. https://wiki.bitnami.com/Native_Installers_Quick_Start_Guide

-When I followed Alena's steps to view my web server output in my browser, I got an error. Instead of typing just 'Localhost' into your address bar, type 'Localhost:1025'

-You can set the DB password to anything you like, just document it someplace so that you don't lose it.

-Bitnami documentation assumes you know that when you try to log into phpMyAdmin later you should enter 'root' as the user name along with the DB password you chose from above. I didn't know this so I'm saving you a google search if you also don't know ;)

B. Repointing Apache to the new Documents\sites\testsite

To repoint appache to look for html and php documents in a new place on your local machine, you actually have to change values in two different config files:

  1. C:\Bitnami\wampstack-5.6.22-0\apache2\conf\bitnami\bitnami.conf -Look for 4 string paths in this config file which point to /Bitnami/wampstack-5.6.22-0/apache2/htdocs/ and replace them with the path on your local computer to the Documents/sites/testsite path

  2. C:\Bitnami\wampstack-5.6.22-0\apache2\conf\httpd.conf -Look for 2 string paths in this config file which point to /Bitnami/wampstack-5.6.22-0/apache2/htdocs/ and replace them with the path on your local computer to the Documents/sites/testsite path.

1 Answer