PageRenderTime 29ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 1ms

/installation/moving.html

https://bitbucket.org/ellislab/expressionengine-user-guide/
HTML | 162 lines | 120 code | 41 blank | 1 comment | 0 complexity | e72a5200138dfdb79afd312cba0dd748 MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  5. <title>Moving ExpressionEngine to Another Server&#8211; ExpressionEngine Documentation</title>
  6. <meta name="MSSmartTagsPreventParsing" content="TRUE" />
  7. <link rel="contents" href="../index.html" />
  8. <style type="text/css" media="screen,print">@import url(../docs.css);</style>
  9. </head>
  10. <body>
  11. <div><a name="top"></a></div>
  12. <div id="header">
  13. <table cellpadding="0" cellspacing="0" border="0" style="width:100%;"><tr>
  14. <td class="docheading" style="width:300px;"><a href="../index.html"><img src="../images/user_guide.gif" width="231" height="24" alt="ExpressionEngine User Guide" /></a></td>
  15. <td class="searchbox"><form method="get" action="http://www.google.com/search" class="searchbox"><div>Search&nbsp;&nbsp;<input type="text" class="input" name="q" id="q" size="31" maxlength="255" value="" /><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="expressionengine.com/docs/" />&nbsp;<input type="submit" class="submit" name="sa" value="Search" /></div></form></td>
  16. </tr>
  17. </table>
  18. </div>
  19. <div id="navlinks">
  20. <a href="../index.html">Table of Contents</a> &gt;
  21. <a href="../index.html#install_docs">Installation and Update Instructions</a> &gt;
  22. <strong>Moving ExpressionEngine to Another Server</strong>
  23. </div>
  24. <div id="content">
  25. <h1>Moving ExpressionEngine to Another Server</h1>
  26. <p>
  27. The following steps outline the general procedure for moving ExpressionEngine to another server. Please note that
  28. you may need to perform additional steps if you are using any third-party add-ons that store their own path configurations.
  29. </p>
  30. <h2>1. Verify Server Compatibility</h2>
  31. <p>Upload the <a href="../requirements.html">ExpressionEngine Server Wizard</a> to the new server and run it to verify
  32. basic compatibility with ExpressionEngine.
  33. </p>
  34. <h2>2. Synchronize Templates</h2>
  35. <p class="tip">You can skip this step if you are not saving templates as files.</p>
  36. <p>
  37. From the Control Panel, go to <var>Design &gt; Templates &gt; Synchronize Templates</var>, select all templates
  38. and click Submit.
  39. </p>
  40. <h2>3. Back-up Database and Files</h2>
  41. <ul>
  42. <li>Back-up your existing ExpressionEngine database.</li>
  43. <li>Back-up all existing ExpressionEngine files and folders.</li>
  44. </ul>
  45. <h2>4. Prepare the New Database</h2>
  46. <p>
  47. Create a new, empty database on the new server and import the back-up file you created in Step 3 into it.
  48. Typically this will be a SQL file (or a ZIP file containing the SQL file).
  49. </p>
  50. <h2>5. Copy Files and Folders</h2>
  51. <p>Copy all ExpressionEngine files and folders from the old server to the new server. At a minimum, this will typically include:</p>
  52. <ul>
  53. <li><dfn>admin.php</dfn></li>
  54. <li><dfn>index.php</dfn></li>
  55. <li><kbd>images/</kbd></li>
  56. <li><kbd>system/</kbd></li>
  57. <li><kbd>themes/</kbd></li>
  58. </ul>
  59. <h2>6. Verify File Permissions</h2>
  60. <p class="important">If you are moving to <a href="http://enginehosting.com">EngineHosting</a> you can skip this step.
  61. For other Unix hosts the following is typical, but you may check with your host to see if more restrictive permissions can be used to allow PHP to write to files (666) and folders (777).
  62. On Windows servers the following will not apply, but you will need to ensure that the files and folders are writable by ExpressionEngine. You may need to contact your host for this.</p>
  63. <ul>
  64. <li>Ensure the following files are set to <samp>666</samp>:
  65. <ul>
  66. <li><var>system/expressionengine/config/</var><kbd>config.php</kbd></li>
  67. <li><var>system/expressionengine/config/</var><kbd>database.php</kbd></li>
  68. </ul>
  69. </li>
  70. <li>Ensure the following folders are set to <samp>777</samp>:
  71. <ul>
  72. <li><var>/system/expressionengine/cache/</var></li>
  73. <li><var>/images/avatars/uploads/</var></li>
  74. <li><var>/images/captchas/</var></li>
  75. <li><var>/images/member_photos/</var></li>
  76. <li><var>/images/pm_attachments/</var></li>
  77. <li><var>/images/signature_attachments/</var></li>
  78. <li><var>/images/uploads/</var></li>
  79. </ul>
  80. </li>
  81. </ul>
  82. <h2>7. Update database.php</h2>
  83. <p>
  84. Open <var>system/expressionengine/config/</var><kbd>database.php</kbd> and update the settings to
  85. match those of the new server.
  86. </p>
  87. <h2>8. Verify index.php and admin.php</h2>
  88. <p>
  89. Verify that your site's root <kbd>index.php</kbd> and <kbd>admin.php</kbd> files have the correct settings for the new server.
  90. </p>
  91. <h2>9. Log In and Update Paths</h2>
  92. <p>
  93. At this point, you should be able to log in to the Control Panel using <kbd>admin.php</kbd>. If not, please verify that
  94. the settings made in Steps 7 and 8 are correct.
  95. </p>
  96. <p>There are typically several areas of the Control Panel in which paths may need to be updated, including:</p>
  97. <ul>
  98. <li><var>Admin &gt; General Configuration</var></li>
  99. <li><var>Admin &gt; Channel Administration &gt; Channels</var></li>
  100. <li><var>Admin &gt; Security and Privacy &gt; Captcha Preferences</var></li>
  101. <li><var>Admin &gt; System Administration &gt; Emoticon Preferences</var></li>
  102. <li><var>Content &gt; Files &gt; File Upload Preferences</var></li>
  103. <li><var>Members &gt; Preferences</var></li>
  104. <li><var>Design &gt; Templates &gt; Global Preferences</var></li>
  105. </ul>
  106. <h2>10. Clear Caches</h2>
  107. <p>Go to <dfn>Tools &gt; Data &gt; Clear Caching</dfn>. Select <strong>All Caches</strong> and click Submit.</p>
  108. <h2>You're Done!</h2>
  109. <p>
  110. At this point, your site should be fully functional. Check to make sure that there are no links still
  111. pointing to the previous server. It is recommended that links be generated using the <a href="../templates/globals/path.html">{path}</a>
  112. or <a href="../templates/globals/single_variables.html#var_site_url">{site_url}</a> variables for maximum portability.
  113. </p>
  114. </div>
  115. <p class="center"><a href="#top">Top of Page</a></p>
  116. <!-- {user_guide_comments} -->
  117. <div id="footer">
  118. <address><a href="http://expressionengine.com/">ExpressionEngine</a> &#8211; Copyright &#169; 2002-2011 &#8211; <a href="http://ellislab.com/">EllisLab, Inc.</a></address>
  119. </div>
  120. </body>
  121. </html>