Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8409651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:58:10+00:00 2026-06-09T23:58:10+00:00

I am trying to use XAMPP with NetBeans for PHP. When I move my

  • 0

I am trying to use XAMPP with NetBeans for PHP. When I move my files to the htdocs folder everything works fine. However when they are in the home folder XAMPP cannot find them. Below is the instruction from XAMPP I followed it but it’s not working.

     **Where should I put my Websites?**
     You can put your Websites in /Applications/XAMPP/htdocs/ 
     and access them via http://localhost/

     Or you put your Websites in the Sites-Folder in your Home 
     and access them via http://localhost/~leslie/.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T23:58:12+00:00Added an answer on June 9, 2026 at 11:58 pm

    You can change your document root pretty easily by following these instructions:


    1. Locate the file called httpd.conf. Mine is located in this directory: /Applications/XAMPP/etc
    2. Find the line that says:

      DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"

    3. Change the path to where you want your files to live. Use an absolute path from the root directory (i.e. it should start with a / and if you’re using Unix/Linux and a \ if you’re on Windows).

    4. Still in the httpd.conf file, scroll down a few lines until you see this text:

      # This should be changed to whatever you set DocumentRoot to.
       <Directory "/Applications/XAMPP/xamppfiles/htdocs">
      

      and replace the path with whatever you typed in step 3.

    5. This part is important. In order for these changes to take place, you need to restart Apache (otherwise it won’t work). Since you’re using XAMPP, just use the GUI to do this (click Stop, and then Start next to the Apache label).

    Now, you can put your web content in the new directory (i.e. the home folder in your case)



    If, on the other hand, you want to add an additional directory to serve files from, locate the httpd.conf file mentioned in step 1 above, and add this line:

    Alias /home ~/
    <Directory ~/>
    Order allow,deny
    Allow from all
    </Directory> 
    

    Restart Apache
    Now, you can visit localhost/home in your browser and it will serve files from your home directory in addition to the files in your document root (htdocs by default, or whatever you change it to using the steps above).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use XAMPP on Leopard. I'm trying to create cache files using fopen but
I am developing locally with PHP on Xampp. I am trying to use recaptcha
I'm trying use mod_rewrite to rewrite URLs from the following: http://www.site.com/one-two-file.php to http://www.site.com/one/two/file.php The
I'm trying to use ajax to make multiple simultaneous requests to a php script,
I am trying use a javascript function while passing php variables in it. For
I am trying use a javascript function while passing php variables in it. For
I'm new to PDO and am trying to use it on xampp for windows.
I'm trying to use PHP ActiveRecord in Codeigniter. I have a model like this:
I'm using (or trying to anyway) use the bundled XDebug with XAMPP 1.7.2. It
I'm trying to do GPG encryption on a Windows platform, in PHP, running XAMPP.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.