docs/INSTALL.html
author indvdum (gotoindvdum[at]gmail[dot]com)
Sat, 10 Mar 2012 00:53:57 +0400
changeset 17 049ab39a9b9c
parent 0 ceef6d64c21d
permissions -rw-r--r--
Show gamers online everywhere
indvdum@0
     1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
indvdum@0
     2
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en" xml:lang="en">
indvdum@0
     3
<head>
indvdum@0
     4
indvdum@0
     5
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
indvdum@0
     6
<meta http-equiv="content-style-type" content="text/css" />
indvdum@0
     7
<meta http-equiv="content-language" content="en" />
indvdum@0
     8
<meta http-equiv="imagetoolbar" content="no" />
indvdum@0
     9
<meta name="resource-type" content="document" />
indvdum@0
    10
<meta name="distribution" content="global" />
indvdum@0
    11
<meta name="copyright" content="phpBB Group" />
indvdum@0
    12
<meta name="keywords" content="" />
indvdum@0
    13
<meta name="description" content="phpBB 3.0.x Installation, updating and conversion informations" />
indvdum@0
    14
<title>phpBB3 &bull; Install</title>
indvdum@0
    15
indvdum@0
    16
<link href="stylesheet.css" rel="stylesheet" type="text/css" media="screen, projection" />
indvdum@0
    17
indvdum@0
    18
</head>
indvdum@0
    19
indvdum@0
    20
<body id="phpbb" class="section-docs">
indvdum@0
    21
indvdum@0
    22
<div id="wrap">
indvdum@0
    23
	<a id="top" name="top" accesskey="t"></a>
indvdum@0
    24
	<div id="page-header">
indvdum@0
    25
		<div class="headerbar">
indvdum@0
    26
			<div class="inner"><span class="corners-top"><span></span></span>
indvdum@0
    27
indvdum@0
    28
			<div id="doc-description">
indvdum@0
    29
				<a href="../index.php" id="logo"><img src="site_logo.gif" alt="" /></a>
indvdum@0
    30
				<h1>phpBB 3.0.x Install</h1>
indvdum@0
    31
				<p>phpBB 3.0.x Installation, updating and conversion informations</p>
indvdum@0
    32
				<p style="display: none;"><a href="#start_here">Skip</a></p>
indvdum@0
    33
			</div>
indvdum@0
    34
indvdum@0
    35
			<span class="corners-bottom"><span></span></span></div>
indvdum@0
    36
		</div>
indvdum@0
    37
	</div>
indvdum@0
    38
indvdum@0
    39
	<a name="start_here"></a>
indvdum@0
    40
indvdum@0
    41
	<div id="page-body">
indvdum@0
    42
indvdum@0
    43
<!-- BEGIN DOCUMENT -->
indvdum@0
    44
indvdum@0
    45
<p><strong>Please read this document completely before proceeding with installation, updating or converting.</strong></p>
indvdum@0
    46
indvdum@0
    47
<p>This document will walk you through the basics on installing, updating and converting the forum software.</p>
indvdum@0
    48
indvdum@0
    49
<p>A basic overview of running phpBB3 can be found in the accompanying <a href="README.html">README</a> file. Please ensure you read that document in addition to this! For more detailed information on using, installing, updating and converting phpBB3 you should read <a href="http://www.phpbb.com/support/documentation/3.0/">the documentation</a> available online.</p>
indvdum@0
    50
indvdum@0
    51
<h1>Install</h1>
indvdum@0
    52
indvdum@0
    53
	<div class="paragraph menu">
indvdum@0
    54
		<div class="inner"><span class="corners-top"><span></span></span>
indvdum@0
    55
indvdum@0
    56
		<div class="content">
indvdum@0
    57
indvdum@0
    58
<ol>
indvdum@0
    59
	<li><a href="#quickinstall">Quick install</a></li>
indvdum@0
    60
	<li><a href="#require">Requirements</a></li>
indvdum@0
    61
	<li><a href="#install">New installation</a></li>
indvdum@0
    62
	<li><a href="#update">Updating from stable releases of phpBB 3.0.x</a>
indvdum@0
    63
	<ol style="list-style-type: lower-roman;">
indvdum@0
    64
		<li><a href="#update_full">Full package</a></li>
indvdum@0
    65
		<li><a href="#update_files">Changed files only</a></li>
indvdum@0
    66
		<li><a href="#update_patch">Patch file</a></li>
indvdum@0
    67
		<li><a href="#update_auto">Automatic update package</a></li>
indvdum@0
    68
		<li><a href="#update_all">All package types</a></li>
indvdum@0
    69
	</ol>
indvdum@0
    70
	</li>
indvdum@0
    71
	<li><a href="#convert">Conversion from phpBB 2.0.x to phpBB 3.0.x</a>
indvdum@0
    72
	<ol style="list-style-type: lower-roman;">
indvdum@0
    73
		<li><a href="#prereq">Requirements before converting</a></li>
indvdum@0
    74
		<li><a href="#conversion">Converting</a></li>
