Oracle\'s instructions specify setting DYLD_LIBRARY_PATH. This makes my application dependent on random users\' configuration and is very troublesome to set up.
How
After much research I found an sustainable solution to this error, that involves editing Apache's launchd configuration .plist file to specify the required DYLD_LIBRARY_PATH, ORACLE_HOME, and LD_LIBRARY_PATH environment variables.
You can view the full answer here: https://stackoverflow.com/a/20670810/1914455