Setup MAMP (Mac, Apache, MySQL And PHP) on Mac OS X 10.6 Snow Leopard

Mac OS X 10.6 Snow Leopard comes with Apache and PHP (Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8l DAV/2 PHP/5.3.4), so it is quite easy to setup a MAMP server.

Sure, there are other ways to do the MAMP setup:

In my opinion, because Apache and PHP are already installed, it’s easy way to go with them.

Apache 2.2.17

To enable pre-installed PHP, you have to edit httpd.conf file:

sudo vi /private/etc/apache2/httpd.conf

And uncomment the line:

LoadModule php5_module libexec/apache2/libphp5.so

If you want to make other configuration changes, for example define virtual hosts, it’s better to use user’s configuration file:

sudo vi /private/etc/apache2/users/[username].conf

After making changes, restart Apache aka Web Sharing. Go to System Preferences > Sharing and unselect and select again Web Sharing. That’s it. Now you have the Apache with PHP running.

If there are any problems, you can examine the Apache error_log. Go to Console > /var/log > apache2 > error_log.

PHP 5.3.4

If you want to make changes to php.ini, do the following. Copy php.ini.default to php.ini:

sudo cp /private/etc/php.ini.default /private/etc/php.ini

And to make changes:

sudo chmod 644 /private/etc/php.ini
sudo vi /private/etc/php.ini
sudo chmod 444 /private/etc/php.ini

After making changes, don’t forget to restart Apache.

MySQL 5.5.10

MySQL is a little trickier, because it’s not pre-installed in OS X. In my opinion easiest way is to use binary from MySQL.com. So, download the current version, which is mysql-5.5.10-osx10.6-x86_64.dmg at the moment, and install mysql-5.5.10-osx10.6-x86_64.pkg.

Then install MySQLStartupItem.pkg and copy MySQL.prefPane to OSX/Library/PreferencePanes.

MySQL starts when the OS starts and you can start and stop it from System Preferences > MySQL. You can also start or stop it manually from console:

sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop

MySQL with default settings use socket in /tmp and pre-installed PHP presumes it to be in /var/mysql, so you have to update the location in php.ini:

mysql.default_socket = /tmp/mysql.sock

Mac OS X 10.6

No you should have your MAMP server running nicely. If you want to make host name changes – for example if you use different hosts in localhost to take advantage Apache’s virtual hosting – edit hosts file:

sudo vi /private/etc/hosts

Firefox 8.0.1

Firefox

About:config

Sessionstore.js

How to extract all URLs from sessionstore.js to a file: grep -oP '"url":"K[^"]+' $(ls -t sessionstore.js | sed q) > ~/URLs.txt

Places.sqlite

Places.sqlite – MozillaZine Knowledge Base

Places ERD
Places ERD

Add-ons

Privacy

Misc

  • 1Password
    Password manager & form filler for Mac OS X
  • Adblock Plus
    Ads were yesterday!
  • Affiliate Espionage
    Simple competitive intelligence software
  • CashKeywords Toolbar
    More than just a toolbar
  • Close n forget
    Close current tab and forget about the visit: suppress the related cookies and, if configured, the whole domain from the history
  • ColorZilla
    Advanced eyedropper, color picker, page zoomer and other colorful goodies
  • Evernote Web Clipper
    Provides a button and context menus to easily add a selection or an entire page to Evernote
  • FaviconizeTab
    he width of the specified tab becomes small up to the size of favicon
  • Firebug
    Web development evolved
  • Flashblock
    Replaces Flash objects with a button you can click to view them
  • KGen
  • Live HTTP headers
    View HTTP headers of a page and while browsing
  • Long URL Please
    Automatically converts short URLs from services like TinyURL.com back to the original so that users don’t have to
  • Mozbar
    A toolbar for the users of SEOmoz.org, Inc.
  • PPCBully Toolbar
    More than just a toolbar
  • Read It Later
    Save pages to read later
  • SearchStatus
    Display the Google, Alexa, Compete and Linkscape rankings with search related tools
  • SEO Blogger
    Wordtracker’s SEO Blogger extension
  • SEO For Firefox
    SEO information inline with Google and Yahoo! search results
  • SeoQuake
    Quick view of site parameters in the search engine results pages
  • Stop-or-Reload Button
    Turns the stop and reload buttons into a single on. When you can stop, you have a Stop button, otherwise you have a Reload button (like Safari)
  • Tab Mix Plus
    Tab browsing with an added boost
  • User Agent Switcher
    Adds a menu and a toolbar button to switch the user agent of the browser
  • Web Developer
    Adds a menu and a toolbar with various web developer tools
  • X-RayS
    ee the tags on a page without viewing the source code
  • Xmarks
    Bookmark sync and web discovery
  • YSlow
    Make your pages faster with Yahoo!’s page performance tool

User Styles

Stylish is a Firefox extension to manage user styles.

Remove Firefox Bookmarks toolbar folder icons:

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

.bookmark-item > .toolbarbutton-icon {
display: none !important;
}

User Style Links

iTunes

Controlling iTunes

Why to Encrypt Your iOS Backups

  • Personal information, such as email account passwords and contact information will be secured.
  • The log of location data is encrypted with everything else.
  • If you restore a new iOS device from a backup, usually passwords such as mail account passwords aren’t stored. But if your backup is encrypted, the passwords will be kept, making the transition to a new device much easier.

Links for iTunes

Apple: iTunes →

Alfred

Alfred is a quick keyboard launcher for apps and more in the spirit of Quicksilver, Butler and LaunchBar. It’s a productivity application, which saves you time in searching your local computer and the web.