indvdum@0
    75
		<li><a href="#postreq">Things to do after conversion</a></li>
indvdum@0
    76
		<li><a href="#convprob">Common conversion problems</a></li>
indvdum@0
    77
	</ol>
indvdum@0
    78
	</li>
indvdum@0
    79
	<li><a href="#postinstall">Important (security related) post-Install tasks for all installation methods</a>
indvdum@0
    80
	<ol style="list-style-type: lower-roman;">
indvdum@0
    81
		<li><a href="#avatars">Uploadable avatars</a></li>
indvdum@0
    82
		<li><a href="#webserver_configuration">Webserver configuration</a></li>
indvdum@0
    83
	</ol>
indvdum@0
    84
	</li>
indvdum@0
    85
	<li><a href="#disclaimer">Disclaimer</a></li>
indvdum@0
    86
</ol>
indvdum@0
    87
indvdum@0
    88
		</div>
indvdum@0
    89
indvdum@0
    90
		<span class="corners-bottom"><span></span></span></div>
indvdum@0
    91
	</div>
indvdum@0
    92
indvdum@0
    93
	<hr />
indvdum@0
    94
indvdum@0
    95
	<a name="quickinstall"></a><h2>1. Quick install</h2>
indvdum@0
    96
indvdum@0
    97
	<div class="paragraph">
indvdum@0
    98
		<div class="inner"><span class="corners-top"><span></span></span>
indvdum@0
    99
indvdum@0
   100
		<div class="content">
indvdum@0
   101
indvdum@0
   102
	<p>If you have basic knowledge of using FTP and are sure your hosting service or server will run phpBB3 you can use these steps to quickly get started. For a more detailed explanation you should skip this and go to <a href="#require">section 2</a> below.</p>
indvdum@0
   103
indvdum@0
   104
	<ol>
indvdum@0
   105
		<li>Decompress the phpBB3 archive to a local directory on your system.</li>
indvdum@0
   106
		<li>Upload all the files contained in this archive (retaining the directory structure) to a web accessible directory on your server or hosting account.</li>
indvdum@0
   107
		<li>Change the permissions on config.php to be writable by all (666 or -rw-rw-rw- within your FTP Client)</li>
indvdum@0
   108
		<li>Change the permissions on the following directories to be writable by all (777 or -rwxrwxrwx within your FTP Client):<br />
indvdum@0
   109
			<code>store/</code>, <code>cache/</code>, <code>files/</code> and <code>images/avatars/upload/</code>.</li>
indvdum@0
   110
		<li>Using your web browser visit the location you placed phpBB3 with the addition of install/index.php or pointing directly to install/, e.g. http://www.mydomain.com/phpBB3/install/, http://www.mydomain.com/forum/install/ etc.</li>
indvdum@0
   111
		<li>Click the <em>INSTALL</em> tab, follow the steps and fill out all the requested information.</li>
indvdum@0
   112
		<li>Change the permissions on config.php to be writable only by yourself (644 or -rw-r--r-- within your FTP Client)</li>
indvdum@0
   113
		<li>phpBB3 should now be available, please <strong>MAKE SURE</strong> you read at least <a href="#postinstall">Section 6</a> below for important, security related post-installation instructions.</li>
indvdum@0
   114
	</ol>
indvdum@0
   115
indvdum@0
   116
	<p>If you experienced problems or do not know how to proceed with any of the steps above please read the rest of this document.</p>
indvdum@0
   117
indvdum@0
   118
		</div>
indvdum@0
   119
indvdum@0
   120
		<div class="back2top"><a href="#wrap" class="top">Back to Top</a></div>
indvdum@0
   121
indvdum@0
   122
		<span class="corners-bottom"><span></span></span></div>
indvdum@0
   123
	</div>
indvdum@0
   124
indvdum@0
   125
	<hr />
indvdum@0
   126
indvdum@0
   127
	<a name="require"></a><h2>2. Requirements</h2>
indvdum@0
   128
indvdum@0
   129
	<div class="paragraph">
indvdum@0
   130
		<div class="inner"><span class="corners-top"><span></span></span>
indvdum@0
   131
indvdum@0
   132
		<div class="content">
indvdum@0
   133
indvdum@0
   134
	<p>phpBB3 has a few requirements which must be met before you are able to install and use it.</p>
indvdum@0
   135
indvdum@0
   136
	<ul>
indvdum@0
   137
		<li>A webserver or web hosting account running on any major Operating System with support for PHP</li>
indvdum@0
   138
		<li>A SQL database system, <strong>one of</strong>:
indvdum@0
   139
		<ul>
indvdum@0
   140
			<li>MySQL 3.23 or above (MySQLi supported)</li>
indvdum@0
   141
			<li>PostgreSQL 7.3+</li>
indvdum@0
   142
			<li>SQLite 2.8.2+</li>
indvdum@0
   143
			<li>Firebird 2.1+</li>
indvdum@0
   144
			<li>MS SQL Server 2000 or above (directly or via ODBC)</li>
indvdum@0
   145
			<li>Oracle</li>
indvdum@0
   146
		</ul>
