Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP Building Websites with PHP Slim Basics & Twig Templates Including & Running Slim

Regina Soifer
Regina Soifer
7,386 Points

Mac OS X Server with MAMP

I'm not using the Workspace, I'm doing the exercises locally on my computer (Macbook).

I'm running Mac OS X El Capitan with MAMP (free version).

In case anyone else needs this info:

a) Stop running MAMP.

b) Edit the httpd.conf file on on /Applications/MAMP/conf/apache and see if the LoadModule rewrite_module modules/mod_rewrite.so line is un-commented.

c) On line 378: ''' <Directory /> Options Indexes FollowSymLinks AllowOverride None </Directory> ''' Change [None] to [All].

d) Create the .htaccess on the projects folder root using the code provided by the teacher.

e) Restart MAMP.

This answer was put together using this (http://stackoverflow.com/questions/7670561/how-to-get-htaccess-to-work-on-mamp) and this (http://trevordavis.net/blog/use-htaccess-files-with-mamp).

Brian Pohuski
Brian Pohuski
5,386 Points

Reminds me of having to change some lines in MAMP to disable caching... There are just some MAMP defaults that don't make sense to me.