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

Why do I have to install both Xampp and Mamp?

I think I can make local php enviroment with only Mamp. Do I need both of them?

3 Answers

Codin - Codesmite
Codin - Codesmite
8,600 Points

Wordpress just requires Apache (or Nginx), mySQL (or another database), and PHP 5.6 or greater.

Apache, mySQL and PHP are included in both XAMPP and MAMP, you would only require one to install a Wordpress CMS.

Slim only requires PHP and a server that can peform URL re-writing (this is covered in Apache URL rewriting). So you should be able to run Slim on Both XAMPP and MAMP.

Codin - Codesmite
Codin - Codesmite
8,600 Points

You do not require XAMPP if using WAMP, they more or less do the same thing, XAMPP has more software bloated into it for example sendmail, fileserver etc. XAMPP is also availible for multiple platforms where as WAMP is for Windows only. XAMPP generally runs slower then WAMP but requires less memory to run.

It comes down to preference of which you would prefer to use, personally I use LAMP (Linux Apache MySQL PHP).

Fairly decent conversation at stackoverflow regarding the differences and peoples preferences on why they use on other the over here : http://stackoverflow.com/questions/105546/xampp-and-wamp-in-the-lamp-whats-the-best

Konrad Pilch
Konrad Pilch
2,435 Points

Instead of XAMPP, WAMP theres also MAMP.

Codin - Codesmite
Codin - Codesmite
8,600 Points

For some reason I read Kohane's question as WAMP and not MAMP (Monday mornings are the worst) Pretty much all of the above applies except MAMP can be Windows and Mac.

The free versions of MAMP are more or less the same as XAMPP, you will only notice a difference with the paid version of MAMP Pro which is far superior.

(Although my personal preferance is still LAMP).

Konrad Pilch
Konrad Pilch
2,435 Points

I used MAMP on windows, but i dont preffer it on windows. I preffer MAMP on mac. I preffer MAMP overall, but on windows MAMP isn't the best. Ill take the hint that you just wrote, thanks :)

Thank you for your response. I think I have to use xampp to install Slim Framework on Windows. Can I do that with Mamp? I also have Mamp pro. In the tutorial video, the teacher of Wordpress development was using both Mamp and Xampp. https://teamtreehouse.com/library/local-wordpress-development/local-wordpress-development/installing-a-local-web-server-on-a-pc Do I need both of them to create a wordpress site?

Ok thank you very much. :) I really appreciate it.

Konrad Pilch
Konrad Pilch
2,435 Points

If you need any help to set up WP environment i can always help you! I could walk you throw it if you don't understand something.