indvdum@0
   147
		</li>
indvdum@0
   148
		<li><strong>PHP 4.3.3+ (>=4.3.3, >4.4.x, >5.x.x, >6.0-dev (compatible))</strong> with support for the database you intend to use.</li>
indvdum@0
   149
		<li>getimagesize() function need to be enabled.</li>
indvdum@0
   150
		<li>These optional presence of the following modules within PHP will provide access to additional features, but they are not required.
indvdum@0
   151
		<ul>
indvdum@0
   152
			<li>zlib Compression support</li>
indvdum@0
   153
			<li>Remote FTP support</li>
indvdum@0
   154
			<li>XML support</li>
indvdum@0
   155
			<li>Imagemagick support</li>
indvdum@0
   156
			<li>GD Support</li>
indvdum@0
   157
		</ul>
indvdum@0
   158
		</li>
indvdum@0
   159
	</ul>
indvdum@0
   160
indvdum@0
   161
	<p>If your server or hosting account does not meet the requirements above we are afraid phpBB3 is not for you.</p>
indvdum@0
   162
indvdum@0
   163
		</div>
indvdum@0
   164
indvdum@0
   165
		<div class="back2top"><a href="#wrap" class="top">Back to Top</a></div>
indvdum@0
   166
indvdum@0
   167
		<span class="corners-bottom"><span></span></span></div>
indvdum@0
   168
	</div>
indvdum@0
   169
indvdum@0
   170
	<hr />
indvdum@0
   171
indvdum@0
   172
	<a name="install"></a><h2>3. New installation</h2>
indvdum@0
   173
indvdum@0
   174
	<div class="paragraph">
indvdum@0
   175
		<div class="inner"><span class="corners-top"><span></span></span>
indvdum@0
   176
indvdum@0
   177
		<div class="content">
indvdum@0
   178
indvdum@0
   179
	<p>Installation of phpBB3 will vary according to your server and database. If you have <em>shell access</em> to your account (via telnet or ssh for example) you may want to upload the entire phpBB3 archive (in binary mode!) to a directory on your host and unarchive it there.</p>
indvdum@0
   180
indvdum@0
   181
	<p>If you do not have shell access or do not wish to use it you will need to decompress the phpBB3 archive to a local directory on your system using your favourite compression program, e.g. winzip, rar, zip, etc. From there you must FTP <strong>ALL</strong> the files it contains (being sure to retain the directory structure and filenames) to your host. Please ensure that the cases of filenames are retained, do <strong>NOT</strong> force filenames to all lower or upper case doing so will cause errors later.</p>
indvdum@0
   182
indvdum@0
   183
	<p>All .php, .inc, .sql, .cfg, .html and .txt files should be uploaded in <strong>ASCII</strong> mode, while all graphics should be uploaded in <strong>BINARY</strong> mode. If you are unfamiliar with what this means please refer to your FTP client documentation. In most cases this is all handled transparantly by your ftp client but if you encounter problems later you should be sure the files where uploaded correctly as described here.</p>
indvdum@0
   184
indvdum@0
   185
	<p>phpBB3 comes supplied with english as its standard language. However a number of separate packs for different languages are available. If you are not a native english speaker you may wish to install one or more of these packages before continuing. The installation process below will allow you to select a default language from those available (you can of course change this default at a later stage). For more details of language packs, where to obtain them and how to install them please see the <a href="README.html#i18n">README</a>.</p>
indvdum@0
   186
indvdum@0
   187
	<p>Once all the files have been uploaded to your site you should point your browser at this location with the addition of <code>install/</code>. For example if your domain name is <em>www.mydomain.tld</em> and you placed phpBB3 in a directory /phpBB3 off your web root you would enter <em>http://www.mydomain.tld/phpBB3/install/</em> or (alternatively) <em>http://www.mydomain.tld/phpBB3/install/index.php</em> into your browser. When you have done this you should see the phpBB3 Installation screen appear.</p>
indvdum@0
   188
indvdum@0
   189
	<h4>Introduction:</h4>
indvdum@0
   190
indvdum@0
   191
	<p>The installation screen gives you a short introduction into phpBB. It allows you to read the license phpBB3 is released under (General Public License) and provides information about how you can receive support. To start the installation, use the <em>Install</em> button.</p>
indvdum@0
   192
indvdum@0
   193
	<h4>Requirements</h4>
indvdum@0
   194
indvdum@0
   195
	<p>The first page you will see after starting the installation is the Requirements list. phpBB3 checks automatically whether everything that it needs to run properly is installed on your server. You need to have at least the minimum PHP version installed, and at least one database available to continue the installation. Also important, is that all shown folders are available and do have the correct permissions. Please see the description of each section to find out whether they are optional or required for phpBB3 to run. If everything is in order, you can continue the installation with <em>Start Install</em>.</p>
indvdum@0
   196
indvdum@0
   197
	<h4>Database settings</h4>
indvdum@0
   198
