Archive for the ‘Apple Server Admin’ Category

OS X Server Wildcard DNS

Wednesday, December 7th, 2011

So many folks have asked me about this when they have been trying to setup a WordPress Network with an OS X server.

On 10.6.x you do the following:

  1. Setup your base level domain in Server Admin (usually www)
  2. Open Applications > Utilities > Terminal
  3. Type – cd /var/named/zones
  4. This get you to the folder with DNS configuration files
  5. Type – ls -al
  6. Find the db file that is similar to your domain (i.e. db.my.website.zone.apple)
  7. Open the file in a text editor by typing – nano db.my.website.zone.apple (use your file name)
  8. Ctrl-V (or scroll) to the bottom of the document
  9. Add wildcard entry by typing – * IN CNAME website.com.
  10. Close the document with Ctrl-x and then type – y to save.
  11. Go back to Server Admin and restart the DNS service.
  12. * should now appear.

Showing DNS wildcard in Server Admin

10.6.2 Server with APC cache

Monday, December 14th, 2009

As many are aware there is some funkiness trying to get APC caching working with 10.6.2 Server. After running all over the web, I finally generated the needed apc.so using macports.

If you want to save yourself a ton of trouble , you can try the attached apc.so.

Steps to install:

  1. Download and unzip.
  2. Move to “/usr/lib/php/extensions/no-debug-non-zts-20090626/”
    (Use cli: sudo mv apc.so /usr/lib/php/extensions/no-debug-non-zts-20090626/) this assumes your are in the folder with apc.so
  3. Edit your php.ini file (/etc/php.ini) with the following:
    [APC Cache]
    extension=apc.so
    (***Add additional configuration parameters here***)
  4. Save your php.ini and restart the webserver.
  5. Browse to your phpinfo file on your webserver and check to see if APC is running.

I hope this saves some of you time. I’m really at a lose to why Apple doesn’t correctly install PEAR/PECL so that developers can make the modifications they need.

Adding SSL Support to OpenDirectory Replica

Friday, October 31st, 2008

While configuring our web filter, we realized that Apple’s default master/slave setup only allows LDAPS through the master server. This has some major limitations in regards to the usefulness of replicas. It turns out that one simple terminal command solves the problem.

sudo slapconfig -setldapconfig -ssl on -sslcert /etc/certificate/<your certificate>.crt -sslkey /etc/certificate/<your certificate>.key -ssldomain <server domain>

If there’s a way to do this through the GUI I couldn’t find it. Hope this helps somebody else out there.