Both Grub and LILO allow single-user boots as long as you haven't disabled the ability to edit the boot directives. Just add "single" to the list of options on the "kernel" directive.
My normal panic recovery is just to boot off a Fedora/RedHat/CentOS install cd/dvd and when the intial screen displays, type in "linux single" at the prompt. That way I can modify files that would be difficult to maintain if I was actually running under them.
Incidentally, the original messages indicated that the variable name wasn't provided on an export command. That is, instead of
it was coded incorrectly as
Actually, I suspect that there was a directory named "Apache Foundation", and it's possible that the actual offending statement was more like
which I think would be interpreted as 2 separate exports separated by the blank in the directory name "Apache Foundation"
This is why "user friendly" names with embedded spaces in them are bad.
If you absolutely positively insist on spaces in pathnames, code the directive like one of the following:
The one with quotes around it is somewhat safer for most of us.