indvdum@0
   199
	<p>You now have to decide which database to use. See the <a href="#require">Requirements section</a> for information on which databases are supported. If you do not know your database settings, please contact your host and ask for them. You will not be able to continue without them. You need:</p>
indvdum@0
   200
indvdum@0
   201
	<ul>
indvdum@0
   202
		<li>The Database Type - the database you will be using.</li>
indvdum@0
   203
		<li>The Database server hostname or DSN - the address of the database server.</li>
indvdum@0
   204
		<li>The Database server port - the port of the database server (most of the time this is not needed).</li>
indvdum@0
   205
		<li>The Database name - the name of the database on the server.</li>
indvdum@0
   206
		<li>The Database username and Database password - the login data to access the database.</li>
indvdum@0
   207
	</ul>
indvdum@0
   208
indvdum@0
   209
	<div class="indent">
indvdum@0
   210
		<p><strong>Note:</strong> if you are installing using SQLite, you should enter the full path to your database file in the DSN field and leave the username and password fields blank. For security reasons, you should make sure that the database file is not stored in a location accessible from the web.</p>
indvdum@0
   211
	</div>
indvdum@0
   212
indvdum@0
   213
	<p>You don't need to change the Prefix for tables in database setting, unless you plan on using multipe phpBB installations on one database. In this case you can use a different prefix for each installation to make it work.</p>
indvdum@0
   214
indvdum@0
   215
	<p>After you entered your details, you can continue with the Proceed to next step button. Now phpBB3 will check whether the data you entered will lead to a successful database connection and whether tables with the same prefix already exist.</p>
indvdum@0
   216
indvdum@0
   217
	<p>A <em>Could not connect to the database</em> error means that you didn't enter the database data correctly and it is not possible for phpBB to connect. Make sure that everything you entered is in order and try again. Again, if you are unsure about your database settings, please contact your host.</p>
indvdum@0
   218
indvdum@0
   219
	<p>If you installed another version of phpBB before on the same database with the same prefix, phpBB will inform you and you just need to enter a different database prefix.</p>
indvdum@0
   220
indvdum@0
   221
	<p>If you see the Successful Connection message, you can continue to the next step.</p>
indvdum@0
   222
indvdum@0
   223
	<h4>Administrator details</h4>
indvdum@0
   224
indvdum@0
   225
	<p>Now you have to create your administration user. This user will have full administration access and he/she will be the first user on your forum. All fields on this page are required. You can also set the default language of your forum on this page. In a vanilla phpBB3 installation we only include English. You can download further languages from <a href="http://www.phpbb.com/">www.phpbb.com</a>, and add them before installing or later.</p>
indvdum@0
   226
indvdum@0
   227
	<h4>Configuration file</h4>
indvdum@0
   228
indvdum@0
   229
	<p>In this step, phpBB will try to write the configuration file automatically. The forum needs the configuration to run properly. It contains all database settings, so without it, phpBB will not be able to access the database.</p>
indvdum@0
   230
indvdum@0
   231
	<p>Usually writing the configuration file automatically works fine. But in some cases it can fail due to wrong file permissions, for instance. In this case, you need to upload the file manually. phpBB asks you to download the config.php file and tells you what to do with it. Please read the instructions carefully. After you have uploaded the file, use <em>Done</em> to get to the last step. If <em>Done</em> returns you to the same page as before, and does not return a success message, you did not upload the file correctly.</p>
indvdum@0
   232
indvdum@0
   233
	<h4>Advanced settings</h4>
indvdum@0
   234
indvdum@0
   235
	<p>The Advanced settings allow you to set some parameters of the board configuration. They are optional, and you can always change them later. So if you are not sure what these settings mean, proceed to the final step and finish the installation.</p>
indvdum@0
   236
indvdum@0
   237
	<p>If the installation was successful, you can now use the Login button to visit the Administration Control Panel. Congratulations, you have installed phpBB3 successfully. But there is still work ahead!</p>
indvdum@0
   238
indvdum@0
   239
	<p>If you are unable to get phpBB3 installed even after reading this guide, please look at the support section to find out where you can ask for further assistance.</p>
indvdum@0
   240
indvdum@0
   241
	<p>At this point if you are converting from phpBB 2.0.x, you should refer to the <a href="#convert">conversion steps</a> for further information. If not, you should remove the install directory from your server as you will only be able to access the Administration Control Panel whilst it is present.</p>
indvdum@0
   242
indvdum@0
   243
		</div>
indvdum@0
   244
indvdum@0
   245
		<div class="back2top"><a href="#wrap" class="top">Back to Top</a></div>
indvdum@0
   246
indvdum@0
   247
		<span class="corners-bottom"><span></span></span></div>
indvdum@0
   248
	</div>
indvdum@0
   249
indvdum@0
   250
	<hr />
indvdum@0
   251
indvdum@0
   252
	<a name="update"></a><h2>4. Updating from stable releases of phpBB 3.0.x</h2>
indvdum@0
   253
indvdum@0
   254
	<div class="paragraph">
indvdum@0
   255
		<div class="inner"><span class="corners-top"><span></span></span>
indvdum@0
   256
