<p>Apparently what I did was correct, because now it works. I had some EE files right next to the index.php files and these messed things up for some reason. Probably the admin.php file.</p>

<p>At least now I know it's easy to deploy Craft with the three steps I mentioned above</p>

CC BY-SA 3.0
2015-03-04T21:42:19.140Z
2015-03-04T21:42:19.140Z
noregt
<p>I've moved my site from a local install to my server. I'm pretty new at this, so hopefully I've followed the right course:</p>

<p>What I did:</p>

<ul>
<li>Edited db.php to reflect the changes </li>
<li>Edited index.php to point at the craft folder </li>
<li>Had to change the siteUrl in craft_info because it would only show the Craft 404 page (siteUrl was still on localhost)</li>
</ul>

<p>I can see the correct rendered pages now, but as soon as I type /admin or /index.php/admin or /index.php?p=admin I get an Apache 404 error on the /admin/login url</p>

<p>So what should i do now?</p>

CC BY-SA 3.0
2015-03-04T13:25:41.937Z
Is the 404 error a Craft styles error or an Apache error?
Aaron Berkowitz
CC BY-SA 3.0
2015-03-04T14:19:49.220Z
That's an Apache error
noregt
CC BY-SA 3.0
2015-03-04T16:13:05.127Z
Can you post your genera.php config file?
Aaron Berkowitz
CC BY-SA 3.0
2015-03-04T16:29:16.727Z
If it's an Apache error, it's not making it to Craft at all. Is the domain you're using pointing to Craft's public html folder in your vhost file?
Brad Bell
CC BY-SA 3.0
2015-03-04T17:07:39.430Z
It did in the local setup Brad (it worked), but does that matter on the remote server? if it does I'm not sure what I need to check. It works for the regular pages, but not for the admin.
noregt
CC BY-SA 3.0
2015-03-04T17:09:13.313Z
Aaron, the general.php file is empty
noregt
CC BY-SA 3.0
2015-03-04T18:18:01.573Z
What's in the .htaccess file in the public html folder?
Brad Bell
CC BY-SA 3.0
2015-03-04T18:21:27.367Z
The standard stuff Brad, no changes. Could the problem be that the folder setup local did not reflect the server? I used public_html, but the server uses www
noregt
<admin><mamp><deployment><404>
Accessing admin panel after deploying local MAMP
# Accessing admin panel after deploying local MAMP

(Asked by: username_0 on 2015-03-04)

I've moved my site from a local install to my server. I'm pretty new at this, so hopefully I've followed the right course:

What I did:

* Edited db.php to reflect the changes
* Edited index.php to point at the craft folder
* Had to change the siteUrl in craft\_info because it would only show the Craft 404 page (siteUrl was still on localhost)

I can see the correct rendered pages now, but as soon as I type /admin or /index.php/admin or /index.php?p=admin I get an Apache 404 error on the /admin/login url

So what should i do now?

**Tags:** admin, mamp, deployment, 404
> **Comments:**
> **username_1**: Is the 404 error a Craft styles error or an Apache error?  
> **username_0**: That's an Apache error  
> **username_1**: Can you post your genera.php config file?  
> **username_2**: If it's an Apache error, it's not making it to Craft at all. Is the domain you're using pointing to Craft's public html folder in your vhost file?  
> **username_0**: It did in the local setup Brad (it worked), but does that matter on the remote server? if it does I'm not sure what I need to check. It works for the regular pages, but not for the admin.  
> **username_0**: Aaron, the general.php file is empty  
> **username_2**: What's in the .htaccess file in the public html folder?  
> **username_0**: The standard stuff Brad, no changes. Could the problem be that the folder setup local did not reflect the server? I used public_html, but the server uses www  

---

## 1 answers

### Answer by username_0 on 2015-03-04. Score: 1

Apparently what I did was correct, because now it works. I had some EE files right next to the index.php files and these messed things up for some reason. Probably the admin.php file.

At least now I know it's easy to deploy Craft with the three steps I mentioned above


---

