how to change Document root in xampp?

Problems with the Linux version of XAMPP, questions, comments, and anything related.

how to change Document root in xampp?

Postby arun » 08. March 2005 15:03

Hi all,

This is my first mail..
This site is really superb...
Thanks for the team..


i have a problem to set the document root in different path...

XAMPP's document root is /opt/lampp/htdocs
but i want to set the document root in different path.
i tried to change the document root in httpd.conf
even though it wont works...

any help

Thanks..
arun
 
Posts: 8
Joined: 08. March 2005 13:09

Postby Oswald » 08. March 2005 16:05

Dear arun!

Changing the DocumentRoot directive in /opt/lampp/etc/httpd.conf should work perfectly.

Did you restart your Apache after changing the httpd.conf file?

Best regards
Oswald
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
XAMPP Version: 5.5.19
Operating System: Linux

Postby Kristian Marcroft » 08. March 2005 21:44

Hi,

1. Change the DocumentRoot as you need it..
2. a couple of lines lower, you should also change the <Directory> Tag
3. Restart the Apache
4. last but not least, please clear your browser-cache

So long
KriS
User avatar
Kristian Marcroft
AF Moderator
 
Posts: 2962
Joined: 03. January 2003 12:08
Location: Diedorf

change Document root in xampp works

Postby arun » 09. March 2005 09:35

i have restarted apache and clear browser cache
Now it works..

Thanks to Oswald and Kristian
arun
 
Posts: 8
Joined: 08. March 2005 13:09


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 5 guests