---
title: 'AMMPS For Mac - Changing the Apache Document Root'
url: 'https://www.worldoweb.co.uk/2013/ammps-for-mac-changing-the-apache-document-root-path'
markdown: 'https://www.worldoweb.co.uk/2013/ammps-for-mac-changing-the-apache-document-root-path.md'
date: '2013-02-19'
description: 'Learn how to change the Apache document root path in AMMPS for Mac.'
taxonomy:
  category:
    - Mac
  tag:
    - Server
---

# AMMPS For Mac - Changing the Apache Document Root

 Published on February 19, 2013 by Tracy Ridge in  [Mac](https://www.worldoweb.co.uk/category/category:Mac) 

I’ve tried a few testing servers over the years but now I have a Mac I decided to use [Ampps](https://www.ampps.com/ "Ampps") for all of my development needs. Ampps, if you don’t already know is an alternative to Xampp, Mamp, Wamp and various other web servers. When installing a web server I like to move the document root outside of the default path to prevent me deleting it and also to keep it backed up so here is a little tutorial on how to change the Apache document root in Ammps.

### Lets Get Started

First of all start Ammps and click on the Apache on the left of the menu. Click **Configuration** and the **httpd.conf** file will open up in your default text editor.

![Ampps Menu](https://www.worldoweb.co.uk/user/data/wp-content/uploads/ampps1.png)

### Finding your Document Root Path

Open finder in Mac and navigate to the folder you want to create your document root. For the purpose of this tutorial I will use the **Documents Folder** but some people may want to use a folder in Dropbox or a similar cloud storage device so that files are always backed up and synced over multiple platforms if needed.

![Document Path](https://www.worldoweb.co.uk/user/data/wp-content/uploads/ampps2.png)

As you can see in the image above I have added the folder **www** which will hold all of my files. If you see at the bottom you will see a path which starts with **Macintosh HD -> Users -> Username -> Documents**. Make a note of this and go back to the httpd.conf file which you opened earlier in this tutorial.

Look for the following:

```apacheconf
DocumentRoot "{$path}/www"
```

and change it to display your own path like so

```apacheconf
DocumentRoot "/Users/yourname/Documents/www"
```

Now we need to change one more setting in the same file.

Find the following line:

```apacheconf
# This should be changed to whatever you set DocumentRoot to.
# ====================================================== # !!! DO NOT CHANGE THIS LINE AND THE FOLLOWING ONES !!! # ======================================================
```

and change it to, you guessed it!

```apacheconf
# This should be changed to whatever you set DocumentRoot to.
# ====================================================== # !!! DO NOT CHANGE THIS LINE AND THE FOLLOWING ONES !!! # ======================================================
```

Save the file and restart apache and from now on you can place all of your files in the new folder.

### Conclusion

The same solution may also work for other web servers that use Apache including Windows variants. Just remember that Windows Servers use forward slashes

```
(/)
```

instead of backslashes

```
(\)
```

and you may also require to prefix the path with C:/

### Share

 [X](https://x.com/intent/tweet?text=AMMPS%20For%20Mac%20-%20Changing%20the%20Apache%20Document%20Root&url=https%3A%2F%2Fwww.worldoweb.co.uk%2F2013%2Fammps-for-mac-changing-the-apache-document-root-path&via=worldoweb "Share on X") [Facebook](https://www.facebook.com/sharer.php?u=https%3A%2F%2Fwww.worldoweb.co.uk%2F2013%2Fammps-for-mac-changing-the-apache-document-root-path "Share on Facebook") [Reddit](https://www.reddit.com/submit?url=https%3A%2F%2Fwww.worldoweb.co.uk%2F2013%2Fammps-for-mac-changing-the-apache-document-root-path&title=AMMPS%20For%20Mac%20-%20Changing%20the%20Apache%20Document%20Root "Share on Reddit") [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.worldoweb.co.uk%2F2013%2Fammps-for-mac-changing-the-apache-document-root-path "Share on LinkedIn") [Bluesky](https://bsky.app/intent/compose?text=AMMPS%20For%20Mac%20-%20Changing%20the%20Apache%20Document%20Root%20https%3A%2F%2Fwww.worldoweb.co.uk%2F2013%2Fammps-for-mac-changing-the-apache-document-root-path "Share on Bluesky") [Email](mailto:?subject=AMMPS%20For%20Mac%20-%20Changing%20the%20Apache%20Document%20Root&body=https%3A%2F%2Fwww.worldoweb.co.uk%2F2013%2Fammps-for-mac-changing-the-apache-document-root-path "Share via email") 

#### Tags

 [ Server](https://www.worldoweb.co.uk/tag/tag:Server) 

##### Next

 [ ← Best UK Web Hosting With Unlimited Features ](https://www.worldoweb.co.uk/2013/best-uk-web-hosting-with-unlimited-features) 

OR

##### Previous

 [ Low Cost iPhone is at Apple’s Charts - Product Rumors Are In The Air! → ](https://www.worldoweb.co.uk/2013/low-cost-iphone-is-at-apples-charts-product-rumors-are-in-the-air)

---

## Navigation

- Previous: [Best UK Web Hosting With Unlimited Features](https://www.worldoweb.co.uk/2013/best-uk-web-hosting-with-unlimited-features.md)
- Next: [Low Cost iPhone is at Apple’s Charts - Product Rumors Are In The Air!](https://www.worldoweb.co.uk/2013/low-cost-iphone-is-at-apples-charts-product-rumors-are-in-the-air.md)
