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 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.