Apache on Mac OS X

This is probably well known to most folks but I thought I would document it anyway.

If you are used to working on a linux box you will not find the necessary files for Apache in places you expect.

The httpd.conf file is in: /etc/apache2

The conf files for virtual hosts etc are in /etc/apache2/extra (Note: The default httpd.conf file comments out the include for virtual hosts.)

The default location for the log files is /private/var/log/apache2. (Note: private will not show up in the Finder). I created a symlink to it on my desktop)

The default DocumentRoot is /Library/Webserver/Documents

There is no init.d directory. You can start/stop/restart apache from /usr/sbin/apachectl

Hopefully this will help you avoid a lot of find . |grepping I had to do.

Multiple monitors using Sun VirtualBox

I use Sun's VirtualBox hosted on my Mac Pro which has four monitors.

I run my trading software on a Windows XP VM and definitely need it to span monitors to view all the charts.

The following is all in the VirtualBox documentation but I thought I would summarize it all on one place

  • The client must be WindowsXP
  • The client must be started in the "headless" mode
  • Access to the client is via RDC

Starting the client in headless mode.

I start the client from the command line. The name of the client is case sensitive. You should see something like the following:

BigMac:cryptogram_production don$ VBoxHeadless -startvm xp_trading
VirtualBox Headless Interface 3.0.6
(C) 2008-2009 Sun Microsystems, Inc.
All rights reserved.


Listening on port 3389

[More]

BlogCFC was created by Raymond Camden. This blog is running version 5.9.4.001. Contact Blog Owner