2
0

readme_upgrade.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>SMF 2.0 Upgrade Guide</title>
  5. <link rel="stylesheet" type="text/css" href="Themes/default/css/index.css?fin20" />
  6. <style type="text/css">
  7. #upper_section .user
  8. {
  9. height: 4em;
  10. }
  11. #upper_section .news
  12. {
  13. height: 80px;
  14. }
  15. #main_screen
  16. {
  17. padding: 0 40px;
  18. }
  19. #main_screen h2
  20. {
  21. font-size: 2em;
  22. border-bottom: solid 1px #d05800;
  23. line-height: 2em;
  24. margin: 0 0 0.5em 0;
  25. color: #d05800;
  26. }
  27. #content_section
  28. {
  29. position: relative;
  30. top: -20px;
  31. }
  32. #main_content_section .panel
  33. {
  34. padding: 1em 2em 1em 1em;
  35. line-height: 1.6em;
  36. }
  37. #main_content_section h2
  38. {
  39. font-size: 1.5em;
  40. border-bottom: solid 1px #d05800;
  41. line-height: 1.5em;
  42. margin: 0 2em 0.5em 0;
  43. color: #d05800;
  44. }
  45. #main_content_section li
  46. {
  47. line-height: 1.6em;
  48. font-weight: bold;
  49. }
  50. #main_content_section li li
  51. {
  52. font-weight: normal;
  53. line-height: 1.6em;
  54. }
  55. #liftup
  56. {
  57. position: relative;
  58. top: -70px;
  59. }
  60. #footer_section
  61. {
  62. position: relative;
  63. top: -20px;
  64. }
  65. #footer_section
  66. {
  67. position: relative;
  68. top: -20px;
  69. }
  70. tt
  71. {
  72. font-family: verdana, sans-serif;
  73. letter-spacing: 1px;
  74. font-weight: bold;
  75. font-size: 90%;
  76. font-style: italic;
  77. }
  78. dt {
  79. font-weight: bold;
  80. margin-bottom: .1em;
  81. }
  82. dl {
  83. margin-top: .2em;
  84. margin-left: 2em;
  85. margin-bottom: .5em;
  86. }
  87. dd {
  88. line-height: 1.5em;
  89. margin-left: 2em;
  90. margin-bottom: .1em;
  91. }
  92. </style>
  93. </head>
  94. <body>
  95. <div id="header"><div class="frame">
  96. <div id="top_section">
  97. <h1 class="forumtitle">SMF 2.0 Upgrade Guide</h1>
  98. <img id="smflogo" src="Themes/default/images/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />
  99. </div>
  100. <div id="upper_section" class="middletext" style="overflow: hidden;">
  101. <div class="user"></div>
  102. <div class="news normaltext">
  103. </div>
  104. </div>
  105. </div></div>
  106. <div id="content_section"><div class="frame">
  107. <div id="main_content_section">
  108. <div id="liftup">
  109. <div class="panel">
  110. <h2 id="contents">Upgrading your forum</h2>
  111. <p>Thank you for deciding to upgrade to <a href="http://www.simplemachines.org/smf/">SMF</a>. Before you get started, please remember that there is <a href="http://www.simplemachines.org/community/index.php">a place for help at www.simplemachines.org</a> if you run into any problems at all.</p>
  112. <p>You can find the following information in this file:</p>
  113. <ul style="list-style-type: none;">
  114. <li>&raquo; <a href="#requirements">Minimum installation requirements</a></li>
  115. <li>&raquo; <a href="#backups">Backing up data</a></li>
  116. <li>&raquo; <a href="#uploadingftp">Upload files method 1: using FTP</a></li>
  117. <li>&raquo; <a href="#Set_File_Permissions">Set file permissions</a></li>
  118. <li>&raquo; <a href="#Run_the_upgrading_tool">Run the upgrading tool</a></li>
  119. <li>&raquo; <a href="#webinstall">Upload files method 2: using webinstall.php</a></li>
  120. <li>&raquo; <a href="#finishing">Finishing the upgrade and cleaning up</a></li>
  121. </ul>
  122. </div>
  123. <div class="panel">
  124. <h2 id="requirements">Minimum installation requirements</h2>
  125. <p>Your server must meet a few requirements to be able to run SMF. If you are unsure as to whether your webserver meets these, please try to upgrade anyway - it should detect any problems.</p>
  126. <ul>
  127. <li>Any webserver that properly supports PHP, such as <a href="http://httpd.apache.org/" target="_blank">Apache</a> or <a href="http://www.microsoft.com/iis" target="_blank">Internet Information Services (IIS)</a>.</li>
  128. <li>
  129. <a href="http://www.php.net" target="_blank">PHP</a> 4.1.0 or higher. The following directives are required to be set correctly in php.ini:
  130. <ul>
  131. <li>the engine directive must be On.</li>
  132. <li>the <a href="http://www.php.net/sybase#ini.magic-quotes-sybase" target="_blank">magic_quotes_sybase</a> directive must be set to Off.</li>
  133. <li>the <a href="http://www.php.net/session#ini.session.save-path" target="_blank">session.save_path</a> directive must be set to a valid directory.</li>
  134. <li>the <a href="http://www.php.net/manual/en/ini.core.php#ini.file-uploads" target="_blank">file_uploads</a> directive must be On.</li>
  135. <li>the <a href="http://www.php.net/manual/en/ini.core.php#ini.upload-tmp-dir" target="_blank">upload_tmp_dir</a> must be set to a valid directory.</li>
  136. </ul>
  137. </li>
  138. <li>Any of the following database systems
  139. <ul>
  140. <li><a href="http://www.mysql.com/" target="_blank">MySQL</a> 4.0.18 or higher.</li>
  141. <li><a href="http://www.postgresql.org/" target="_blank">PostgreSQL</a> 8.0 or higher.</li>
  142. <li><a href="http://www.sqlite.org/" target="_blank">SQLite</a> 1.x - 2.x.</li>
  143. </ul>
  144. </li>
  145. <li>at least 2 megabytes of storage space in the database, although more is highly recommended.</li>
  146. <li>The database user must have at least the following privileges: SELECT, INSERT, UPDATE, DELETE, ALTER, and INDEX.</li>
  147. <li>about 20 megabytes of storage space on the web server, although more is recommended.</li>
  148. </ul>
  149. <p>Recommendations for best performance:</p>
  150. <ul>
  151. <li>Windows, <a href="http://www.linux.org/" target="_blank">Linux</a> or another Unix based operating system.</li>
  152. <li>the <a href="http://aspell.sf.net/" target="_blank">GNU Aspell</a> 0.50 or higher and <a href="http://ftp.gnu.org/gnu/aspell/dict/" target="_blank">its dictionaries</a> for spell checking functionality.</li>
  153. <li><a href="http://httpd.apache.org/" target="_blank">Apache</a> 2.0.0 or higher with <a href="http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo" target="_blank">AcceptPathInfo</a> set to On (Apache 2 and later only) for queryless URL support.</li>
  154. <li>
  155. <a href="http://www.php.net" target="_blank">PHP</a> 5.2.0 or higher, with the following set in php.ini:
  156. <ul>
  157. <li>the <a href="http://www.php.net/manual/en/info.configuration.php#ini.max-input-time" target="_blank">max_input_time</a> directive is set to a value of at least 30.</li>
  158. <li>the <a href="http://www.php.net/manual/en/ini.core.php#ini.post-max-size" target="_blank">post_max_size</a> and <a href="http://www.php.net/configuration.directives#ini.upload-max-filesize" target="_blank">upload_max_filesize</a> directives set to the size of the largest attachments you wish to be able to upload.</li>
  159. <li>the <a href="http://www.php.net/session#ini.session.use-trans-sid" target="_blank">session.use_trans_sid</a> directive set to Off.</li>
  160. <li>the <a href="http://www.php.net/manual/en/ini.core.php#ini.memory-limit" target="_blank">memory_limit</a> directive is set to at least 8M.</li>
  161. <li>the <a href="http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time" target="_blank">max_execution_time</a> directive is set to at least 15.</li>
  162. <li>the <a href="http://www.php.net/manual/en/ini.core.php#ini.register-globals" target="_blank">register_globals</a> directive is set to Off.</li>
  163. <li>the <a href="http://www.php.net/manual/en/features.safe-mode.php" target="_blank">safe mode</a> disabled or <a href="http://httpd.apache.org/docs/2.0/suexec.html" target="_blank">suEXEC</a> ensabled.</li>
  164. <li>the <a href="http://www.php.net/manual/en/book.bc.php" target="_blank">BCMath</a> library enabled for using the <a href="/smf/Registration#Settings" title="Registration">OpenID</a> registration method.</li>
  165. </ul>
  166. </li>
  167. <li>Any of the following database systems
  168. <ul>
  169. <li><a href="http://www.mysql.com/" target="_blank">MySQL</a> 5.0 or higher.</li>
  170. <li><a href="http://www.postgresql.org/" target="_blank">PostgreSQL</a> 8.3.3 or higher.</li>
  171. <li><a href="http://www.sqlite.org/" target="_blank">SQLite</a> 2.8.</li>
  172. </ul>
  173. </li>
  174. <li><a href="http://www.boutell.com/gd/" target="_blank">GD Graphics Library</a> 2.0 or higher.</li>
  175. </ul>
  176. <p>If your server does not meet these requirements, SMF may not work properly.</p>
  177. </div>
  178. <div class="panel">
  179. <h2 id="backups">Backing up data</h2>
  180. <p>Before starting the upgrade process, a backup of the live database should be taken. This protects the forum from accidental damage and any issues from upgrading. Although all steps are taken, and extensive testing carried out, sometimes issues develop. Therefore, having a backup is crucial. The upgrading tool can backup all database tables before it runs, however the best practice is to have a full backup available. </p>
  181. <h3>Back up a database using SMF</h3>
  182. <p>From SMF, navigate to Forum Maintenance. (Administration Center -&gt; Maintenance -&gt; Forum Maintenance) On the database section, save the data and the structure. Then, compress the file. Select &quot;Download&quot; and wait for the database to complete the download completely. It is recommended if you use this method to verify that the backup is complete by opening the file and checking the last line. If the file is not complete and has an error please try one of the other methods to backup your database.</p>
  183. <h3>Back up a database using PHPMyAdmin</h3>
  184. <p>PHPMyAdmin gives the option to export a database, from the initial page, select the &quot;Export&quot; option and follow the instructions. Select your SMF database. These are different based on host. </p>
  185. <h3>Back up a database using a control panel</h3>
  186. <p>If your hosting service provides a control panel interface, this can be used to back up a database. Selecting the &quot;Backups&quot; or &quot;Backups Wizard&quot; options should take you to a page, prompting you to back up your database. With different hosts, these options may have different titles. </p>
  187. </div>
  188. <div class="panel">
  189. <h2 id="uploadingftp">Upload files method 1: using FTP</h2>
  190. <p>If your server doesn't support webinstall.php than you can use an FTP client and an FTP access to upload the files to your server.</p>
  191. <p>All you need to do is upload all of the files in this package, excluding this file itself, to your server. You should upload it to the same directory as your previous installation of SMF or YaBB SE. If you are given the option to &quot;resume&quot; uploads, make sure you do not do that - you must upload all of the files. You may wish to make sure that all of the files were uploaded, such as those in <tt>Themes/default/languages</tt>, because some FTP clients have been known to drop files.</p>
  192. <h3>Language files</h3>
  193. <p>If you are using additional languages it will be useful to upload also the updated versions of the language files along with the upgrading packages. Doing so all updated text strings will appear correctly after the upgrade, and will allow the upgrade to run in your selected language.</p>
  194. </div>
  195. <div class="panel">
  196. <h2 id="Set_File_Permissions">Set file permissions</h2>
  197. <p>After the upgrade archive has been uploaded and extracted, you need to set the files' permissions. This is commonly done by use of the Unix utility <b>CHMOD</b>. The correct CHMOD value for SMF files is either 777, 775 or 755, depending on your hosting service. There are two methods for this step, the method used depends on the hosting service that you use.</p>
  198. <h3>Setting File Permissions With the Upgrader</h3>
  199. <p>The SMF upgrader can set file permissions simply and easily. Navigating to the directory where SMF is located should redirect you to the upgrade.php file and prompt the upgrader. For example: www.yourdomain.com/forum/upgrade.php. If the upgrader detects files that need their permissions adjusted it will prompt for FTP details so it can <b>CHMOD</b> the files it requires for the upgrade. This may not work on some servers.
  200. </p>
  201. <h3>Setting File Permissions With FTP</h3>
  202. <p>Using a control panel or FTP client, file permissions can be changed quickly and easily. Usually, FTP programs will allow permissions to be changed by right-clicking files/directories and selecting &quot;Properties&quot;, &quot;Attributes&quot; or &quot;Permissions&quot;. The desired numerical value can be entered, or if provided, check boxes can be changed.</p>
  203. <p>The following files and directories must be writable. Depending on how your server is set up, this could mean that they must have <b>CHMOD</b> values of 644, 664 or 666 for files, and 755, 775 or 777 for folders:</p>
  204. <ul><li>/attachments
  205. </li><li>/avatars
  206. </li><li>/Packages
  207. </li><li>/Packages/installed.list
  208. </li><li>/Smileys
  209. </li><li>/Themes
  210. </li><li>agreement.txt
  211. </li><li>Settings.php
  212. </li><li>Settings_bak.php
  213. </li><li>upgrade.php
  214. </li></ul>
  215. <p>If the permission on your files or folders does not make them writable, the SMF upgrader will report the problem. In that case, use your FTP client or host panel to reset the permissions for the files or folders the upgrader reports.</p>
  216. </div>
  217. <div class="panel">
  218. <h2 id="Run_the_upgrading_tool">Run the upgrading tool</h2>
  219. <p>The final step in upgrading SMF, is to run the upgrading tool. Navigate to the directory where SMF is located. It should redirect you to the upgrade.php file and prompt you to run the upgrade. In example: www.yourdomain.com/forum/upgrade.php. </p>
  220. <p>The first page you see may request your FTP information. If you see this screen, it is because the installer found some files or folders with inadequate permissions for SMF to run properly. If you enter your FTP information here, the installer can automatically fix these permissions for you. Please note that the path should be the same path you see in your FTP client. For example, it might be &quot;public_html/forum&quot;. And remember, the installer will not save your FTP password anywhere.</p>
  221. <h3>Upgrade settings</h3>
  222. <dl>
  223. <dt>Backup database with the prefix "backup_"</dt>
  224. <dd>Selecting this option will get the upgrade tool to copy all data in the database before upgrading within the original database.</dd>
  225. <dt>Maintenance Mode</dt>
  226. <dd>Selecting this option will place the forum into maintenance mode while upgrading rather than showing errors, this is highly recommended.</dd>
  227. <dt>Output extra debugging information.</dt>
  228. <dd>The upgrade tool can give detailed information while performing an upgrade by selecting this option, it will aid the support team to solve any errors if they occur while upgrading.</dd>
  229. </dl>
  230. </div>
  231. <div class="panel">
  232. <h2 id="webinstall">Upload files method 2: using webinstall.php</h2>
  233. <p>Your server may support webinstall.php. This script will automatically download SMF to your server. This may not work on all servers and also may require providing it with FTP details.</p>
  234. <p>The first thing you need to do is upload webinstall.php to the location of where SMF is to exist on your server.</p>
  235. <p>After you have finished uploading the file, point your browser to http://www.yourdomain.tld/forum/webinstall.php - where www.yourdomain.tld/forum is the URL to where you uploaded it. You should then see the webinstall interface.</p>
  236. <p>The first page you see may request your FTP information. If you see this screen, it is because the webinstaller found some files or folders with inadequate permissions for SMF to run properly. If you enter your FTP information here, the webinstaller can automatically fix these permissions for you. Please note that the path should be the same path you see in your FTP client. For example, it might be &quot;public_html/forum&quot;. And remember, the webinstaller will not save your FTP password anywhere.</p>
  237. <p>On the webinstall interface you have an option to login, this is useful for charter members to easily download early releases. You may have an option to select multiple versions of SMF to download. It is up to you to decide which version of SMF you wish to install. Additionally you may have options of additional languages to download.</p>
  238. <p>After specifying these options and agreeing to the agreement, webinstall will attempt to download al SMF files and decompress them in the same folder as webinstall.php. If successful you will be prompted to the SMF upgrade screen. If this fails you will need to follow the process below to upload files.</p>
  239. <p>In most cases, you'll want to have &quot;Put the forum into maintenance mode during upgrade.&quot; checked, because it will ensure that nothing is messed with while the upgrader is working. You may also wish to check &quot;Backup tables in your database...&quot;, which will make a backup of your old information and tables before making any changes in the database.</p>
  240. </div>
  241. <div class="panel">
  242. <h2 id="finishing">Finishing the upgrade and cleaning up</h2>
  243. <p>Once all parts of the upgrade have completed, check the box to remove the upgrade files from the server. If this does not work, they will need to be deleted via FTP. All upgrade files should be removed from the server once the upgrade process is complete. These files are upgrade.php and the .sql files whose name starts with 'upgrade'. They are a major security risk if they are left on a server unattended. Once SMF has been upgraded, they are no longer needed.</p>
  244. <p>Good luck!<br />
  245. Simple Machines</p>
  246. </div>
  247. </div>
  248. </div>
  249. </div></div>
  250. <div id="footer_section"><div class="frame">
  251. <div class="smalltext"><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.</div>
  252. <div class="smalltext"><a href="http://www.simplemachines.org">Simple Machines Forum</a></div>
  253. </div></div>
  254. </body>
  255. </html>