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 trialYohan Park
7,148 PointsIs the port number change an important step?
I cannot get it to work with 80 & 3306. It says "Apache couldn't be started. Please check your MAMP installation and configuration. " Thank you.
1 Answer
Patricia Hector
42,901 PointsYou probably have another application running in those ports. In order to work with the server, you need to change those ports. Open up MAMP and before you start the server go to Preferences, and there on the top menu go to Ports and check in which port Apache is running (80, 8888, 81). If Apache is running in port 80, as you said before, this is taken so you need to change it. You should be able to see a button that says Set MAMP ports to default. Once you click there you should get
- Apache port: 8888
- MySQL port: 8889
With the new Apache port set, start your server and go to localhost:8888 on the browser. If everything is alright you should see a welcome page from MAMP. Then you can go to wherever is located the MAMP folder and inside it, look for the htdocs folder and start creating your projects there. Happy Coding. Ciao.
Yohan Park
7,148 PointsYohan Park
7,148 PointsYou're right! Thank you!