indvdum@0
   257
		<div class="content">
indvdum@0
   258
indvdum@0
   259
<p>If you are currently using a stable release of phpBB3 updating to this version is straightforward. You would have downloaded one of four packages and your choice determines what you need to do. <strong>Please Note</strong>: That before updating we heavily recommend you do a <em>full backup of your database and existing phpBB3 files</em>! If you are unsure how to achieve this please ask your hosting provider for advice.</p>
indvdum@0
   260
indvdum@0
   261
<p><strong>Please make sure you update your phpBB3 source files too, even if you run the <code>database_update.php</code> file.</strong></p>
indvdum@0
   262
indvdum@0
   263
<a name="update_full"></a><h3>4.i. Full package</h3>
indvdum@0
   264
indvdum@0
   265
	<p>The full package is normally meant for new installations only, but if you want to replace all source files this package comes in handy.</p>
indvdum@0
   266
indvdum@0
   267
	<p>First you should make a copy of your existing <em>config.php</em> file, keep it in a safe place! Next delete all the existing phpBB3 files, you may want to leave your <code>files/</code> and <code>images/</code> directory in place. You can leave alternative styles in-place too. With this complete you can upload the new phpBB3 files (see <a href="#install">New installation</a> for details if necessary). Once complete copy back your saved <em>config.php</em>, replacing the new one. Another method is to just <strong>replace</strong> the existing files with the files from the full package - though make sure you do <strong>not</strong> overwrite your config.php file.</p>
indvdum@0
   268
indvdum@0
   269
	<p>You should now run <code>install/database_update.php</code> which, depending on your previous version, will make a number of database changes. You may receive <em>FAILURES</em> during this procedure, they should not be a cause for concern unless you see an actual <em>ERROR</em>, in which case the script will stop (in this case you should seek help via our forums or bug tracker).</p>
indvdum@0
   270
indvdum@0
   271
	<p>Once the install/database_update.php has completed you may proceed to the Administration Control Panel and check remove the install directory as advised.</p>
indvdum@0
   272
indvdum@0
   273
<a name="update_files"></a><h3>4.ii. Changed files only</h3>
indvdum@0
   274
indvdum@0
   275
	<p>This package is meant for those wanting to only replace changed files from a previous version to the latest version. This package normally contains the changed files from up to five previous versions.</p>
indvdum@0
   276
indvdum@0
   277
	<p>This package contains a number of archives, each contains the files changed from a given release to the latest version. You should select the appropriate archive for your current version, e.g. if you currently have <samp>3.0.9</samp> you should select the phpBB-3.0.9_to_3.0.10.zip/tar.gz file.</p>
indvdum@0
   278
indvdum@0
   279
	<p>The directory structure has been preserved enabling you (if you wish) to simply upload the contents of the archive to the appropriate location on your server, i.e. simply overwrite the existing files with the new versions. Do not forget that if you have installed any MODs these files will overwrite the originals possibly destroying them in the process. You will need to re-add MODs to any affected file before uploading.</p>
indvdum@0
   280
indvdum@0
   281
	<p>As for the other update procedures you should run <b>install/database_update.php</b> after you have finished updating the files. This will update your database schema and increment the version number.</p>
indvdum@0
   282
indvdum@0
   283
<a name="update_patch"></a><h3>4.iii. Patch file</h3>
indvdum@0
   284
indvdum@0
   285
	<p>The patch file package is for those wanting to update through the patch application, and being comfortable with it.</p>
indvdum@0
   286
indvdum@0
   287
	<p>The patch file is one solution for those with many Modifications (MODs) or other changes who do not want to re-add them back to all the changed files if they use the method explained above. To use this you will need command line access to a standard UNIX type <strong>patch</strong> application. If you do not have access to such an application but still want to use this update approach, we strongly recommend the <a href="#update_auto">Automatic update package</a> explained below. It is also the recommended update method.</p>
indvdum@0
   288
indvdum@0
   289
	<p>A number of patch files are provided to allow you to update from previous stable releases. Select the correct patch, e.g. if your current version is <samp>3.0.9</samp> you need the phpBB-3.0.9_to_3.0.10.patch file. Place the correct patch in the parent directory containing the phpBB3 core files (i.e. index.php, viewforum.php, etc.). With this done you should run the following command: <strong>patch -cl -d [PHPBB DIRECTORY] -p1 &lt; [PATCH NAME]</strong> (where PHPBB DIRECTORY is the directory name your phpBB Installation resides in, for example phpBB3, and where PATCH NAME is the relevant filename of the selected patch file). This should complete quickly, hopefully without any HUNK FAILED comments.</p>
indvdum@0
   290
indvdum@0
   291
	<p>If you do get failures you should look at using the <a href="#update_files">Changed files only</a> package to replace the files which failed to patch, please note that you will need to manually re-add any Modifications (MODs) to these particular files. Alternatively if you know how you can examine the .rej files to determine what failed where and make manual adjustments to the relevant source.</p>
indvdum@0
   292
