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:
- Locate httpd.conf file on my local XAMPP install: C:\xampp\xampp\apache\conf\httpd.conf
- 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” - 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”
- Save the file and restart your local Apache server.
- Navigate to “http://localhost/” in your browser and you should see the remote web site files.
Browse Timeline
Comments ( 10 )
[...] 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 pmHi 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
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.
![]()
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
![]()
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![]()
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.
Asking questions are in fact good thing if you are not understanding something fully, except this paragraph
offers fastidious understanding even.
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.
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
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?