Verzeichnisstruktur phpBB-3.3.15


Veröffentlicht
28.08.2024

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

INSTALL.html

Zuletzt modifiziert: 02.04.2025, 15:01 - Dateigröße: 38.08 KiB


001  <!DOCTYPE html>
002  <html dir="ltr" lang="en">
003  <head>
004  <meta charset="utf-8">
005  <meta http-equiv="X-UA-Compatible" content="IE=edge">
006  <meta name="keywords" content="" />
007  <meta name="description" content="phpBB 3.3.x Installation, updating and conversion information" />
008  <title>phpBB &bull; Install</title>
009   
010  <link href="assets/css/stylesheet.css" rel="stylesheet" type="text/css" media="screen" />
011   
012  </head>
013   
014  <body id="phpbb" class="section-docs">
015   
016  <div id="wrap">
017      <a id="top" name="top" accesskey="t"></a>
018      <div id="page-header">
019          <div class="headerbar">
020              <div class="inner">
021   
022              <div id="doc-description">
023                  <a href="../index.php" id="logo"><span class="site_logo"></span></a>
024                  <h1>phpBB 3.3.x Install</h1>
025                  <p>phpBB 3.3.x Installation, updating and conversion information</p>
026                  <p style="display: none;"><a href="#start_here">Skip</a></p>
027              </div>
028   
029              </div>
030          </div>
031      </div>
032   
033      <a name="start_here"></a>
034   
035      <div id="page-body">
036   
037  <!-- BEGIN DOCUMENT -->
038   
039  <div class="paragraph">
040      <p><strong>Please read this document completely before proceeding with installation, updating or converting.</strong></p>
041   
042      <p>This document will walk you through the basics on installing, updating and converting the forum software.</p>
043   
044      <p>
045          A basic overview of running phpBB can be found in the accompanying <a href="README.html">README</a> file.
046          Please ensure you read that document in addition to this! For more detailed information on using, installing,
047          updating and converting phpBB you should read <a href="https://www.phpbb.com/support/docs/en/3.3/ug/">the documentation</a>
048          available online.
049      </p>
050  </div>
051  <h1>Install</h1>
052   
053      <div class="paragraph menu">
054          <div class="inner">
055   
056          <div class="content">
057   
058  <ol>
059      <li><a href="#quickinstall">Quick install</a></li>
060      <li><a href="#require">Requirements</a></li>
061      <li><a href="#install">New installation</a></li>
062      <li><a href="#update">Updating from stable releases of phpBB 3.3.x</a>
063      <ol style="list-style-type: lower-roman;">
064          <li><a href="#update_full">Full package</a></li>
065          <li><a href="#update_files">Changed files</a></li>
066          <li><a href="#update_patch">Patch file</a></li>
067          <li><a href="#update_advanced">Advanced update package</a></li>
068          <li><a href="#update_all">All package types</a></li>
069      </ol>
070      </li>
071      <li><a href="#update30_31">Updating from phpBB 3.0.x/3.1.x to phpBB 3.2.x or phpBB 3.3.x</a></li>
072      <li><a href="#convert">Conversion from phpBB 2.0.x to phpBB 3.3.x</a>
073      <ol style="list-style-type: lower-roman;">
074          <li><a href="#prereq">Requirements before converting</a></li>
075          <li><a href="#conversion">Converting</a></li>
076          <li><a href="#postreq">Things to do after conversion</a></li>
077          <li><a href="#convprob">Common conversion problems</a></li>
078      </ol>
079      </li>
080      <li><a href="#postinstall">Important (security related) post-Install tasks for all installation methods</a>
081      <ol style="list-style-type: lower-roman;">
082          <li><a href="#avatars">Uploadable avatars</a></li>
083          <li><a href="#webserver_configuration">Webserver configuration</a></li>
084      </ol>
085      </li>
086      <li><a href="#anti_spam">Anti-Spam Measures</a></li>
087      <li><a href="#disclaimer">Copyright and disclaimer</a></li>
088  </ol>
089   
090          </div>
091   
092          </div>
093      </div>
094   
095      <hr />
096   
097      <a name="quickinstall"></a><h2>1. Quick install</h2>
098   
099      <div class="paragraph">
100          <div class="inner">
101   
102          <div class="content">
103   
104      <p>If you have basic knowledge of using FTP and are sure your hosting service or server will run phpBB 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>
105   
106      <ol>
107          <li>Decompress the phpBB archive to a local directory on your system.</li>
108          <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>
109          <li>Change the permissions on config.php to be writable by all (666 or -rw-rw-rw- within your FTP Client)</li>
110          <li>Change the permissions on the following directories to be writable by all (777 or -rwxrwxrwx within your FTP Client):<br />
111              <code>store/</code>, <code>cache/</code>, <code>files/</code> and <code>images/avatars/upload/</code>.</li>
112          <li>Point your web browser to the location where you uploaded the phpBB files with the addition of <code>install/app.php</code> or simply <code>install/</code>, e.g. <code>http://www.example.com/phpBB3/install/app.php</code>, <code>http://www.example.com/forum/install/</code>.</li>
113          <li>Click the <strong><em>INSTALL</em></strong> tab, follow the steps and fill out all the requested information.</li>
114          <li>Change the permissions on config.php to be writable only by yourself (644 or -rw-r--r-- within your FTP Client)</li>
115          <li>phpBB 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, and also take note of <a href="#anti_spam">Section 7</a> regarding anti-spam measures.</li>
116      </ol>
117   
118      <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>
119   
120          </div>
121   
122          <div class="back2top"><a href="#wrap" class="top">Back to Top</a></div>
123   
124          </div>
125      </div>
126   
127      <hr />
128   
129      <a name="require"></a><h2>2. Requirements</h2>
130   
131      <div class="paragraph">
132          <div class="inner">
133   
134          <div class="content">
135   
136      <p>phpBB 3.3.x has a few requirements which must be met before you are able to install and use it.</p>
137   
138      <ul>
139          <li>A webserver or web hosting account running on any major Operating System with support for PHP</li>
140          <li>A SQL database system, <strong>one of</strong>:
141          <ul>
142              <li>MySQL 4.1.3 or above (MySQLi required)</li>
143              <li>MariaDB 5.1 or above</li>
144              <li>PostgreSQL 8.3+</li>
145              <li>SQLite 3.6.15+</li>
146              <li>MS SQL Server 2000 or above (via ODBC or the native adapter)</li>
147              <li>Oracle</li>
148          </ul>
149          </li>
150          <li><strong>PHP 7.2.0+</strong> up to and including <strong>PHP 8.3</strong> with support for the database you intend to use.</li>
151          <li>The following PHP modules are required:
152          <ul>
153              <li>json</li>
154              <li>mbstring</li>
155              <li>XML support</li>
156          </ul>
157          </li>
158          <li>getimagesize() function must be enabled.</li>
159          <li>Presence of the following modules within PHP will provide access to additional features, but they are not required:
160          <ul>
161              <li>zlib Compression support</li>
162              <li>Remote FTP support</li>
163              <li>GD Support</li>
164          </ul>
165          </li>
166      </ul>
167   
168      <p>If your server or hosting account does not meet the requirements above then you will be unable to install phpBB 3.3.x.</p>
169   
170          </div>
171   
172          <div class="back2top"><a href="#wrap" class="top">Back to Top</a></div>
173   
174          </div>
175      </div>
176   
177      <hr />
178   
179      <a name="install"></a><h2>3. New installation</h2>
180   
181      <div class="paragraph">
182          <div class="inner">
183   
184          <div class="content">
185   
186      <p>Installation of phpBB 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 phpBB archive (in binary mode!) to a directory on your host and unarchive it there.</p>
187   
188      <p>If you do not have shell access or do not wish to use it, you will need to decompress the phpBB 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 as doing so will cause errors later.</p>
189   
190      <p>All .php, .sql, .cfg, .css, .js, .html, .htaccess 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 were uploaded correctly as described here.</p>
191   
192      <p>phpBB comes supplied with British 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 on language packs, where to obtain them and how to install them please see the <a href="README.html#i18n">README</a>.</p>
193   
194      <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 <code>www.example.com</code> and you placed the phpBB files in the directory <code>/phpBB3</code> off your web root you would enter <code>http://www.example.com/phpBB3/install/</code> or (alternatively) <code>http://www.example.com/phpBB3/install/app.php</code> into your browser. When you have done this, you should see the <strong><em>phpBB Introduction</em></strong> screen appear.</p>
195   
196      <h4>Introduction:</h4>
197   
198      <p>The initial screen gives you a short introduction into phpBB. It allows you to read the license phpBB is released under (General Public License v2) and provides information about how you can receive support. To start the installation, use the <strong><em>INSTALL</em></strong> tab.</p>
199   
200      <h4>Requirements</h4>
201   
202      <p>The first page you will see after starting the installation is the Requirements list. phpBB automatically checks 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 have the correct permissions. Please see the description of each section to find out whether they are optional or required for phpBB to run. If everything is in order, you can continue the installation with <em>Start Install</em>.</p>
203   
204      <h4>Database settings</h4>
205   
206      <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>
207   
208      <ul>
209          <li>The Database Type - the database you will be using.</li>
210          <li>The Database server hostname or DSN - the address of the database server.</li>
211          <li>The Database server port - the port of the database server (most of the time this is not needed).</li>
212          <li>The Database name - the name of the database on the server.</li>
213          <li>The Database username and Database password - the login data to access the database.</li>
214      </ul>
215   
216      <div class="indent">
217          <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>
218      </div>
219   
220      <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>
221   
222      <p>After you entered your details, you can continue with the <em>Proceed to next step</em> button. Now phpBB will check whether the data you entered will lead to a successful database connection and whether tables with the same prefix already exist.</p>
223   
224      <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>
225   
226      <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>
227   
228      <p>If you see the <em>Successful Connection</em> message, you can continue to the next step.</p>
229   
230      <h4>Administrator details</h4>
231   
232      <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 phpBB installation, we only include British English. You can download further languages from <a href="https://www.phpbb.com/">www.phpbb.com</a>, and add them before installing or later.</p>
233   
234      <h4>Configuration file</h4>
235   
236      <p>In this step, phpBB will try to write the configuration file automatically. The forum needs the configuration file in order to operate. It contains all the database settings, so without it, phpBB will not be able to access the database.</p>
237   
238      <p>Usually, writing the configuration file automatically works fine. If the file permissions are not set correctly, this process can fail. In this case, you need to upload the file manually. phpBB asks you to download the <code>config.php</code> 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>
239   
240      <h4>Advanced settings</h4>
241   
242      <p>The Advanced settings allow you to set additional parameters of the board configuration. They are optional and you can always change them later. So, even if you are not sure what these settings mean, you can still proceed to the final step and finish the installation.</p>
243   
244      <p>If the installation was successful, you can now use the <em>Login</em> button to visit the Administration Control Panel. Congratulations, you have installed phpBB successfully. But there is still work ahead!</p>
245   
246      <p>If you are unable to get phpBB installed even after reading this guide, please look at the support section of the installer's introduction page to find out where you can ask for further assistance.</p>
247   
248      <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>
249   
250          </div>
251   
252          <div class="back2top"><a href="#wrap" class="top">Back to Top</a></div>
253   
254          </div>
255      </div>
256   
257      <hr />
258   
259      <a name="update"></a><h2>4. Updating from stable releases of phpBB 3.3.x</h2>
260   
261      <div class="paragraph">
262          <div class="inner">
263   
264          <div class="content">
265   
266  <p>If you are currently using a stable release of phpBB, updating to this version is straightforward. You would have downloaded one of four packages and your choice determines what you need to do. <strong>Note</strong>: Before updating, we heavily recommend you do a <em>full backup of your database and existing phpBB files</em>! If you are unsure how to achieve this please ask your hosting provider for advice.</p>
267   
268  <p><strong>Please make sure you update your phpBB source files too, even if you just run the database updater.</strong> If you have shell access to your server, you may wish to update via the command line interface. From your board's root, execute the following command: <code>php bin/phpbbcli.php --safe-mode db:migrate</code>.</p>
269   
270  <a name="update_full"></a><h3>4.i. Full package</h3>
271   
272      <p>Updating using the full package is the recommended update method for boards without modifications to core phpBB files.</p>
273   
274      <p>First, you should make a copy of your existing <code>config.php</code> file; keep it in a safe place! Next, delete all the existing phpBB files, you should leave your <code>files/</code>, <code>images/</code> and <code>ext/</code> directories in place, otherwise you will lose your file attachments, uploaded images and get errors due to missing extension files. You can leave alternative styles in place too. With this complete, you can upload the new phpBB files (see <a href="#install">New installation</a> for details if necessary). Once complete, copy back your saved <code>config.php</code>, 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>
275   
276      <p>You should now got to <code>/install/app.php/update</code> which will display a warning: <strong>No valid update directory was found, please make sure you uploaded the relevant files</strong>. Beneath that warning you will see a radio button <em>Update database only</em>, just click <strong>Submit</strong>. Depending on your previous version this 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). If you have shell access to your server, you may wish to update via the command line interface. From your board's root, execute the following command: <code>php bin/phpbbcli.php --safe-mode db:migrate</code>.</p>
277   
278      <p>Once <code>/install/app.php/update</code> has completed, it displays the success message: <strong>The database update was successful</strong>. You may proceed to the Administration Control Panel and then remove the install directory as advised.</p>
279   
280  <a name="update_files"></a><h3>4.ii. Changed files</h3>
281   
282      <p>This package is meant for those wanting to only replace the files that were changed between a previous version and the latest version.</p>
283   
284      <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 <strong>3.3.0</strong> you should select the appropriate <code>phpBB-3.3.1-files.zip/tar.bz2</code> file.</p>
285   
286      <p>The directory structure has been preserved, enabling you (if you wish) to simply upload the uncompressed 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 modifications (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>
287   
288      <p>As for the other update procedures, you should go to <code>/install/app.php/update</code>, select "Update database only" and submit the page after you have finished updating the files. This will update your database schema and increment the version number. If you have shell access to your server, you may wish to update via the command line interface. From your board's root, execute the following command: <code>php bin/phpbbcli.php --safe-mode db:migrate</code>.</p>
289   
290  <a name="update_patch"></a><h3>4.iii. Patch file</h3>
291   
292      <p>The patch file package is for those wanting to update through the patch application, and should only be used by those who are comfortable with it.</p>
293   
294      <p>The patch file is one solution for those with changes in to the phpBB core files and do not want to re-add them back to all the changed files. 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_full">Full package update</a> explained above. It is also the recommended update method.</p>
295   
296      <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 <strong>3.3.0</strong>, you need the <code>phpBB-3.3.1-patch.zip/tar.bz2</code> file. Place the correct patch in the parent directory containing the phpBB core files (i.e. index.php, viewforum.php, etc.). With this done you should run the following command: <code>patch -cl -d [PHPBB DIRECTORY] -p1 &lt; [PATCH NAME]</code> (where PHPBB DIRECTORY is the directory name your phpBB Installation resides in, for example phpBB, and where PATCH NAME is the relevant filename of the selected patch file). This should complete quickly, hopefully without any HUNK FAILED comments.</p>
297   
298      <p>If you do get failures, you should look at using the <a href="#update_files">Changed Files</a> package to replace the files which failed to patch. Please note that you will need to manually re-add any 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>
299   
300      <p>You should, of course, delete the patch file (or files) after use. As for the other update procedures, you should navigate to <code>/install/app.php/update</code>, select "Update database only" and submit the page after you have finished updating the files. This will update your database schema and data (if appropriate) and increment the version number. If you have shell access to your server, you may wish to update via the command line interface. From your board's root, execute the following command: <code>php bin/phpbbcli.php --safe-mode db:migrate</code>.</p>
301   
302  <a name="update_advanced"></a><h3>4.iv. Advanced update package (Expert users)</h3>
303   
304      <p>This update method should only be used for installations with modifications to core phpBB files. If you simply use Extensions or custom Styles and have not modified core files, please use the Full Package update.</p>
305   
306      <p>This package detects changed files and merges in changes if needed. Since this type of update has a potential to cause issues while upgrading, it should only be used by expert users.</p>
307   
308      <p>The advanced update package will update the board from a given version to the latest version. A number of advanced update files are available, and you should choose the one that corresponds to the version of the board that you are currently running. For example, if your current version is <strong>3.3.0</strong>, you need the <code>phpBB-3.3.0_to_3.3.1.zip/tar.bz2</code> file.</p>
309   
310      <p>To perform the update, either follow the instructions from the <strong>Administration Control Panel-&gt;System</strong> 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>
311   
312      <ul>
313          <li>Go to the <a href="https://www.phpbb.com/downloads/">downloads page</a> and download the latest update package listed there, matching your current version.</li>
314          <li>Upload the uncompressed archive contents to your phpBB installation - only the <code>install/</code> and <code>vendor/</code> folders are required. Upload these folders in their entirety, retaining the file structure.</li>
315          <li>After the install folder is present, phpBB will go offline automatically.</li>
316          <li>Point your browser to the install directory, for example <code>http://www.example.com/phpBB3/install/</code></li>
317          <li>Choose the "Update" Tab and follow the instructions</li>
318      </ul>
319   
320      <p>&nbsp;</p>
321   
322  <a name="update_all"></a><h3>4.v. All package types</h3>
323   
324      <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>
325   
326      <p>These update methods will only update the standard style <code>prosilver</code>, any other styles you have installed for your board will usually also need to be updated.</p>
327   
328          </div>
329   
330          <div class="back2top"><a href="#wrap" class="top">Back to Top</a></div>
331   
332          </div>
333      </div>
334   
335      <hr />
336   
337      <a name="update30_31"></a><h2>5. Updating from phpBB 3.0.x/3.1x to phpBB 3.2.x or phpBB 3.3.x</h2>
338   
339      <div class="paragraph">
340          <div class="inner"><span class="corners-top"><span></span></span>
341   
342          <div class="content">
343   
344              <p>Updating from phpBB 3.0.x or 3.1.x to 3.2.x or 3.3.x is just the same as <a href="#update">updating from stable releases of phpBB 3.3.x</a></p>
345   
346              <p>However you can also start with a new set of phpBB 3.3.x files.</p>
347   
348              <ol>
349                  <li>Delete all files <strong>EXCEPT</strong> for the following:
350   
351                  <ul>
352                      <li>The <code>config.php</code> file</li>
353                      <li>The <code>images/</code> directory</li>
354                      <li>The <code>files/</code> directory</li>
355                      <li>The <code>store/</code> directory</li>
356                      <li>(The <code>ext/</code> directory</li>
357                  </ul></li>
358   
359                  <li>Upload the contents of the 3.3.x Full Package (<strong>except</strong> for config.php) into your forum's directory. Make sure the root level .htaccess file is included in the upload.</li>
360                  <li>Browse to <code>/install/app.php/update</code></li>
361                  <li>Read the notice <em>Update database only</em> and press <strong>Submit</strong></li>
362                  <li>Delete the <code>install/</code> directory</li>
363              </ol>
364          </div>
365   
366          <div class="back2top"><a href="#wrap" class="top">Back to Top</a></div>
367   
368          <span class="corners-bottom"><span></span></span></div>
369      </div>
370   
371      <hr />
372   
373      <a name="convert"></a><h2>6. Conversion from phpBB 2.0.x to phpBB 3.3.x</h2>
374   
375      <div class="paragraph">
376          <div class="inner">
377   
378          <div class="content">
379   
380  <p>This paragraph explains the steps necessary to convert your existing phpBB2 installation to phpBB 3.x.</p>
381   
382  <a name="prereq"></a><h3>5.i. Requirements before converting</h3>
383   
384      <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 instructions given for <a href="#install">New installations</a>. Please <strong>do not</strong> overwrite any old files - install phpBB 3.x at a different location.</p>
385   
386      <p>Once you made a backup of everything and also have a brand new phpBB 3.x installation, you can now begin the conversion.</p>
387   
388      <p>Note that the conversion requires <code>CREATE</code> and <code>DROP</code> privileges for the phpBB 3.x database user account.</p>
389   
390  <a name="conversion"></a><h3>5.ii. Converting</h3>
391   
392      <p>To begin the conversion, visit the <code>install/</code> folder of your phpBB 3.x installation (the same as you have done for installing). Now you will see a new tab <em>Convert</em>. Click this tab.</p>
393   
394      <p>As with install, the conversion is automated. Your previous 2.0.x database tables will not be changed and the original 2.0.x files will remain unaltered. The conversion is actually only filling your phpBB 3.x database tables and copying additional data over to your phpBB 3.x 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 that you disable your old installation while converting, else you may have inconsistent data after the conversion.</p>
395   
396      <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 resource limits 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). If your host is unwilling to increase the limits to run the convertor, please see this article for performing the conversion on your local machine: <a href="https://www.phpbb.com/kb/article/offline-conversions/">Knowledge Base - Offline Conversions</a></p>
397   
398      <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>
399   
400  <a name="postreq"></a><h3>5.iii. Things to do after conversion</h3>
401   
402      <p>After a 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>
403   
404      <p>The first thing you may want to do is to go to the administration control panel and check 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>
405   
406      <p>During the conversion, the search index is not 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 <strong>Administration Control Panel -&gt; Maintenance -&gt; Database -&gt; Search Index</strong>.</p>
407   
408      <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>
409   
410      <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; in case your cookie path needs to be adjusted prior to renaming.</p>
411   
412  <a name="convprob"></a><h3>5.iv. Common conversion problems</h3>
413   
414      <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>
415   
416      <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: values too low 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 limits 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>
417   
418      <p><strong>Password conversion</strong> Due to the utf-8 based handling of passwords in phpBB 3.x, it is not always possible to transfer all passwords. For passwords "lost in translation" the easiest workaround is to use the <em>I forgot my password</em> link on the login page.</p>
419   
420      <p><strong>Path to your former board</strong> The convertor 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 phpBB 3.x 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>
421   
422      <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>
423   
424      <p><strong>Smilies</strong> During the conversion you might see warnings about image files where the copying failed. This 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>
425   
426   
427          </div>
428   
429          <div class="back2top"><a href="#wrap" class="top">Back to Top</a></div>
430   
431          </div>
432      </div>
433   
434      <hr />
435   
436      <a name="postinstall"></a><h2>7. Important (security related) post-Install tasks for all installation methods</h2>
437   
438      <div class="paragraph">
439          <div class="inner">
440   
441          <div class="content">
442   
443      <p>Once you have successfully installed phpBB you <strong>MUST</strong> ensure you remove the entire <code>install/</code> 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, phpBB will not operate and a warning message will be displayed. Beyond this <strong>essential</strong> deletion, you may also wish to delete the docs/ directory if you wish.</p>
444   
445      <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 Control Panel</strong> link at the bottom of any page. Ensure that details specified on the <strong>General</strong> tab are correct!</p>
446   
447  <a name="avatars"></a><h3>6.i. Uploadable avatars</h3>
448   
449      <p>phpBB 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>
450   
451      <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 path for uploadable avatars is set in <strong>Administration Control Panel -&gt; General -&gt; Board Configuration -&gt; Avatar settings</strong>. By default this is <code>images/avatars/uploads</code>, 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 it. Exactly how you should do this depends on your FTP client or server operating system.</p>
452   
453      <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 dialog box, see your FTP client's 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>
454   
455      <p>On Windows systems, you need to ensure the directory is not write-protected and that it has global write permissions (see your server's documentation or contact your hosting provider if you are unsure on how to achieve this).</p>
456   
457      <p>Please be aware that setting a directory's 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>
458   
459  <a name="webserver_configuration"></a><h3>6.ii. Webserver configuration</h3>
460   
461      <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>includes</code>, <code>phpbb</code>, <code>store/</code>, and <code>vendor</code> directories. This is to prevent users from accessing sensitive files.</p>
462   
463      <p>
464          For <strong>Apache</strong> there are <code>.htaccess</code> files already in place to do this for the most sensitive files and folders. We do however recommend to completely deny all access to the aforementioned folders and their respective subfolders in your Apache configuration.<br />
465          On Apache 2.4, denying access to the <code>phpbb</code> folder in a phpBB instance located at <code>/var/www/html/</code> would be accomplished by adding the following access rules to the Apache configuration file (typically apache.conf):
466          <pre>
467  &lt;Directory /var/www/html/phpbb/*&gt;
468      Require all denied
469  &lt;/Directory&gt;
470  &lt;Directory /var/www/html/phpbb>
471      Require all denied
472  &lt;/Directory&gt;</pre>
473          <br />
474      <p>The same settings can be applied to the other mentioned directories by replacing <code>phpbb</code> by the respective directory name. Please note that there are differences in syntax between Apache version <a href="https://httpd.apache.org/docs/2.2/howto/access.html">2.2</a> and <a href="https://httpd.apache.org/docs/2.4/howto/access.html">2.4</a>.</p>
475      <p>For <strong>Windows</strong> based servers using <strong>IIS</strong> there are <code>web.config</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 the <code>docs/</code> directory.</p>
476   
477          </div>
478   
479          <div class="back2top"><a href="#wrap" class="top">Back to Top</a></div>
480   
481          </div>
482      </div>
483   
484      <hr />
485   
486  <a name="anti_spam"></a><h2>8. Anti-Spam Measures</h2>
487   
488          <div class="paragraph">
489          <div class="inner">
490   
491          <div class="content">
492      <p>Like any online site that allows user input, your board could be subject to unwanted posts; often referred to as <a href="http://en.wikipedia.org/wiki/Forum_spam">forum spam</a>. The vast majority of these attacks will be from automated computer programs known as <a href="http://en.wikipedia.org/wiki/Spambot">spambots</a>. The attacks, generally, are not personal as the spammers are just trying to find accessible targets. phpBB has a number of anti-spam measures built in, including a range of CAPTCHAs. However, administrators are strongly urged to read and follow the advice for <a href="https://www.phpbb.com/support/spam/">Preventing Spam in phpBB</a> as soon as possible after completing the installation of your board.</p>
493          </div>
494   
495          <div class="back2top"><a href="#wrap" class="top">Back to Top</a></div>
496   
497          </div>
498      </div>
499   
500      <hr />
501   
502  <a name="disclaimer"></a><h2>9. Copyright and disclaimer</h2>
503   
504      <div class="paragraph">
505          <div class="inner">
506   
507          <div class="content">
508   
509      <p>phpBB is free software, released under the terms of the <a href="http://opensource.org/licenses/gpl-2.0.php">GNU General Public License, version 2 (GPL-2.0)</a>. Copyright © <a href="https://www.phpbb.com">phpBB Limited</a>. For full copyright and license information, please see the docs/CREDITS.txt file.</p>
510   
511          </div>
512   
513          <div class="back2top"><a href="#wrap" class="top">Back to Top</a></div>
514   
515          </div>
516      </div>
517   
518  <!-- END DOCUMENT -->
519   
520      <div id="page-footer">
521          <div class="version">&nbsp;</div>
522      </div>
523  </div></div>
524   
525  <div>
526      <a id="bottom" accesskey="z"></a>
527  </div>
528   
529  </body>
530  </html>
531