I am having some trouble getting ServerRoot and DocumentRoot relative directories set correctly. My goal is to have both be relative directories, so I could launch apache from any directory and not have to worry about where it was located. However I am getting strange behavior with my DocumentRoot. ServerRoot works fine, but DocumentRoot seems to assume that ServerRoot is relative to C:\xampp, even if apache is being launched from C:\Users\Me\Desktop\xampp.
All locations point to folders in the standard XAMPP directory structure.
Here are my current settings:
- Code: Select all
ServerRoot "apache" # relative path to C:\Users\Me\Desktop\xampp\apache
DocumentRoot "../htdocs"
Here's the output of trying to launch apache:
- Code: Select all
C:\Users\Me\Desktop\xampp>apache\bin\httpd.exe
Warning: DocumentRoot [C:/xampp/htdocs] does not exist
I believe the DocumentRoot should be displaying C:\Users\Me\Desktop\xampp\htdocs. No matter what I change, it seems to end up referencing C:\xampp. I did a global search and couldn't find where that was being referenced. As a secondary problem, DocumentRoot seems to be very picky in what it accepts (e.g. I get an error trying "htdocs" in the example above). Does anyone have any insight into what could be causing these issues?
I'm running XAMPP Lite 1.7.7 on Windows 7 x86.
Thanks!