indvdum@0
   293
	<p>You should of course delete the patch file (or files) after use. As for the other update procedures you should run <code>install/database_update.php</code> after you have finished updating the files. This will update your database schema and data (if appropriate) and increment the version number.</p>
indvdum@0
   294
indvdum@0
   295
<a name="update_auto"></a><h3>4.iv. Automatic update package</h3>
indvdum@0
   296
indvdum@0
   297
	<p>This update method is the recommended method for updating. This package allows detecting changed files automatically and merges changes if needed.</p>
indvdum@0
   298
indvdum@0
   299
	<p>The automatic update package contains - contrary to the others - only the information required to update the previous release version to the latest available version. These packages are meant for use with the automatic update tool.</p>
indvdum@0
   300
indvdum@0
   301
	<p>To perform the update, either follow the instructions from the <code>Administration Control Panel-&gt;System</code> Tab - this should point out that you are running an outdated version and will guide you through the update - or follow the instructions listed below.</p>
indvdum@0
   302
indvdum@0
   303
	<ul>
indvdum@0
   304
		<li>Go to the <a href="http://www.phpbb.com/downloads/">downloads page</a> and download the latest update package listed there, matching your current version.</li>
indvdum@0
   305
		<li>Upload the archives contents to your phpBB installation - only the install folder is required. Upload the whole install folder, retaining the file structure.</li>
indvdum@0
   306
		<li>After the install folder is present, phpBB3 will go offline automatically.</li>
indvdum@0
   307
		<li>Point your browser to the install directory, for example <samp>http://www.example.com/phpBB3/install/</samp></li>
indvdum@0
   308
		<li>Choose the "Update" Tab and follow the instructions</li>
indvdum@0
   309
	</ul>
indvdum@0
   310
indvdum@0
   311
	<p>&nbsp;</p>
indvdum@0
   312
indvdum@0
   313
<a name="update_all"></a><h3>4.v. All package types</h3>
indvdum@0
   314
indvdum@0
   315
	<p>If you have non-English language packs installed you may want to see if a new version has been made available. A number of missing strings may have been added which, though not essential, may be beneficial to users. Please note that at this time not all language packs have been updated so you should be prepared to periodically check for updates.</p>
indvdum@0
   316
indvdum@0
   317
		</div>
indvdum@0
   318
indvdum@0
   319
		<div class="back2top"><a href="#wrap" class="top">Back to Top</a></div>
indvdum@0
   320
indvdum@0
   321
		<span class="corners-bottom"><span></span></span></div>
indvdum@0
   322
	</div>
indvdum@0
   323
indvdum@0
   324
	<hr />
indvdum@0
   325
indvdum@0
   326
	<a name="convert"></a><h2>5. Conversion from phpBB 2.0.x to phpBB 3.0.x</h2>
indvdum@0
   327
indvdum@0
   328
	<div class="paragraph">
indvdum@0
   329
		<div class="inner"><span class="corners-top"><span></span></span>
indvdum@0
   330
indvdum@0
   331
		<div class="content">
indvdum@0
   332
indvdum@0
   333
<p>This paragraph explains the steps necessary to convert your existing phpBB2 installation to phpBB3.</p>
indvdum@0
   334
indvdum@0
   335
<a name="prereq"></a><h3>5.i. Requirements before converting</h3>
indvdum@0
   336
indvdum@0
   337
	<p>Before converting we heavily recommend you do a <em>full backup of your database and files</em>! If you are unsure how to achieve this please ask your hosting provider for advice. You basically need to follow the basic instructions given for <a href="#install">New installations</a>. Please <strong>do not</strong> overwrite any old files - install phpBB3 at a different location.</p>
indvdum@0
   338
indvdum@0
   339
	<p>Once you made a backup of everything and also have a brand new phpBB3 installation, you can now begin the conversion.</p>
indvdum@0
   340
indvdum@0
   341
	<p>Note that the conversion requires CREATE and DROP privileges for the phpBB3's database user account.</p>
indvdum@0
   342
indvdum@0
   343
<a name="conversion"></a><h3>5.ii. Converting</h3>
indvdum@0
   344
indvdum@0
   345
	<p>To begin the conversion visit the install folder of your phpBB3 installation (the same as you have done for installing). Now you will see a new tab <em>Convert</em>. Click this tab.</p>
indvdum@0
   346
indvdum@0
   347
	<p>As with install the conversion is automated. Your previous 2.0.x database tables will not be changed as well as the original 2.0.x files remaining unaltered. The conversion is actually only filling your phpBB3 database tables and copying additional data over to your phpBB3 installation. This has the benefit that if something goes wrong you are able to either re-run the conversion or continue a conversion, while your old board is still accessible. We really recommend you disable your old installation while converting, else you may have inconsistent data after the conversion.</p>
indvdum@0
   348
indvdum@0
   349
	<p>Please note that this conversion process may take quite some time and depending on your hosting provider this may result in it failing (due to web server or other timeout issues). If this is the case you should ask your provider if they are willing to allow the convert script to temporarily exceed their limits (be nice and they will probably be quite helpful).</p>
indvdum@0
   350
