<p>When I'm trying to get past my initial errors, here are some of the things I try. This is assuming you have the usual directory setup, with the webroot <code>public</code> on the same level as <code>craft</code></p>

<ul>
<li>Create <code>foo.html</code> in <code>public</code>, and visit <code>yourdomain.com/foo.html</code>. Good for mamp problems, virtual host problems, permissions problems.</li>
<li>edit <code>public\index.php</code> and add <code>die('made it to index');</code> right at the top (after the <code>&lt;php?</code>). Visit <code>yourdomain.com</code>. Good for some .htaccess problems.</li>
<li>edit <code>public\index.php</code> and add <code>die('index is about to require '.$path);</code> right above the <code>require</code> at the bottom (and of course take out the earlier <code>die</code>). Make sure the craft path is right.</li>
<li>edit <code>craft/app/index.php</code> and add <code>die('made it to craft/app/index');</code> right at the top. Can expose some php problems (open_basedir e.g.)</li>
</ul>

<p>That's usually enough to get me started.</p>

CC BY-SA 3.0
2015-01-16T23:14:38.560Z
It was my MAMP Pro settings – needed to be Run Apache as home not www,
Kev N
CC BY-SA 3.0
2015-01-16T20:23:14.980Z
2015-01-16T20:23:14.980Z
Marion Newlevant
<p>Hope this video is useful for your query</p>
<p><a href="https://youtu.be/rWHYTZEpa-M" rel="nofollow noreferrer">https://youtu.be/rWHYTZEpa-M</a></p>

CC BY-SA 4.0
2021-04-05T22:29:04.677Z
2021-04-05T22:29:04.677Z
Prashanth K
<p>Sorry to repeat this question but not yet found a fix:</p>

<p>Followed the install and when I try and navigate to:
site/admin</p>

<p>I get: "The requested URL /admin was not found on this server"
Have tried moving files around/permissions as 777, and changing the $craftpath but no joy as yet.
I use MAMP set up for other projects so is there an approach <em>without</em> changing MAMP settings?
Or am I missing something obvious?</p>

<p>Appreciate any help albeit a very basic question as want to get started!</p>

<p>Cheers</p>

CC BY-SA 3.0
2015-01-15T22:58:40.737Z
What happens if you go to `yourdomain.com/index.php?p=admin`?
Brad Bell
CC BY-SA 3.0
2015-01-16T00:54:34.613Z
Thanks, I get the "Could not find your craft/ folder…" alert – have tried various paths for $craftpath and changing directories, can't figure out what I'm doing wrong? Sorry
Kev N
CC BY-SA 3.0
2015-01-16T00:58:59.507Z
When I create a new project with MAMP Pro e.g. craft/ the default index.php file MAMP creates loads fine with craft/ (i.e. craft.index.php) incase that indicates any issues or not
Kev N
CC BY-SA 3.0
2015-01-16T01:30:54.720Z
Have you seen [this guide](https://una.github.io/2013/08/13/the-absolute-beginners-guide-to-setting-up-craft-on-mac.html) to getting Craft running on MAMP?
Brad Bell
CC BY-SA 3.0
2015-01-16T07:37:23.967Z
Cheers, yes but will give another go
Kev N
CC BY-SA 3.0
2015-01-16T10:07:06.923Z
When we run local Craft installs on MAMP we run a folder called 'public' on the same level as craft/ (this is as the download comes) - this mirrors the set up on most live servers, and the default craft path and htaccess then works fine. You'd then access your admin panel at public/admin Also check the htaccess file in public is named '.htaccess' - easy to miss, as I think the default file in the downloaded public folder is named 'htaccess' (without the dot)
pumkincreative
<mamp>
Craft install locally with MAMP Pro
# Craft install locally with MAMP Pro

(Asked by: username_0 on 2015-01-15)

Sorry to repeat this question but not yet found a fix:

Followed the install and when I try and navigate to:
site/admin

I get: "The requested URL /admin was not found on this server"
Have tried moving files around/permissions as 777, and changing the $craftpath but no joy as yet.
I use MAMP set up for other projects so is there an approach *without* changing MAMP settings?
Or am I missing something obvious?

Appreciate any help albeit a very basic question as want to get started!

Cheers

**Tags:** mamp
> **Comments:**
> **username_1**: What happens if you go to `yourdomain.com/index.php?p=admin`?  
> **username_0**: Thanks, I get the "Could not find your craft/ folder…" alert – have tried various paths for $craftpath and changing directories, can't figure out what I'm doing wrong? Sorry  
> **username_0**: When I create a new project with MAMP Pro e.g. craft/ the default index.php file MAMP creates loads fine with craft/ (i.e. craft.index.php) incase that indicates any issues or not  
> **username_1**: Have you seen [this guide](https://una.github.io/2013/08/13/the-absolute-beginners-guide-to-setting-up-craft-on-mac.html) to getting Craft running on MAMP?  
> **username_0**: Cheers, yes but will give another go  
> **username_2**: When we run local Craft installs on MAMP we run a folder called 'public' on the same level as craft/ (this is as the download comes) - this mirrors the set up on most live servers, and the default craft path and htaccess then works fine. You'd then access your admin panel at public/admin Also check the htaccess file in public is named '.htaccess' - easy to miss, as I think the default file in the downloaded public folder is named 'htaccess' (without the dot)  

---

## 2 answers

### Answer by username_3 on 2015-01-16. Score: 5

When I'm trying to get past my initial errors, here are some of the things I try. This is assuming you have the usual directory setup, with the webroot `public` on the same level as `craft`

* Create `foo.html` in `public`, and visit `yourdomain.com/foo.html`. Good for mamp problems, virtual host problems, permissions problems.
* edit `public\index.php` and add `die('made it to index');` right at the top (after the `). Visit yourdomain.com. Good for some .htaccess problems.`
* edit `public\index.php` and add `die('index is about to require '.$path);` right above the `require` at the bottom (and of course take out the earlier `die`). Make sure the craft path is right.
* edit `craft/app/index.php` and add `die('made it to craft/app/index');` right at the top. Can expose some php problems (open\_basedir e.g.)

That's usually enough to get me started.

> **Comments:**
> **username_0**: It was my MAMP Pro settings – needed to be Run Apache as home not www,  

---

### Answer by username_4 on 2021-04-05. Score: 1

Hope this video is useful for your query

<https://youtu.be/rWHYTZEpa-M>


---

