Install and configure Apache, MySQL, PHP and phpMyAdmin on OSX 10.8 Mountain Lion

With the new cat out of the bag, getting the AMP stack running is a little different on OS X Mountain Lion 10.8 Preview 3 than is its predecessor OS X 10.7 Lion, here is the lowdown on getting Apache, MySQL, PHP and phpMyadmin running on the new OS.

Apache/WebSharing

The first difference in the new OS is the dropping of the GUI option to turn on Web Sharing in the System Preferences, it may be gone but Apache is definitely installed in the lower level of the OS and ready to go.

Tags:

No DNS Zones In Server Admin OS X Server

If your DNS zones are not available in Server Admin but OK in /var/named it maybe due to a crash when a zone was last edited.

 - Locate the last Zone that was edited and rename it with a .bak this will be found in  /var/named (If you don't know what the zone was then you'll have to try this procedure with each one).

 - Refresh the view in Server Admin - if the zones are now visible then you have found the corrupt one  - delete the zone that was stuffed

Tags:

Host Multiple Web Sites on OS X Server 10.7 Lion

Serving Multiple Web Sites on OS X 10.7 Lion with the Server.app.

OS X server provides functionality to host and serve multiple virtual websites from the same host over a single (or multiple) IP address, it can run the same confgurations like a regular Linux webserver as it uses Apache under the hood, you can set this up using the command line or by using some server tools that Apple provide. This tutorial uses Server.app and Server Admin, Server app is a paid for tool downloadable at the Apple store, Server Admin is a free download, link below.

Tags:

Fastest Way of Installing Drupal 7.14 on Mac OS X 10.7 , 10.6

Fastest Way to install the latest Drupal 7 version on Mac OS X Lion 10.7 or 10.6 Snow Leopard

fast-drupal-osx-lion-install

How to Add Install and Configure an SSL Certificate to Mac OS X 10.7 Lion Server

OS X Lion Server provides a number of services which can all be SSL enabled - this guide gets you up to speed on how to create, install and configure an SSL certificate in the Server.app interface for a secure encrypted connection.

Pre-requisites - OS X 10.7 Lion -Server.app -  properly formatted fully qualified domain name on machine such as:
server.yourdomain.com

Create a New Certificate

— launch Server App

click hardware - SSL > Edit...

Upgrading Mac OSX 10.6 Snow Leopard Server to Lion Server OSX 10.7

You can upgrade Mac OSX 10.6 Snow Leopard Server to Lion OSX 10.7 easily, what you'll need is a copy of the Lion installer and the new Server.app

File the Server.app in the Applications folder otherwise the install will fail and the installer will wait until the Server.app is downloaded from the Apple App store. You can file the actual Lion installer anywhere on the local drive.

If you have an Open Directory Master it will be preserved with the Lion Server upgrade but just check there is no DNS issues before you start, run:

Tags: