2
0

readme_install.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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 Installation Guide</title>
  5. <link rel="stylesheet" type="text/css" href="Themes/default/css/index.css?fin20" />
  6. <style type="text/css">
  7. h1.forumtitle
  8. {
  9. color: #346;
  10. }
  11. #upper_section .user
  12. {
  13. height: 4em;
  14. }
  15. #upper_section .news
  16. {
  17. height: 80px;
  18. }
  19. #main_screen
  20. {
  21. padding: 0 40px;
  22. }
  23. #main_screen h2
  24. {
  25. font-size: 2em;
  26. border-bottom: solid 1px #d05800;
  27. line-height: 2em;
  28. margin: 0 0 0.5em 0;
  29. color: #d05800;
  30. }
  31. h3
  32. {
  33. color: #d05800;
  34. }
  35. #content_section
  36. {
  37. position: relative;
  38. top: -20px;
  39. }
  40. #main_content_section .panel
  41. {
  42. padding: 1em 2em 1em 1em;
  43. line-height: 1.6em;
  44. }
  45. #main_content_section h2
  46. {
  47. font-size: 1.5em;
  48. border-bottom: solid 1px #d05800;
  49. line-height: 1.5em;
  50. margin: 0 2em 0.5em 0;
  51. color: #d05800;
  52. }
  53. #main_content_section li
  54. {
  55. line-height: 1.6em;
  56. font-weight: bold;
  57. color: #555;
  58. }
  59. #main_content_section li ul
  60. {
  61. padding-bottom: 0.7em;
  62. }
  63. #main_content_section li li
  64. {
  65. font-weight: normal;
  66. line-height: 1.6em;
  67. }
  68. #liftup
  69. {
  70. position: relative;
  71. top: -70px;
  72. }
  73. #footer_section
  74. {
  75. position: relative;
  76. top: -60px;
  77. }
  78. tt
  79. {
  80. font-family: verdana, sans-serif;
  81. letter-spacing: 1px;
  82. font-weight: bold;
  83. font-size: 90%;
  84. font-style: italic;
  85. }
  86. dt
  87. {
  88. font-weight: bold;
  89. color: #555;
  90. margin-bottom: .1em;
  91. }
  92. dl
  93. {
  94. margin-top: .2em;
  95. margin-left: 2em;
  96. margin-bottom: .5em;
  97. }
  98. dd
  99. {
  100. line-height: 1.5em;
  101. margin-left: 2em;
  102. margin-bottom: .1em;
  103. }
  104. #header, #content_section, #footer_section
  105. {
  106. width: 90%;
  107. margin: 0 auto;
  108. }
  109. a:link, a:visited
  110. {
  111. color: #3E5D8F;
  112. }
  113. a:hover
  114. {
  115. color: #346;
  116. }
  117. </style>
  118. </head>
  119. <body>
  120. <div id="header"><div class="frame">
  121. <div id="top_section">
  122. <h1 class="forumtitle">SMF 2.0 Installation Guide</h1>
  123. <img id="smflogo" src="Themes/default/images/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />
  124. </div>
  125. <div id="upper_section" class="middletext" style="overflow: hidden;">
  126. <div class="user"></div>
  127. <div class="news normaltext">
  128. </div>
  129. </div>
  130. </div></div>
  131. <div id="content_section"><div class="frame">
  132. <div id="main_content_section">
  133. <div id="liftup">
  134. <div class="panel">
  135. <h2 id="contents">Installing your forum</h2>
  136. <p>Thank you for deciding to use, or at least try, <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>
  137. <p>If you are looking to upgrade an installation of SMF, or convert from YaBB SE, you may have downloaded the wrong package. Please check <a href="http://download.simplemachines.org/">the downloads page</a> for more information.</p>
  138. <p>You can find the following information in this file:</p>
  139. <ul style="list-style-type: none;">
  140. <li>&raquo; <a href="#requirements">Minimum installation requirements</a></li>
  141. <li>&raquo; <a href="#recommendations">Recommendations for best performance</a></li>
  142. <li>&raquo; <a href="#uploadingftp">Upload files method 1: manually uploading files</a></li>
  143. <li>&raquo; <a href="#Set_File_Permissions">Set file permissions</a></li>
  144. <li>&raquo; <a href="#Create_a_Database_and_a_Database_User">Create a database and a database user</a></li>
  145. <li>&raquo; <a href="#Run_the_installer">Run the installer</a></li>
  146. <li>&raquo; <a href="#webinstall">Upload files method 2: using webinstall.php</a></li>
  147. <li>&raquo; <a href="#finishing">Finishing the installation and cleaning up.</a></li>
  148. </ul>
  149. </div>
  150. <div class="panel">
  151. <h2 id="requirements">Minimum installation requirements</h2>
  152. <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>
  153. <ul>
  154. <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>
  155. <li>
  156. <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:
  157. <ul>
  158. <li>the engine directive must be On.</li>
  159. <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>
  160. <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>
  161. <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>
  162. <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>
  163. </ul>
  164. </li>
  165. <li>Any of the following database systems
  166. <ul>
  167. <li><a href="http://www.mysql.com/" target="_blank">MySQL</a> 4.0.18 or higher.</li>
  168. <li><a href="http://www.postgresql.org/" target="_blank">PostgreSQL</a> 8.0 or higher.</li>
  169. <li><a href="http://www.sqlite.org/" target="_blank">SQLite</a> 1.x - 2.x.</li>
  170. </ul>
  171. </li>
  172. <li>at least 2 megabytes of storage space in the database, although more is highly recommended.</li>
  173. <li>The database user must have at least the following privileges: SELECT, INSERT, UPDATE, DELETE, ALTER, and INDEX.</li>
  174. <li>about 20 megabytes of storage space on the web server, although more is recommended.</li>
  175. </ul><br />
  176. <h2 id="recommendations">Recommendations for best performance</h2>
  177. <ul>
  178. <li>Windows, <a href="http://www.linux.org/" target="_blank">Linux</a> or another Unix based operating system.</li>
  179. <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>
  180. <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>
  181. <li>
  182. <a href="http://www.php.net" target="_blank">PHP</a> 5.2.0 or higher, with the following set in php.ini:
  183. <ul>
  184. <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>
  185. <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>
  186. <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>
  187. <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>
  188. <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>
  189. <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>
  190. <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>
  191. <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>
  192. </ul>
  193. </li>
  194. <li>Any of the following database systems
  195. <ul>
  196. <li><a href="http://www.mysql.com/" target="_blank">MySQL</a> 5.0 or higher.</li>
  197. <li><a href="http://www.postgresql.org/" target="_blank">PostgreSQL</a> 8.3.3 or higher.</li>
  198. <li><a href="http://www.sqlite.org/" target="_blank">SQLite</a> 2.8.</li>
  199. </ul>
  200. </li>
  201. <li><a href="http://www.boutell.com/gd/" target="_blank">GD Graphics Library</a> 2.0 or higher.</li>
  202. </ul>
  203. <p>If your server does not meet these requirements, SMF may not work properly.</p>
  204. </div>
  205. <div class="panel">
  206. <h2 id="uploadingftp">Upload files method 1: manually uploading files</h2>
  207. <p>The first thing you need to do is upload all of the files in this package, excluding this file itself, to your server. You can upload it to any directory accessible by URL, but if you're not sure where to put it, a directory named &quot;forum&quot; is a good choice. You may wish to make sure that all of the folders were uploaded, such as <tt>Themes/default/languages</tt>, because some FTP clients have been known to drop files.</p>
  208. <p>If you want or need to install any languages other than English, download the corresponding versions from the download page, and upload them to the same directory you uploaded SMF to. This should put additional files in <tt>Themes/default/languages</tt> and, in most cases, <tt>Themes/default/images</tt>.</p>
  209. <h3>Language files</h3>
  210. <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>
  211. </div>
  212. <div class="panel">
  213. <h2 id="Set_File_Permissions">Set file permissions</h2>
  214. <p>After the install 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>
  215. <h3>Setting File Permissions With the Installer</h3>
  216. <p>The SMF installer can set file permissions simply and easily. Navigating to the directory where SMF is located should redirect you to the install.php file and prompt the installer. For example: www.yourdomain.com/forum/install.php. If the installer 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 install. This may not work on some servers.
  217. </p>
  218. <h3>Setting File Permissions With FTP</h3>
  219. <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>
  220. <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>
  221. <ul><li>/attachments
  222. </li><li>/avatars
  223. </li><li>/Packages
  224. </li><li>/Packages/installed.list
  225. </li><li>/Smileys
  226. </li><li>/Themes
  227. </li><li>/Themes/default/languages/Install.english.php
  228. </li><li>agreement.txt
  229. </li><li>Settings.php
  230. </li><li>Settings_bak.php
  231. </li><li>install.php
  232. </li></ul>
  233. <p>If the permission on your files or folders does not make them writable, the SMF installer will report the problem. In that case, use your FTP client or host panel to reset the permissions for the files or folders the installer reports.</p>
  234. </div>
  235. <div class="panel">
  236. <h2 id="Create_a_Database_and_a_Database_User">Create a database and a database user</h2>
  237. <p>Before running the installer, a database and a database user will need to be created. A database will store all of the information a forum requires, such as members, posts, and topics. A database user will allow the forum to access the stored information. Remember this information about the database and database user. You will need it when it comes time to run the installer.</p>
  238. <h3>Creating a database using PHPMyAdmin</h3>
  239. <p>Most shared hosting services disable this option. If the option to create databases through PHPMyAdmin is available through the hosting service you use, the database can be created from the PHPMyAdmin home page.</p>
  240. <h3>Creating a database using a control panel</h3>
  241. <p>Shared hosting services usually disable the ability to create a database through PHPMyAdmin. If the hosting service provides a control panel interface, then this can be used to create a database. Selecting the &quot;MySQL Databases&quot; or &quot;Database Wizard&quot; options should take you to a page prompting you to creating a MySQL database. With different hosts, these options may have different names.</p><p>SMF 2.0 has the ability to support other database types, including PostgreSQL and SQLite. SMF 1.1 supports only MySQL database types.</p>
  242. <h3>Creating a database user</h3>
  243. <p>A database user can be created through the control panel provided by your hosting service. Selecting the &quot;MySQL Databases&quot; or &quot;Database Wizard&quot; options should take you to a page, prompting you to create a MySQL database user. With different hosts, these options may have different names.</p>
  244. <p>The database user requires the following permissions: SELECT, INSERT, UPDATE, DELETE, ALTER, and INDEX. Additional permissions may be granted, if desired.</p>
  245. </div>
  246. <div class="panel">
  247. <h2 id="Run_the_installer">Run the installer</h2>
  248. <p>The final step in installing SMF is running the installer. The information from the previous steps will be used in the installation process.</p>
  249. <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>
  250. <p>The SMF install screen looks different for SMF 2.0 and SMF 1.1, however, both still require the same information. Navigating to the directory where SMF is located, should redirect you to the install.php file, and prompt the installer to run. For example: www.yourdomain.com/forum/install.php</p>
  251. <h3>Basic forum settings</h3>
  252. <dl>
  253. <dt>Forum Name</dt>
  254. <dd>The name for the forum being installed should go here. By default this is set to &quot;My Community&quot;. This can be changed later via the server settings section of the administration center if needed.</dd>
  255. <dt>Forum URL</dt>
  256. <dd>The URL the forum can be found at, without the trailing slash. The SMF installer will most likely have this correct, so it is safe to leave this field alone.</dd>
  257. <dt>Gzip Output</dt>
  258. <dd>If Gzip output tests pass, this can be used to save bandwidth and make pages load faster.</dd>
  259. <dt>Database Sessions</dt>
  260. <dd>Sessions can be stored in the database, or in files. Database sessions are more reliable, secure, and may work better on sites with multiple servers.</dd>
  261. <dt>UTF-8 Character Set</dt>
  262. <dd>UTF-8 character sets are useful for international forums, or forums that use languages other than English.</dd>
  263. <dt>Allow Stat Collection</dt>
  264. <dd>This option allows Simple Machines to collect statistics from your forum, anonymously, so the software can grow to meet the needs of its user base.</dd>
  265. </dl>
  266. <h3>Database server settings</h3>
  267. <dl>
  268. <dt>Database type</dt>
  269. <dd>The database schema can be selected here from a list of database schemas supported by the server being used. Newer schemas (for SMF 2.0) such as PostgreSQL and SQLite may be listed here if available. MySQL and PostgreSQL are recommended.</dd>
  270. <dt>Server name</dt>
  271. <dd>The location of the database is specified here. 99% of the time this will be localhost.</dd>
  272. <dt>Username</dt>
  273. <dd>The username used for the database user should be placed here. If help is required for this, the hosting service provider should be contacted.</dd>
  274. <dt>Password</dt>
  275. <dd>The password for the database user is entered here.</dd>
  276. <dt>Database name</dt>
  277. <dd>The name used for the database should be placed here. If help is required for this, the hosting service provider should be contacted.</dd>
  278. <dt>Database prefix</dt>
  279. <dd>The prefix for all tables associated with this install is specified here. Prefixing tables with unique prefixes enables more than one application, or SMF install, to use the same database safely.</dd>
  280. </dl>
  281. <h3>Creating an administrator account</h3>
  282. <p>The SMF installer will ask for information to create the forum's administrator account. This information includes username, password, and e-mail address, just like a regular account. Once created, this account can be used to visit the Administration Center to manage and configure the forum.</p>
  283. </div>
  284. <div class="panel">
  285. <h2 id="webinstall">Upload files method 2: using webinstall.php</h2>
  286. <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>
  287. <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>
  288. <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>
  289. <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>
  290. <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>
  291. <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>
  292. <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>
  293. </div>
  294. <div class="panel">
  295. <h2 id="finishing">Finishing everything up</h2>
  296. <p>Once all steps of the installation process have been completed, check the box to remove the install files from the server. If this does not work, they will need to be deleted via FTP. All installer files should be removed from the server once the installation process is complete, as they are a major security risk if left on a server unattended. Once SMF is installed they are no longer needed.</p>
  297. <p>Good luck!<br />
  298. Simple Machines</p>
  299. </div>
  300. </div>
  301. </div>
  302. </div></div>
  303. <div id="footer_section"><div class="frame">
  304. <div class="smalltext padding"><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative Commons License" style="border-width:0; margin-bottom: 0.7em;" 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>
  305. <div class="smalltext"><a href="http://www.simplemachines.org">Simple Machines Forum</a></div>
  306. </div></div>
  307. </body>
  308. </html>