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 The php.ini File

Sean Flanagan
Sean Flanagan
33,235 Points

http://localhost/phpinfo.php can't be found

Hi.

I can't find the page Alena Holligan mentioned.

4 Answers

Alena Holligan
STAFF
Alena Holligan
Treehouse Teacher

By default MAMP will open http://localhost:8888/

Can you get there by going to http://localhost:8888/phpinfo.php

To change ports to use the normal web and mysql points, go into preferences > ports > "Set Web & MySQL ports to 80 & 3306"

Sean Flanagan
Sean Flanagan
33,235 Points

Hi Alena.

I did as you suggested but when I tried to start the server, I got a dialogue box saying that Apache needs open port 80 which is already used by the System.

There are four options available: Use next free port, Setup new port, Use anyway and Cancel. What should I do please?

Alena Holligan
Alena Holligan
Treehouse Teacher

You can "Use Anyway" or you can keep with the 8888. If you keep 8888, you just have to include the port in the URL and that's fine :)

Hi Sean,

Is your local server running?

Sean Flanagan
Sean Flanagan
33,235 Points

Yes it's running. I'm using MAMP. It's giving me grief here too:

https://teamtreehouse.com/community/localhost-8

Sean Flanagan
Sean Flanagan
33,235 Points

Hi Alena. I clicked on phpinfo in the nav bar at the top and got the PHP version 7.2.1, which I assume is the current version. It's working now.

Thank you

Sean