How to Use Alfred

  1. Invoke it using a global shortcut
  2. then type whatever you want to find… type an app name to launch it
  3. or type “google” and your search term to search Google.

One thing that impresses me most about Alfred is its speed.

Links for Alfred

[Alfred →]

MacFriendly till 15th March 2011

MacFriendly Bundle: Great software at a great price $450. Only $39.99!

  1. SEO SpyGlass Pro
    Detailed information on competitors search engine postions.
  2. Relationship
    Organize and manage contact information.
  3. HotSale
    Point of sale, rent, service and inventory control system.
  4. Aimersoft iTransfer
    Backup iPod/iPhone/iPad files to computer.
  5. Stor
    MySQL editor with Excel import/export feature.
  6. SWF Protector
    Encrypt your artworks, no matter if Flash or Flex technology was used.
  7. iResizer
    Scale images while preserving key picture elements.
  8. USB Backup 2
    Back up USB Flash drives.
  9. Deskovery
    Save time managing your windows.
  10. HyperImage
    Tool for downloading an entire website.
  11. Folx
    Download manager.
  12. Ink2Go
    Record your screen and draw annotations for presenting.

[: MacFriendly →]

Fluid

“Fluid lets you create a Site Specific Browser (SSB) out of any website or web application, effectively turning your favorite web apps into desktop apps.”

How to Change the Name of a Fluid Application

  1. Rename the Fluid application in Finder
  2. Choose Show Package Contents command for the application in Finder
  3. Open Contents/Info.plist file with Property List Editor
  4. Edit Bundle identifier value from com.fluidapp.FluidInstance.[old name] to com.fluidapp.FluidInstance.[new name]
  5. Edit Bundle name value
  6. Save and close Info.plist and relaunch the application

How to Move a Fluid Application to Another Folder

  1. Move the Fluid application to another folder

How to Change the Home Page of a Fluid Application

  1. Choose Show Package Contents command for the Fluid application in Finder
  2. Open Contents/Resources/Config.plist file with Property List Editor
  3. Edit TODHomeURLString value
  4. Save and close Config.plist
  5. Open ~/Library/Preferences/com.fluidapp.FluidInstance.[name].plist file with Property List Editor
  6. Edit TODHomeURLString value
  7. Save and close .plist file and relaunch the application

How to Fix “kernel NVDA(OpenGL): Channel exception! exception type = 0xd = GR: SW Notify Error” in OS X

You can read all about the problem from Apple Support Discussions:

Unfortunately, at the moment there is no clear solution how to fix the problem.

From the forum: “I believe this is a hardware problem. I also was suffering from the same channel exception errors (and screen corruption/freezes) and, on a whim I applied to the NVIDIA Settlement repair program. I sent my laptop in, they repaired the GPU and some other odds and ends (though they didn’t specify what else they changed) and sent it back. Since its return, no channel errors and no screen corruption. I strongly suggest looking here to see if you qualify for the free repair: http://www.nvidiasettlement.com/”

Still there is a debate about this being a hardware or a software problem.

I have my MacBook Pro repaired at Apple Service and it did help a lot, and yet I still have this problem.

I haven’t find the solution, BUT I might have found one problem source. Can you guess? Yep, that’s right, Flash. I had Flash version 10.2.152.21 and I downgraded it to version 10.1.102.64. For couple days now there hasn’t been any freezing.

How to Downgrade Adobe Flash

  1. Go to Adobe Flash Player – Downloads page.
  2. Click download older versions of Adobe Flash Player link.
  3. On Archived Flash Player versions page there are instructions to uninstall current Flash and a link to download previous Flash version.

Update: After downgrading the Flash, problem still remains. My MacBook Pro still freezes about once or twice a week.

Second update: Ok, I kind of gave up and reinstalled OS X. And you know what, in my case it looks like that did the trick. Maybe it is because majority of the applications and drivers I used to have are no gone. BUT, now I have an other problem: [link id=’668′ text='”KCGErrorFailure” with Unexpected Log Out’]. And I think this one is even more annoying error…

Do you have the problem? Have you find a solution?

gfxCardStatus

gfxCardStatusgfxCardStatus

Are you are an owner of any these MacBook models:

  • 2010 i5/i7 MacBook Pro with Intel HD/NVIDIA GeForce GT 330M GPUs
  • 2009 MacBook Pro with NVIDIA GeForce 9400M/9600M GT GPUs
  • Late 2008 MacBook Pro with NVIDIA GeForce 9400M/9600M GT GPUs

If you are, you may use application to narrow down you problem with the NVDA error. gfxCardStatus is a menu bar application that keeps track of which graphics card your MacBook Pro is using at any given time. It also allows you to switch between them on demand.

More about Nvidia Related Problems

BundleHunt 3 till 21st February 2011

Ok, this Bundle Hunt 3 is not specially a Mac deal, but includes Keynote Kung-Fu Wireframe Toolkit, Code Collector Pro and Relationship 2 and a ton of stuff for designers. Check it out!

  • Keynote Kung-Fu Wireframe Toolkit
    Wireframe quickly and easily in Apple’s Keynote. Keynote Wireframe Toolkit gives you the the building blocks to put together great looking prototypes in no time.
  • Code Collector Pro
    Code Collector Pro provides you with powerful tools to Organise Use & Share Code Snippets.
  • Relationship 2
    Relationship is a powerful contact and project management Mac App
  • And a lot more…

[BundleHunt 3: The Greatest Design Treasure →]

Scroll to Top