Page 1 of 1

how to change htdocs path (Win Serv2008R2SP1) 1.7.7 [SOLVED]

PostPosted: 03. October 2011 11:09
by its me
hello everybody,
this my first post, i am medium level php developer but first time to use xampp and up to now very happy with it
i was using normal apache and mysql instllations before and after recommending xampp to me i have used it
in the beginig i run some trubles with firewall and this sthings then i by passed them when read a lot of useful informtion on your forums

now i have installed it in the default location c:\xampp on windows 2008R2 sp1 and all seems ok,

I need to change the htdocs location to be out of xampp folder... c:\htdocs - this is badly needed and i need your help to configure it, otherwise advise certainly that is not doable?

thanks in advanced, your application seems fantastic and i am pretty sure that will like it and be one of the friends in this community

awaiting your support

Mike

Re: htdocs path

PostPosted: 03. October 2011 11:16
by Sharley
What version of XAMPP have you installed?
viewtopic.php?f=16&t=48331
viewtopic.php?f=16&t=32670


Open in a text editor C:\xampp\apache\conf\httpd.conf file - look for DocumentRoot and change it to suit.

Save the file and restart Apache.

If issues with starting Apache read the C:\xampp\apache\logs\error.log file for clues.

Alternatively you could create a VirtualHost in the C:\xampp\apache\conf\extra\httpd-vhosts.conf file.

Search forum for the vhost or virtualhost keywords.

Re: htdocs path

PostPosted: 03. October 2011 11:35
by its me
WOW! that was super quick answer!
Unfortuntely i tried that but it couldn't load the index.php when it is in c:\htdocs\index.php
any idea that should defintely be in xampp folder for sure? otherwise it will not work? i don't think so also
i tried to install service, uninstall, stop and start apache many times but all the same, says forbidden you you don't have access to this directory
note: i moved the htdocs from xmapp folder so it is now already in c:\htdocs and there is no htdocs folder in c:\xampp
any idea?

Re: htdocs path

PostPosted: 03. October 2011 11:39
by Altrea
Do you have changed the Directory block too?
Code: Select all
<Directory "/xampp/htdocs">


P.S.: Next time, post all information that are needed. Look into Sharleys two linked posts.

Re: htdocs path

PostPosted: 03. October 2011 11:49
by its me
I'm sorry Altrea, I'll read more next time, thanks a lot, thanks a lost also Sharley, I will try what you told me and reply tomorrow as I need to leave now,

there is also many other questions like ftp stuff and htaccess and other issues, as i am coming from other enviornment.... i think i will read more in this forums then will be on track with you guys :)

thanks again, i will be in touch
Mike

Re: htdocs path

PostPosted: 03. October 2011 16:48
by JonB
On Windows server you will, for sure, need to make sure both sets of folders C:\xampp\htdocs and c:\htdocs (or whatever) have the same owners and NTFS permissions.

Good Luck
:shock:

Re: htdocs path

PostPosted: 04. October 2011 09:10
by its me
yes, finally worked on the new path :) thanks guys, actually I'm running into other troubles now, and I'm reading in forums before posting :)
thanks a lot again
Mike