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

Any guides on treehouse for installing PHP and working with php files in a text editor?

Is there any videos on how to install PHP on treehouse? I have followed multiple installation guides attempting to make it so I can develop and preview websites with PHP, but I haven't been able to get anything working. I set things up with apache on Mac OS X and I have gotten the apache server to work but I could use a more comprehensive walkthrough on how to access the apache root folder and use a text editor to preview php files. I am currently using Coda 2 so if anyone knows a good way to get going that would be great.

1 Answer

Andrew McCormick
Andrew McCormick
17,730 Points

Henry, Did you go through this or one of the videos like this? https://teamtreehouse.com/library/setup-your-local-development-environment-2

To access the php folders, you just open the file from your web root which you set in the settings of MAMP or that particular project if you choose for your files to be somewhere other than your default root.