Skip to content

Installing Magento Enterprise stand-alone on OS X

I often have to demonstrate Magento Enterprise to clients and potential clients when I go to visit them, and sometimes that’s difficult, because I can’t connect my laptop to the Internet very easily from their offices. It’d be easier from Starbucks, where I get free wi-fi, and generally the coffee’s better, but some clients don’t want to leave the office just for a demo. I’ve therefore figured out the steps involved in installing it locally, on my MacBook.

Install php and MySQL

OS X comes with Apache installed, but you’ll need to install php and MySQL before you can install Magento. I got mine from here and they work perfectly: just download the dmg files and run them. Note that the Entropy php isn’t yet compatible with Snow Leopard (OS X 10.6) and the MAMP server isn’t yet at php 5.2: a requirement for the standard Magento installation. For Snow Leopard systems, I’m looking at Zend Server Community Edition, and will update in the next few days.

Install phpMyAdmin

Once you have php, MySQL and Apache all set up, you can install phpMyAdmin by downloading it from here. Installing phpMyAdmin and getting that working proves:
- Apache is working and pointing to the right place
- php is working
- MySQL is working and accessible from Apache / php

Create a host file entry for your local Magento install

Magento hates working on localhost, and the easiest way to work around that is to edit your host file and add a fictitious domain, which will actually be served by your laptop.

Go to the command line and type in ‘sudo nano /etc/hosts’ then type in your password (assuming you’re an administrator on your laptop) and add a line like the following:

127.0.0.1 magento.enterprise.com

Save the file (Ctrl-O) and quit nano (Ctrl-K) and then check you can ping magento.enterprise.com. If you can, you’re ready to install Magento Enterprise. The first step is to install the sample data.

Install sample data

With Magento Enterprise 1.7 you can use the standard sample data that came with Magento Enterprise 1.2, available here. Download the zip file and unzip it, then go to phpMyAdmin, create a database (mine is called magentoenterprise) and import the SQL from the sample data file. It’s important you do this before you install the Magento application itself.

Install the application

I can’t link to a downloader for Magento Enterprise, but this is the point where you will unzip that, and copy it to a subdirectory of your sites folder. Mine is at ~/Sites/mage_ee which (if you’ve used magento.enterprise.com in your host file) will mean Magento is at http://magento.enterprise.com/username/mage_ee after you’ve copied it from the zip file.

You might need to set access on the files after you’ve unzipped them: to do this go to your site’s root directory (~/Sites/mage_ee in my case) and type in ‘sudo chmod -R -v 777 *’ and enter your password when prompted. This is poor security in the real world, but fine for a demo site on a laptop, especially one that’s using a fictitious domain name.

If you type in the URL in a regular browser, you should be taken to the install script, which (if you’ve followed all the steps above) should work perfectly first time.

Critical things to remember:

- The URL is the one you created in your hosts file

- The database name, login and password were all set up in phpMyAdmin

Once you’re finished with the installation, you can copy the images from the sample data zip file to the media folder in your Magento directory, and your sample store will then have all the pretty pictures as well.

I can add more detail in most places in this article, but for most people I hope the sequence of steps is the main thing. If you do this in the wrong order, you’ll have to start again, so follow the sequence carefully.

Such a disappointment!

Why isn’t there a hilarious website on this URL http://www.idontwantoneofthose.com/

Twitter picture search

http://www.twpxsearch.com/index.py?q=%23uksnow is the new URL for my mash-up, which pulls pictures from Twitpic for specific search terms on Twitter. The example in the URL shows some great images from the current uk snow storms. Snow daleks seem popular this year.

Which Operating System would you choose?

BSOD at the Prado

BSOD at the Prado

The tube tunnels are full of posters showing people who apparently helped design Windows 7. Which is probably why stories like this one appear from time to time. If you let members of the public design your operating system, it probably would be better than Windows, where even the version number is a hack. There are many serious technical design issues, which impact security, reliability and performance. But it’s still the number 1 operating system.

Contrast that with Linux. If you visit this link you can browse all the bugs that have been logged in the Linux kernel (the bit at the heart of the system that everything else relies on to work) and see when / where they will get fixed. It’s transparent, and reflects a piece of software that is properly engineered and well structured. Critical bugs get fixed right away, and it’s miles better structured than its proprietary rival.

And the one you pay money for is the bad one, not the good one. Which probably explains this page at Google image search.

BBC’s Canvas Prototype – the future of internet TV?

This movie shows a demonstration of what TV on the Internet could look like in the near future. While watching a live program, the viewer can switch to classic archive footage, follow Twitter conversation about the program they’re watching, interact with a sponsor (not on the BBC, of course) and there is a platform for new applications to be added, which haven’t even been imagined yet.

For several years, the PC and TV have been converging and next year could be a very confusing year for consumers as the 2 devices get more and more alike. Interactivity will be increasingly available on set-top boxes through Freeview and Sky, and TV content will be increasingly available online, where interaction is a given.

Stats from bit.ly

This morning’s fascinating fact is about the bit.ly URL shortening service:

If you have a bit.ly link, for example http://bit.ly/4dWnCu

you can insert ‘info’ into the URL thus:

http://bit.ly/info/4dWnCu

to get all sorts of facts and figures, like how many clicks that link has had, which sites are referring using it, who’s tweeting about that particular URL, and that kind of thing.

Brilliant!

What’s after the iPhone?

2 billion applications have been downloaded for the iPhone and iPod Touch, and the iPhone has achieved about 1% of the global market for mobile phones. These are great achievements, and it’s easy to see why the iPhone has become so popular. Compared to its predecessors it’s revolutionary, a clear advance, and it’s transforming the market for mobile devices.

The future doesn’t necessarily belong to Apple and the iPhone, though. While the device has changed attitudes, and massively increased the use of the mobile Internet, it could well be the other devices that have followed in its path that end up dominant.

I’m sure Apple will continue to innovate, but the iPhone is now into an incremental improvement phase, and I’m particularly interested in where Google’s Android phones go for the next phase of innovation.

The iPhone is available in 1 size. It’s made by 1 company, who absolutely control what you can and can’t put onto it. It doesn’t fit in a shirt pocket, and I know people who carry a bag now just because they own an iPhone. Long-term, can one company with one device really compete with what Google are putting together?

First of all, we have many manufacturers today making Google phones. HTC dominate, but there are a host of manufacturers following behind. All the UK networks can offer you one, and they’re in all different shapes and sizes. The iPhone is £950 SIM free, if you were daft enough to buy one. You can get a Google phone for £200 nowadays, that will fit in your back pocket if you don’t want to carry a bag. And it has GPS, and it has thousands of applications, and all that. It isn’t locked down like an iPhone, either.

Of course Palm are coming along with their Pre as well, and Windows Mobile will update soon. But I think the main beneficiary of the iPhone long term will be Google and the Android. In the long-term, I think the attitude change because of the iPhone will be a lot bigger than its market share ever gets.

Gerrard Street Lanterns



DSCN2010, originally uploaded by harkmopwood.

I just happened to be in the right place at the right time with this shot of the paper lanterns in London’s Chinatown.

Google out-done

How come, when I type “search” into Google, the number 1 result is this?

search google