7 Minute Miles

Mac mini server setup, pt. 2


The server set up continued today after I had one of my staff members get our internal DNS updated to resolve to the new IP address. I also dumped out all of the data from our previous Linux server that was running the WordPress-based intranet site. Once that was done, here’s what happened next:

  • Sudo hostname ‘new name here’
  • Ran the Server.app installer, which was pretty straight-forward. Kept all services turned off, with the exception of web.
  • Wow does the GUI look different now! Took me a little while to figure out what Apache items are set where (mainly needed to allow .htaccess and turn on PHP).
  • The location of the default web server root moves from /Library /WebServer /Documents to /Library /Server /Web /Data /Sites /Default under Mountain Lion Server, which threw me off at first.
  • Renamed the phpMyAdmin folder and moved it to the Default folder listed above. Also copied all of the WordPress intranet files to that folder, deleting all of the default junk.
  • Modified the config.inc.php file for phpMyAdmin and tested the login info I had set before. Also needed to import the MySQL data I had dumped from Linux and recreate the WordPress user in MySQL and give that user privileges to the WordPress database.
  • Once that was done, the site came up again on the new server. All that was left was to recreate and set permissions on the .htaccess file, rebuild permalinks in WordPress and update permissions on the wp-content/uploads folder.

I’ll need to read up more on the changes in Mountain Lion Server – it seems very different from the last time I used a Server product (pre-Lion?). Part three of this brief series will cover installing backup scripts for the database, adding aw-stats to the mix and whatever else I’m forgetting before vacation…

Originally published by DK on January 9, 2013 at 12:54 am in Longform, Technology, Work


flourish icon