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

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

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

Postby its me » 03. October 2011 11:09

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
its me
 
Posts: 61
Joined: 03. October 2011 09:45
Operating System: Windows server 2008 SP1 R2

Re: htdocs path

Postby Sharley » 03. October 2011 11:16

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: htdocs path

Postby its me » 03. October 2011 11:35

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?
its me
 
Posts: 61
Joined: 03. October 2011 09:45
Operating System: Windows server 2008 SP1 R2

Re: htdocs path

Postby Altrea » 03. October 2011 11:39

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8298
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: htdocs path

Postby its me » 03. October 2011 11:49

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
its me
 
Posts: 61
Joined: 03. October 2011 09:45
Operating System: Windows server 2008 SP1 R2

Re: htdocs path

Postby JonB » 03. October 2011 16:48

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:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: htdocs path

Postby its me » 04. October 2011 09:10

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
its me
 
Posts: 61
Joined: 03. October 2011 09:45
Operating System: Windows server 2008 SP1 R2


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 68 guests