indvdum@0
   351
	<p>Once completed your board should be immediately available. If you encountered errors you should report the problems to our bug tracker or seek help via our forums (see <a href="README.html">README</a> for details).</p>
indvdum@0
   352
indvdum@0
   353
<a name="postreq"></a><h3>5.iii. Things to do after conversion</h3>
indvdum@0
   354
indvdum@0
   355
	<p>After successful conversion there may be a few items you need to do - apart from checking if the installation is accessible and everything displayed correctly.</p>
indvdum@0
   356
indvdum@0
   357
	<p>The first thing you may want to do is going to the administration control panel and checking every configuration item within the general tab. Thereafter you may want to adjust the forum descriptions/names if you entered HTML there. You also may want to access the other administrative sections, e.g. adjusting permissions, smilies, icons, ranks, etc.</p>
indvdum@0
   358
indvdum@0
   359
	<p>Within the conversion the search index has not been created or transferred. This means after conversion you are not able to find any matches if you want to search for something. We recommend you rebuild your search index within <code>Admin -&gt; Maintenance -&gt; Database -&gt; Search Index</code>.</p>
indvdum@0
   360
indvdum@0
   361
	<p>After verifying the settings in the ACP, you can delete the install directory to enable the board. The board will stay disabled until you do so.</p>
indvdum@0
   362
indvdum@0
   363
	<p>Once you are pleased with your new installation you may want to give it the name of your old installation, changing the directory name. With phpBB3 this is possible without any problems - but you may still want to check your cookie settings within the administration panel, if the cookie path need to be adjusted prior to renaming.</p>
indvdum@0
   364
indvdum@0
   365
<a name="convprob"></a><h3>5.iv. Common conversion problems</h3>
indvdum@0
   366
indvdum@0
   367
	<p><strong>Broken non-latin characters</strong> The conversion script assumes that the database encoding in the source phpBB2 matches the encoding defined in the <code>lang_main.php</code> file of the default language pack of the source installation. Edit that file to match the database's encoding and re-start the conversion procedure.</p>
indvdum@0
   368
indvdum@0
   369
	<p><strong>http 500 / white pages</strong> The conversion is a load-heavy procedure. Restrictions imposed by some server hosting providers can cause problems. The most common causes are: too low values for the php settings <code>memory_limit</code> and <code>max_execution_time</code>. Limits on the allowed CPU time are also a frequent cause for such errors, as are caps on the number of database queries allowed. If you cannot change such settings, then contact your hosting provider or run the conversion procedure on a different computer. The phpBB.com forums are also an excellent location to ask for support.</p>
indvdum@0
   370
indvdum@0
   371
	<p><strong>Password conversion</strong> Due to the utf-8 based handling of passwords in phpBB3, it is not always possible to transfer all passwords. For passwords "lost in translation" the easiest workaround is to use the "forgotten password" function.</p>
indvdum@0
   372
indvdum@0
   373
	<p><strong>Path to your former board</strong> The converter expects the relative path to your old board's files. So, - for instance - if the old board is located at <code>http://www.yourdomain.com/forum</code> and the phpBB3 installation is located at <code>http://www.yourdomain.com/phpBB3</code>, then the correct value would be <code>../forum</code>. Note that the webserver user must be able to access the source installation's files.</p>
indvdum@0
   374
indvdum@0
   375
	<p><strong>Missing images</strong> If your default board language's language pack does not include all images, then some images might be missing in your installation. Always use a complete language pack as default language.</p>
indvdum@0
   376
indvdum@0
   377
	<p><strong>Smilies</strong> During the conversion you might see warnings about image files where the copying failed. That can happen if the old board's smilies have the same file names as those on the new board. Copy those files manually after the conversion, if you want to continue using the old smilies.</p>
indvdum@0
   378
indvdum@0
   379
indvdum@0
   380
		</div>
indvdum@0
   381
indvdum@0
   382
		<div class="back2top"><a href="#wrap" class="top">Back to Top</a></div>
indvdum@0
   383
indvdum@0
   384
		<span class="corners-bottom"><span></span></span></div>
indvdum@0
   385
	</div>
indvdum@0
   386
indvdum@0
   387
	<hr />
indvdum@0
   388
indvdum@0
   389
	<a name="postinstall"></a><h2>6. Important (security related) post-Install tasks for all installation methods</h2>
indvdum@0
   390
indvdum@0
   391
	<div class="paragraph">
indvdum@0
   392
		<div class="inner"><span class="corners-top"><span></span></span>
indvdum@0
   393
indvdum@0
   394
		<div class="content">
indvdum@0
   395
indvdum@0
   396
	<p>Once you have successfully installed phpBB3 you <strong>MUST</strong> ensure you remove the entire install/ directory. Leaving the install directory in place is a <em>very serious potential security issue</em> which may lead to deletion or alteration of files, etc. Please note that until this directory is removed, phpBB3 will not operate and a warning message will be displayed. Beyond this <strong>essential</strong> deletion, you may also wish to delete the docs/ directories if you wish.</p>
