Setting Document Root to Point to a Network Share With Windows/Apache

Quick tip: If you’re wanting to have your Apache document root point to a network share in Windows, here’s what you have to do:

  1. Change your DocumentRoot to the network share (drive remapping doesn’t seem to work).  Example: DocumentRoot “//path/to/share”
  2. Make sure to update the DocumentRoot path in your <Directory> config
  3. Edit the Apache service
    1. On the “Log On’” tab, click the “Browse” button next to the “This account” radio button.
    2. Type in an account name that has access privileges to the network share and click “OK”
    3. Enter the correct password for the user
  4. Restart Apache and LOL your way to the bank.

PHP 5.3 and MySQL: A connection attempt failed because the connected party did not properly respond after a period of time…

Having difficulty connecting to MySQL through PHP 5.3.x? Know that MySQL and PHP are properly configured? Using Windows Vista / 7? The problem may very well be that you’re connecting to ‘localhost.’ According to Joe Bedan, simply changing ‘localhost’ to ‘’ will fix the problem, and he’s right!

According to another forum post, this is because Vista/7 does some goofy stuff with the ‘localhost’ alias. This person suggests that modifying the C:\Windows\System32\drivers\etc\hosts file to contain the line ‘ localhost’ will fix the problem (make sure to do this as an administrator!). Unfortunately, this wasn’t the case for me. However, it’s worth a shot for anyone experiencing this problem.


Which Version of Java: 32-bit or 64-bit?

Occasionally, I pretend to be a Python developer.  Thus far, my IDE of choice has been PyDev + Eclipse.  Recently, I did a few minor upgrades to my development box that allowed my to upgrade from Windows XP to Windows Vista 64.  Before I could begin using Eclipse, I needed to install the latest version of the JRE.  Since I prefer to download native 64-bit applications, I selected the 64-bit version of Java.  Now, I’m good to go, right?  Wrong.

Unlike the 64-bit version of .NET, the 64-bit version of Java apparently requires developers to create special 64-bit binary versions of their code.  However, in looking at the Eclipse download page, you’d never know that you needed a special 64-bit version (for Windows).  Only after a significant amount of treasure hunting did I find the location of the 64-bit version, found here

To sum things up, you’re better of downloading the 32-bit version of Java as the majority of applications that you’re going to want to run will only work with the 32-bit version of the JRE.