Coding your Magento or WordPress website design locally prt2

Posted on Thursday 29th Sep 2011 by Gavin No Comments

Develop Magento locally using MAMP

Welcome back! If you read my previous post, you will know I am showing how you can develop your WordPress and Magento website design locally using MAMP. In my previous post I showed you how to install WordPress on MAMP and today I’m going to show you how to install Magento.

There are quite a few people out there who say this can’t be done unless you use XAMP or alike, but after a bit of digging I managed to work out why MAMP does mess a few things up and how to fix it. So, lets get to installing Magento.

Step1

So if you have read and followed my previous tutorial, I am going to assume we can skip the whole downloading and installing MAMP onto your Mac and get right into the nitty gritty. What you’ll 1st need to do is download a fresh Magento onto your computer. You can go here to download a copy. You will need to login to download Magento, but if you haven’t got an account yet, believe me, it’s worth doing so, it’s free and very quick.

Step2

Ok, so now you have your fresh download of Magento we can get set on installing it. Firstly you will need to put it into your MAMP htdocs folder: Applications>MAMP>htdocs
Once that is done, open up your browser and the MAMP start page

Step3

You will see that by default your MAMP url is something like this: http://localhost:8888/MAMP/?language=English and though normally just removing everything from /MAMP to end of English and typing in your folder name works, this is where Magento will break and why some people say it cannot be done. But it can, and it’s simple. Do what you normally do and remove everything from English back to 8888/ and replace it with your Magento folder name then find out your computers ip address (you can go here to do this) and replace the word ‘localhost’ to your ip.

If you don’t do this, Magento won’t allow you to log into the admin panel. So you need to make sure this is done

Step4

Once you have done all that and hit enter the Magento set up wizard will start, click the ‘start download process’ button, then agree to the terms and set the localisation that suits you.

Step5

Now you have to configure the database. Thankfully Magento will fill these out automatically for you, but if not, this should help:
Host: localhost
User: root
Pass: root
DB Name: (whatever you called your file in your htdocs)
Base URL: the same as what is in your browser so ‘http://ipaddress/8888/your-file-name’
Admin path: admin
Session Data: file system

Step6

And we are done, Set up your admin account, save your encryption key and that’s it! Super simple, super easy. Once you have developed your site and you want to get it online, just follow the same export and import options I included in my MAMP and WordPress tutorial, but this time, also go into the Magento back end and back up through that also.

I hope you enjoyed this 2 part tutorial, if you have any tricks or tips on how to do this better or if something didn’t work for you, be sure to leave a comment. Also, if there is something you would like to see from this blog, let me know and I’ll do my best to make it happen!

Thanks all, be excellent to each other!

About Gavin

Spends most of his life infront of his mac discovering new ways to make things awesome. But on the rare occasion when a computer isn't around Gav enjoys track racing, basketball and ju jitsu.

See all of posts.

Add on Gavin Google+

Gavin's Tweet's

This entry was posted in Tips For Web Designers and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>