Create a Cheap Server Using the Regular Snow Leopard Install
Posted 12/23/2009 at 2:32pm
| by Cory Bohon

Many Mac users were wowed by Apple’s Mac mini server package when it was announced, but at $1,000, it's still a bit too pricey for even the average person to justify shelling out the cash for a home server. Fear not true believers, we're going to show you how to turn that old Intel Mac you’ve got lying around into a server that can duplicate many of Snow Leopard Server's features without shelling out another penny.
Difficulty Level
Hard
What You Need
> Intel Mac
> OS X 10.6 Snow Leopard (We recommend the Snow Leopard Family Pack)
> MAMP (Free)
> OpenFire (Free)
> XCode
> QuickTime Broadcaster (Free)
> Router that supports Port Forwarding (We used the Airport Extreme)
Serving up Web Pages
Mac OS X comes with the Apache web server built in, but if you want to easily have access to MySQL (for databases), PHP (web programming language), or Perl (another programming language), then we suggest you install XAMPP or MAMP, which includes Apache, PHP, Perl, and other tools in a lightweight package that you can install with just one download.
For this tutorial, we’ll install MAMP, but you could choose XAMPP as well. Instructions on how to install each package are available on both sites. Head to the MAMP download page and grab MAMP. We’ll be using the free version of MAMP to set up our web server.

Once the application is downloaded, extract the .dmg file and drag the MAMP folder to your applications folder.

To start the web server navigate to Applications > MAMP and launch the MAMP application.

After you've launched MAMP, click on the Open Start Page button. You’ll then be presented with a page that tells you the MySQL username/password/port number, and gives you access to tools like phpMyAdmin and SQLiteManager. You also have access to a phpInfo page that can tell you more about the version of PHP that is installed. You can then create MySQL databases for CMS installs (i.e. Wordpress, Drupal, Joomla, etc.).

Any websites you create need to be stored in the Applications/MAMP/htdocs folder. You can look at the pages stored there by opening your browser of choice and navigating to the URL localhost:8888 (the default address and port for accessing the MAMP web server).
For more about MAMP, you can consult the documentation on their website.
Setup FTP Access to Your Server
FTP (File Transfer Protocol) will allow you to login to your Mac via your local network or across the Internet (see DynDNS below) to transfer files to and from your Mac. Mac OS X comes with a built-in FTP Server.

To start and configure the FTP Server, open System Preferences and click Sharing. Check the box next to File Sharing and then select Options.

A popup window will give you more options. Select the Share files and folders using FTP checkbox. After you check the box, your local IP address will be shown to you.

You can use this address along with your Mac OS X username and password to login via your favorite FTP client (we recommend Transmit). You can login using either your long OS X name (i.e. “Cory Bohon”) or your short name (i.e. “Cory”). Once logged in, you can upload or download any files you wish.
NEXT: Create a Jabber Server and Set Up CalDAV