XAMPP server facilitates the Apache, PHP and MySql environment for web developers.
In XAMPP “htdocs” at “C:/xampp/htdocs” is the default Document Root directory which contains all web site related stuffs. One can easily able to change the desired Document Root directory. After change take effect, this onwards all the web site related stuffs will open from this directory.
1. Select a desire new location directory to make it as default Document Root. (exp: D:/WWW for me only)
2. GoTo “httpd.conf” file at C:\xampp\apache\conf\httpd.conf default location.
3. Open “httpd.conf” file on notepad program for edit.
4. Find(ctrl+F): “DocumentRoot” in httpd.conf file.
5. Change following:
DocumentRoot "C:/xampp/htdocs" to DocumentRoot "D:/WWW" (your desired folder) and same for below line.
<Directory "C:/xampp/htdocs"> to <Directory " D:/WWW">
<Directory "C:/xampp/htdocs"> to <Directory " D:/WWW">
6. Save the document and exit.
Now re-start your XAMPP server to change take effect and enjoy.
For more about Working with XAMPP read here >>
1 comments :
Nice Blog... Thank you sharing this information..
Provident Kenworth
Vaswani Menlo Park
Marina Skies
Post a Comment
Your remarks here!