XAMPP htdocs directory

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

XAMPP htdocs directory

Postby silasl » 23. July 2008 12:43

Hi there,

Can anyone tell me if it's possible and if so how to point to a custom htdocs directory in XAMPP?

Cheers in advance,

Silas
silasl
 
Posts: 2
Joined: 23. July 2008 12:40

Postby Danodemano » 23. July 2008 17:01

You have to edit the httpd.conf file and change the "DocumentRoot" directive. You can point this to any folder you wish. Make sure that you restart the Apache server after making any changes to this file, otherwise they won't take effect.
Dan

Image
Danodemano
 
Posts: 31
Joined: 21. September 2007 00:16
Location: Dublin, OH

Postby sckoh » 24. July 2008 04:27

Yeah, good idea!
Image
User avatar
sckoh
 
Posts: 67
Joined: 01. March 2005 02:16
Location: Washington DC

Postby silasl » 24. July 2008 21:08

Excellent, cheers Dan.
silasl
 
Posts: 2
Joined: 23. July 2008 12:40

Postby admindell » 24. July 2008 21:52

dontt you have to edit the php.ini file too??

and ive tryed that, it dont work when the dir is in c:\\htdocs or c:\\wwwroot
I am creating a web admin panel for windoes xampp!

its called xDPanel.
the home page i have created can be found here. and please note that it is still under construction!
User avatar
admindell
 
Posts: 28
Joined: 28. May 2008 16:35

Postby sckoh » 24. July 2008 23:09

Won't you explain XDPANEL here for me to learn that?
Image
User avatar
sckoh
 
Posts: 67
Joined: 01. March 2005 02:16
Location: Washington DC

Postby Danodemano » 24. July 2008 23:56

admindell wrote:dontt you have to edit the php.ini file too??

and ive tryed that, it dont work when the dir is in c:\\htdocs or c:\\wwwroot


I didn't think so, I've done it before without editing that file. There is nothing in the php.ini file that has to do with the web root to my knowledge.
Dan

Image
Danodemano
 
Posts: 31
Joined: 21. September 2007 00:16
Location: Dublin, OH

Postby benza » 26. July 2008 03:54

Hi Dan, see you here again.. :D

change :
DocumentRoot "F:/xampp/xampp/htdocs"

to
DocumentRoot "C:/htdocs" or DocumentRoot "C:/wwwroot"

Right Dan?
benza
 
Posts: 8
Joined: 18. July 2008 01:57

Postby lollielala » 26. July 2008 09:06

Hey sckoh,
you've got the most
entertaining
signature I've seen...

I wish I had
handwritting like that :)
s t a r t s l o w , t h e n f a d e o u t
lollielala
 
Posts: 5
Joined: 26. July 2008 08:15


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 36 guests