Archive for the ‘Mac’ Category

October 9th, 2008

Install and run WordPress locally in Mac OS X using MAMP

Since the start of 2008, I’ve run into some client requests to develop their websites based on the de facto blogging engine, WordPress. As such, it was required that I be able to create and test custom Content Management System themes locally on my PowerBook G4 without having to be online. A boon considering some places I go to don’t have web access or have ridiculous firewall policies blocking access to some WordPress administration pages.

In case you’re wondering, MAMP stands for “Macintosh, Apache, Mysql and PHP”. It enables Apache server with PHP and a MySQL server to run without the need for an online web server. Mac OS X Leopard already has Apache pre-installed, in fact its what you use when you enable Web Sharing, but it’s not as straightforward to enable and configure as compared to MAMP’s one-click solution. Also, you’ll still need to install the latest MySQL and PHP separately with Leopard’s Apache – something quite tedious and not for the faint-hearted. Unless you need full control over your entire Apache/PHP/MySQL, MAMP is simply the best way to go.

Here’s the way to install MAMP and configure WordPress to run off your local hard drive. It really isn’t difficult; in reality, it’s quite painless.

  1. Download WordPress from www.wordpress.org.
  2. Download MAMP for Mac OS X from www.mamp.info, the free version (as opposed to the US$XX Pro version) is good enough for running WordPress and testing.
  3. After downloading the 100+ Megabyte package, continue to install MAMP. After installation, open the MAMP Control Panel App inside the MAMP Folder in your main Applications folder. There’s also an included Dashboard Widget that works the same way as the main Control App.
  4. Now click on the “Start Servers” button. The red icons on the side should turn to green when the Apache and MySQL servers are ready.
  5. Safari (or whatever your default browser is) should open with the MAMP Start Page. If it doesn’t open automatically, just click on the “Open start page” button. Don’t worry about the confusing tabs and options in that page, we only need to concern ourselves with Start Page and the phpMyAdmin page (link is located on the menu at the top of the page).
     
  6. Take note of the following information on the Start Page:Host: localhost
    [Port: 8889]
    User: root
    Password: root

     
  7. You can write this information down, you’ll be needing it later for configuring WordPress’ wp-config.php file.
  8. Click on the phpMyAdmin link at the top of the page. After the page loads, look for the only text field on the page to “Create new database”. Enter a name for the database that we’ll use for the WordPress installation. Click “create”.
     
  9. Go to the Finder and open the MAMP Folder, inside this is the “htdocs” folder. Open “htdocs” and make a new folder – to make things easy, let’s name this “wordpress”. We’ll be installing WordPress here. Decompress WordPress and install all the necessary files (the wp-xxx files and folders).
     
  10. Open the wp-config-sample.php file in any text editor and change the settings in the “MySQL Settings” to match the information provided from the MAMP Start page. Make sure you put in the exact name in the database name field that we created in phpMyAdmin. Save the file inside thehtdocs -> wordpress folder as “wp-config.php”.
     
  11. Return to your browser and enter http://localhost:8888/wordpress/ into the address field. If everything went well you should be presented with the WordPress Installation process.
  12. Just follow you’re usual installation process like you would do if you were installing WordPress on an actual web server.

That’s pretty much it! When you’re done just click on “Stop Servers” from the MAMP Control app.

If you want multiple installations of WordPress, just follow the same procedure above but use a different name for both the database and the folder inside “htdocs’.

I hope this information was helpful! Keep coding!

October 6th, 2008

Techspansion, developer of VisualHub, iSquint and AudialHub, shuts down

In a surprising move, Techspansion - the makers of the indispensible Mac OS X conversion software utilities, VisualHub, iSquint and AudialHub - has decided to close down for personal reasons as stated by the head developer, Tyler Loch.

The sad news is now posted on the Techspansion website, bearing the following message:

…After much soul-searching (it’s not you, it’s me), for personal reasons, Techspansion is closing its virtual doors. Thanks for all your support. It’s been a fun ride… and a special thanks to all the well-wishers that have e-mailed. I’m sorry I don’t have the time to respond to every e-mail, but please know that it’s very appreciated.

I personally use VisualHub on almost a regular basis, using it to encode my downloaded public broadcast TV shows and video podcasts to mobile MP4, which I then load to my Sony Ericsson Walkman phone for later viewing on the go. With a simple drag-and-drop of the source file, with one-click settings for most video formats, makes a tedious thing to do in QuickTime almost enjoyable.

AudialHub is another great utility, although I don’t use it that often, that comes in handy for the random .ogg file that finds it way to my hard drive, needing to be encoded to something more iTunes friendly.

I personally don’t use it, but iSquint is quite popular with the iPod crowd for converting movie files straight to QuickTime format compatible with any iPod that can play videos.

Indeed, this is sad news for the many Mac users who rely on Techspansion’s software for re-encoding various video and audio formats. I just hope the source code is sold to another developer, just to keep the good work going. There really isn’t much of an alternative out there that can match VisualHub’s features and price point. Another good option would probably be to make it open-source. Or even better, maybe Apple could somehow buy the 3 software utilities and add some great new iApps to its already stunning iLife suite.

Techspansion, you will be missed.

For those of you who would like to backup their present copies of VisualHub and AudialHub, here are the instructions since we won’t be able to get a hold of any further official downloads.

  • Backup the actual VisualHub or AudialHub application (inside your Applications folder)
  • Next, you’ll have to backup the Conversion Engine. Copy the folder at: /Library/Application Support/Techspansion
  • …for good measure, you can also back up your Preferences file, containing your registration info in case you lose the original purchase e-mail. It’s at: /Users/yourname/Library/Preferences/com.techspansion.visualhub.plist
  • …or for AudialHub: /Users/yourname/Library/Preferences/com.techspansion.audialhub.plist