Create a new directory in xampp
To create a new directory in XAMPP, you can follow these steps:
Method 1: Using File Explorer
- Open File Explorer (Windows) or Finder (Mac).
- Navigate to the
htdocs
directory, which is usually located at:C:\xampp\htdocs
(Windows)~/xampp/htdocs
(Mac/Linux)
- Right-click inside the
htdocs
directory and select "New" > "Folder" (or "New Folder" on Mac). - Name your new directory (e.g., "mynewsite").
- Click "Create" to create the new directory.
Method 2: Using XAMPP Control Panel
- Open the XAMPP Control Panel.
- Click on the "File Manager" tab.
- Navigate to the
htdocs
directory by clicking on the folder icon or typing the path in the address bar. - Click on the "New Folder" button (or press
Ctrl + Shift + N
on Windows orCmd + Shift + N
on Mac). - Name your new directory (e.g., "mynewsite").
- Click "Create" to create the new directory.
Method 3: Using Command Line (Windows only)
- Open the Command Prompt as an administrator.
- Navigate to the
C:\xampp\htdocs
directory by typingcd C:\xampp\htdocs
and pressing Enter. - Create a new directory by typing
mkdir mynewsite
(replace "mynewsite" with your desired directory name) and pressing Enter.
Once you've created the new directory, you can access it by visiting http://localhost/mynewsite
in your web browser.
Remember to replace "mynewsite" with the actual name of the directory you created.