Change Web Root Path for XAMPP on Windows

I had an existing XAMPP install on a shared location that I wanted to access using a laptop with its own local XAMPP install. I didn’t want to do any heavy lifting with the laptop, just wanted to access the web files on the shared server through the laptop’s localhost.

I also didn’t want to relocate the entire XAMPP folder on my laptop, so I instead modified the httpd.conf file on my local XAMPP install to point to the web root of the remote XAMPP install.

Here’s what I did:

  1. Locate httpd.conf file on my local XAMPP install: C:\xampp\xampp\apache\conf\httpd.conf
  2. Edit the “DocumentRoot” line to the location of the remote \htdocs folder. I changed mine from:
    “C:/xampp/xampp/htdocs” to “C:/Users/Ann/Documents/My Dropbox/Dev/Xampp/xampp/htdocs”
  3. Edit the “Directory” tag to the same remote location you set for DocumentRoot. My Directory tag looked like Directory “C:/Users/Ann/Documents/My Dropbox/Dev/Xampp/xampp/htdocs”
  4. Save the file and restart your local Apache server.
  5. Navigate to “http://localhost/” in your browser and you should see the remote web site files.

Subscribe to comments Comment | Trackback |
Post Tags:

Browse Timeline


Comments ( 20 )

[...] Dropbox Xampp Web: Aptana + XAMPP + Dropbox: portable– I’ve been playing around sorting out some things for my wife’s school website recenty – some of it from home, some of it from work, both on Aptana Studio, all files on Dropbox. pgdev.posterous.com/aptana-xampp-dropbox-portable-development-in – besuchen chruezundquer.ch Ich bin ein grosser Fan von Dropbox. Dropbox ist perfekt um gemeinsam, oder auch allein, von unterschiedlichen Computern oder Smartphones, Dokumente zu bearbeiten, ohne sie hin … chruezundquer.ch – besuchen Change Web Root Path for XAMPP on Windows– I had an existing XAMPP install on a shared location that I wanted to access using a laptop with its own local XAMPP install. I didn’t want to do any heavy http://www.alphapapahotel.com/change-path-to-web-root-for-xampp-on-windows/web-development – besuchen [...]

Dropbox Xampp – GeekLogy added these pithy words on Apr 02 12 at 12:36 pm

tips on saving money for baby…

Change Web Root Path for XAMPP on Windows | Alpha Papa Hotel…

tips on saving money for baby added these pithy words on Apr 25 14 at 11:52 pm

free tool dragon city gold…

Change Web Root Path for XAMPP on Windows | Alpha Papa Hotel…

free tool dragon city gold added these pithy words on Jun 12 14 at 9:01 am

dragon city breeding time…

Change Web Root Path for XAMPP on Windows | Alpha Papa Hotel…

dragon city breeding time added these pithy words on Jul 02 14 at 6:07 pm

does the venus factor work…

Change Web Root Path for XAMPP on Windows | Alpha Papa Hotel…

does the venus factor work added these pithy words on Jul 03 14 at 6:51 pm

LAN…

Change Web Root Path for XAMPP on Windows | Alpha Papa Hotel…

LAN added these pithy words on Jul 26 14 at 3:41 pm

raid 0 memory card data Recovery software Free download…

Change Web Root Path for XAMPP on Windows | Alpha Papa Hotel…

raid 0 memory card data Recovery software Free download added these pithy words on Sep 20 14 at 10:13 am

Hi Ann, I like to design & build on my Mac & test on windows.
so for so good with windows,
but I want to do the same with an OSX system…
Any best practices or suggested ideas?

Thanks
Phil

Phil D added these pithy words on Nov 13 10 at 11:58 pm

Hi Phil, I wish I had some suggestions for you but my dev experience on Macs is pretty limited. I hope to snag myself a MacBook soon and change that. :)

Ann added these pithy words on Nov 16 10 at 10:29 pm

Hey thank you very much i am web developer was always worried if i lost my work data from my C drive. today i have changed my directory :D

Muhammad Ateeq Rafeeq added these pithy words on Apr 07 11 at 11:19 am

But can we also change the location of database as well, as this is also important in terms of latest database to keep.
hope web developers get me ;-)

Aslam Shahid added these pithy words on Aug 26 11 at 10:33 am

Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info particularly the last part :) I care for such information much. I was looking for this particular information for a very long time. Thank you and best of luck.

Jasmin added these pithy words on Apr 20 13 at 8:41 am

Asking questions are in fact good thing if you are not understanding something fully, except this paragraph
offers fastidious understanding even.

t shirts added these pithy words on Apr 20 13 at 6:14 pm

What’s up to all, the contents present at this web page are truly remarkable for people experience, well, keep up the good work fellows.

stella riley added these pithy words on Apr 26 13 at 10:00 am

style. The light blue green color and the embellishments make it the perfect summer bag to wear at evening parties. This is from Moyna. You can get this at Couture

louis vuitton outlets stores added these pithy words on Apr 27 13 at 7:35 am

I’ve done what was writen, I restarted and everything, I’ve even restarted my laptop 2 times but everytime again I get a screen with the text

Access forbidden!

You do not have permission to access the requested directory access. There is either no index document or folder is Read.

If you believe that this server is in error, please contact the webmaster.

Error 403

localhost
Apache/2.4.3 (Win32) PHP/5.4.7 OpenSSL/1.0.1c

How can I fix this?

Daan added these pithy words on May 07 13 at 11:19 am

Someone necessarily help to make significantly posts I might state.
That is the very first time I frequented your web
page and thus far? I amazed with the analysis
you made to create this actual post extraordinary.

Wonderful task!

Here is my site Armand

Armand added these pithy words on May 25 13 at 4:32 am

During the autumn season after fertilization the adult female praying mantis will lay 100 to 400 eggs.

In the wild, the iguana must survive so they are usually
very fast. These lizards can weigh 11 pounds on average
and can grow up to roughly 6.

how you can iguana good care added these pithy words on Jul 18 13 at 8:50 pm

Wow, this piece of writing is fastidious, my younger sister is analyzing these kinds of
things, therefore I am going to let know her.

ramadan 2013 prayer schedule added these pithy words on Jul 28 13 at 6:29 am

Feel free to visit my website: Garden Furniture York Uk (Kimberly)

Kimberly added these pithy words on Sep 17 13 at 8:09 am

Add a Comment

You must be logged in to post a comment.


© Copyright 2009-2010 Alpha Papa Hotel . Thanks for visiting!