Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-04T21:42:19.140Z
Answers.LastActivityDate: 2015-03-04T21:42:19.140Z
Answers.UserDisplayName: noregt
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-03-04T13:25:41.937Z
Comments.Text: Is the 404 error a Craft styles error or an Apache error?
Comments.UserDisplayName: Aaron Berkowitz
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-03-04T14:19:49.220Z
Comments.Text: That's an Apache error
Comments.UserDisplayName: noregt
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-03-04T16:13:05.127Z
Comments.Text: Can you post your genera.php config file?
Comments.UserDisplayName: Aaron Berkowitz
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-03-04T16:29:16.727Z
Comments.Text: 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?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-03-04T17:07:39.430Z
Comments.Text: 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.
Comments.UserDisplayName: noregt
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-03-04T17:09:13.313Z
Comments.Text: Aaron, the general.php file is empty
Comments.UserDisplayName: noregt
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-03-04T18:18:01.573Z
Comments.Text: What's in the .htaccess file in the public html folder?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-03-04T18:21:27.367Z
Comments.Text: 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
Comments.UserDisplayName: noregt
Tags: <admin><mamp><deployment><404>
Title: Accessing admin panel after deploying local MAMP
ThreadText: # 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 username_2 (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**: username_1, the general.php file is empty  
  > **username_2**: What's in the .htaccess file in the public html folder?  
  > **username_0**: The standard stuff username_2, 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
  
  
  ---
  
  