I have a Ubuntu server running as a virtual machine (VirtualBox 3.1.0). I need to mount a shared folder before Apache starts, i.e., before any user logs in. Is this possible?
Is there any reason you don't have this done using the /etc/fstab file, like any other mounted directory?
Alternately, you could set it to mount using a startup script in /etc/init.d, and simply make sure it runs before your Apache startup scripts.