Page 1 of 1

Modifying DocumentRoot - UPDATED

PostPosted: 10. February 2005 00:49
by Crashin
I would like to change the DocumentRoot in httpd.conf to a different location where I've been serving files for years, and I can successfully do so. Yet, if I use the php switch feature to go from PHP 4 to PHP 5, the httpd.conf file is rewritten with the default installation value.

How can I prevent this from happening, so that I can switch between the two versions (a VERY cool feature, by the way) without my DocumentRoot getting changed?

Thanks! Love XAMPP!!!

UPDATE

PostPosted: 10. February 2005 17:11
by Crashin
Okay, I've discovered something. The httpd.conf file is preserved for the version of PHP that is switched to. For example, I modified the httpd.conf file with the new DocumentRoot path while in PHP 4, then switched to PHP 5 and the path reverted. When I switched back to PHP 4, my modified path re-appeared.

I haven't figured out where the different versions of the httpd.conf files are being stored, so I guess I'll just change the DocumentRoot path in both version and I **should** be okay. I would like to understand how this is being done, though, just to better understand XAMPP.