indvdum@0
   397
indvdum@0
   398
	<p>With these directories deleted you should proceed to the administration panel. Depending on how the installation completed you may have been directed there automatically. If not, login as the administrator you specified during install/conversion and click the <strong>Administration Panel</strong> link at the bottom of any page. Ensure that details specified in <code>Admin -&gt; General</code> are correct!</p>
indvdum@0
   399
indvdum@0
   400
<a name="avatars"></a><h3>6.i. Uploadable avatars</h3>
indvdum@0
   401
indvdum@0
   402
	<p>phpBB3 supports several methods for allowing users to select their own <em>avatar</em> (an avatar is a small image generally unique to a user and displayed just below their username in posts).</p>
indvdum@0
   403
indvdum@0
   404
	<p>Two of these options allow users to upload an avatar from their machine or a remote location (via a URL). If you wish to enable this function you should first ensure the correct paths for uploadeable avatars is set in <code>Admin -&gt; General -&gt; Board Configuration -&gt; Avatar settings</code>. By default this is <em>images/avatars/uploads</em> but you can set it to whatever you like, just ensure the configuration setting is updated. You must also ensure this directory can be written to by the webserver. Usually this means you have to alter its permissions to allow anyone to read and write to. Exactly how you should do this depends on your ftp client or server operating system.</p>
indvdum@0
   405
indvdum@0
   406
	<p>On UNIX systems for example you set the directory to a+rwx (or ugo+rwx or even 777). This can be done from a command line on your server using chmod or via your FTP client (using the Change Permissions, chmod or other Permissions dialoge box, see your FTP clients documentation for help). Most FTP clients list permissions in the form of User (Read, Write, Execute), Group (Read, Write, Execute) and Other (Read, Write, Execute). You need to tick all of these boxes to set correct permissions.</p>
indvdum@0
   407
indvdum@0
   408
	<p>On Windows system you need to ensure the directory is not write-protected and that it has global write permissions (see your servers documentation or contact your hosting provider if you are unsure on how to achieve this).</p>
indvdum@0
   409
indvdum@0
   410
	<p>Please be aware that setting a directories permissions to global write access is a potential security issue. While it is unlikely that anything nasty will occur (such as all the avatars being deleted) there are always people out there to cause trouble. Therefore you should monitor this directory and if possible make regular backups.</p>
indvdum@0
   411
indvdum@0
   412
<a name="webserver_configuration"></a><h3>6.ii. Webserver configuration</h3>
indvdum@0
   413
indvdum@0
   414
	<p>Depending on your web server you may have to configure your server to deny web access to the <code>cache/</code>, <code>files/</code>, <code>store/</code> and other directories. This is to prevent users from accessing sensitive files.</p>
indvdum@0
   415
indvdum@0
   416
	<p>For <strong>apache</strong> there are <code>.htaccess</code> files already in place to do this for you. For other webservers you will have to adjust the configuration yourself. Sample files for <strong>nginx</strong> and <strong>lighttpd</strong> to help you get started may be found in docs directory.</p>
indvdum@0
   417
indvdum@0
   418
		</div>
indvdum@0
   419
indvdum@0
   420
		<div class="back2top"><a href="#wrap" class="top">Back to Top</a></div>
indvdum@0
   421
indvdum@0
   422
		<span class="corners-bottom"><span></span></span></div>
indvdum@0
   423
	</div>
indvdum@0
   424
indvdum@0
   425
	<hr />
indvdum@0
   426
indvdum@0
   427
<a name="disclaimer"></a><h2>7. Copyright and disclaimer</h2>
indvdum@0
   428
indvdum@0
   429
	<div class="paragraph">
indvdum@0
   430
		<div class="inner"><span class="corners-top"><span></span></span>
indvdum@0
   431
indvdum@0
   432
		<div class="content">
indvdum@0
   433
indvdum@0
   434
	<p>This application is opensource software released under the <a href="http://opensource.org/licenses/gpl-license.php">GPL</a>. Please see source code and the docs directory for more details. This package and its contents are Copyright (c) <a href="http://www.phpbb.com/">phpBB Group</a>, All Rights Reserved.</p>
indvdum@0
   435
indvdum@0
   436
		</div>
indvdum@0
   437
indvdum@0
   438
		<div class="back2top"><a href="#wrap" class="top">Back to Top</a></div>
indvdum@0
   439
indvdum@0
   440
		<span class="corners-bottom"><span></span></span></div>
indvdum@0
   441
	</div>
indvdum@0
   442
indvdum@0
   443
<!-- END DOCUMENT -->
indvdum@0
   444
indvdum@0
   445
	<div id="page-footer">
indvdum@0
   446
		<div class="version">&nbsp;</div>
indvdum@0
   447
	</div>
indvdum@0
   448
</div></div>
indvdum@0
   449
indvdum@0
   450
<div>
indvdum@0
   451
	<a id="bottom" name="bottom" accesskey="z"></a>
indvdum@0
   452
</div>
indvdum@0
   453
indvdum@0
   454
</body>
indvdum@0
   455
</html>