Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
831 florian 1
Phorum 5 Installation instructions
2
==================================
3
 
4
Contents:
5
 
6
1. Requirements
7
2. Quickstart guide
8
3. Detailed installation instructions
9
   3.1 Download Phorum
10
   3.2 Unpack the downloaded archive
11
   3.3 Place the Phorum files in your website's document root
12
   3.4 Create a database and a database user
13
   3.5 Configure the database access
14
   3.6 Run the web based installer
15
   3.7 Things to do after installing Phorum
16
4. Additional issues
17
   4.1 Additional issues for UNIX (Linux, BSD, Solaris, etc.)
18
       4.1.2 Cache directory
19
   4.2 Additional issues for Windows
20
       4.2.1 Cache directory
21
       4.2.2 Problems sending mail to end-users
22
       4.2.3 Date formatting
23
5. Support
24
 
25
 
26
1. Requirements
27
-------------------------------------------------------------------------------
28
 
29
 
30
   Requirements for running Phorum are:
31
 
32
   * A webserver;
33
   * PHP, version 4 or above;
34
   * A MySQL server, version 4 or above.
35
 
36
   If you do not run your own website, but have hosted your website with
37
   a hosting provider, then please ask your hosting provider if your
38
   account meets these requirements.
39
 
40
 
41
2. Quickstart guide:
42
-------------------------------------------------------------------------------
43
 
44
 
45
   This is the quickstart guide for installing Phorum, aimed at people that
46
   are used to working with websites, PHP and databases. If you are having
47
   problems following this guide, then please read chapter 3 instead.
48
 
49
   1. Unpack Phorum into a directory below your website's document root;
50
   2. Create a database and a full-access database user for that database;
51
   3. Edit include/db/config.php.sample, save it as include/db/config.php;
52
   4. Open {phorum url}/admin.php in your web browser and finish the install.
53
 
54
 
55
3. Detailed installation instructions
56
-------------------------------------------------------------------------------
57
 
58
 
59
 3.1 Download Phorum
60
 -------------------
61
 
62
   If you haven't already done so, download the latest Phorum distribution
63
   from http://phorum.org/downloads.php
64
 
65
 
66
 3.2 Unpack the downloaded archive
67
 ---------------------------------
68
 
69
   From Windows:
70
 
71
   If you have downloaded the .zip file, you can extract the
72
   files from that archive directly using Windows XP's zipfile support.
73
   If you downloaded the .tar.gz file, you will have to download an
74
   appropriate tool for unpacking, e.g. WinZip (http://www.winzip.com/).
75
 
76
   From UNIX:
77
 
78
   If you have access to a UNIX shell, you can unpack the .tar.gz
79
   archive using the following command:
80
 
81
   shell> tar xvzf phorum-x.y.z.tar.gz
82
 
83
   Or if the tar program on your system does not support the -z flag:
84
 
85
   shell> gunzip phorum-x-y-z.tar.gz
86
   shell> tar xvf phorum-x.y.z.tar
87
 
88
 
89
 3.3 Place the Phorum files in your website's document root
90
 ----------------------------------------------------------
91
 
92
   The document root for a website is the directory in which your site's
93
   web pages are stored. If your website's URL is "http://www.example.com"
94
   and you place the Phorum files in a directory called "forum" inside
95
   your document root, your Phorum installation will be available at the
96
   URL "http://www.example.com/forum". From now on, we will name this
97
   URL simply {phorum url}. So if you see {phorum url}/admin.php, using the
98
   example we mean http://www.example.com/forum/admin.php
99
 
100
   If the webserver is running on the same system as where you have
101
   unpacked the downloaded archive, you can move the unpacked files
102
   to your website's document root.
103
 
104
   If the webserver is running on another system, you will have to upload
105
   the files to your website's document root. In most cases, you will use
106
   FTP for this, but some hosting providers require SCP (secure copy,
107
   which is more secure than FTP). If you do not know how or where to
108
   upload the Phorum files, please contact your hosting provider.
109
 
110
   Security note:
111
   (simply ignore this if it does not make sense to you)
112
   There are software packages that require you to make files writable
113
   for the webserver (using the infamous "chmod 777"). DO NOT DO THIS
114
   FOR ANY OF THE PHORUM FILES. The webserver only needs read access on
115
   the disctribution files, because all dynamic data is stored in the
116
   database. If you run into problems running Phorum, it will never be
117
   because you "forgot" to do "chmod 777" on any the Phorum files.
118
 
119
 
120
 3.4 Create a database and a database user
121
 -----------------------------------------
122
 
123
   Phorum stores all its data in a database. So you now need to create
124
   a database. Officially, only the MySQL database server is supported
125
   by Phorum, so we recommend to use MySQL whenever possible.
126
 
127
   If you have hosted your site with a hosting provider, then ask
128
   your hosting provider to setup the database and a full access
129
   database user for you.
130
 
131
   If you run your own database server, then you will have to create
132
   the database and the user yourself. If you are using a control
133
   panel, like phpmyadmin, then use that control panel to create
134
   them. Else, you can use the mysql prompt to create the database
135
   by issuing commands like:
136
 
137
   mysql> CREATE DATABASE phorum;
138
   mysql> GRANT ALL ON phorum.* TO user@localhost IDENTIFIED BY password;
139
 
140
   Of course, for security reasons you would use your own user and
141
   password instead.
142
 
143
   If you are unsure how to create a database and a database user,
144
   please refer to your system documentation.
145
 
146
 
147
 3.5 Configure the database access
148
 ---------------------------------
149
 
150
   After setting up the database, you'll have to tell Phorum how the
151
   database can be accessed. This configuration is put in the file
152
   include/db/config.php inside your Phorum directory. This file is
153
   not in the distribution. Only a differently named sample file is
154
   included.
155
 
156
   First, copy or rename the file "include/db/config.php.sample" to
157
   "include/db/config.php". Now edit the config.php file to match the
158
   access settings for the database that was created in step 4.
159
 
160
   If you run your website on a remote server, then either edit
161
   the config.php file directly on that server (e.g. through a
162
   UNIX prompt) or upload the file to the correct location after
163
   editing it locally.
164
 
165
 
166
 3.6 Run the web based installer
167
 -------------------------------
168
 
169
   Now all is in place to run Phorum's installer script.
170
   Open {phorum url}/admin.php using your web browser. This is the admin
171
   interface, which will automatically detect that a fresh install has
172
   to be performed.
173
 
174
   Follow the instructions on screen to finish the Phorum installation.
175
 
176
 
177
 3.7 Things to do after installing Phorum
178
 ----------------------------------------
179
 
180
   Now the installation is complete, test if the forum is working
181
   correctly by opening {phorum url} in your web browser. If you run
182
   into problems, please go to {forum url}/admin.php and click on
183
   "System Sanity Checks" in the menu. This page will perform a couple
184
   of system checks to rule out some basic problems. If problems are
185
   found, please follow the instructions from the sanity checks page
186
   to solve them.
187
 
188
   Login into the admin interface at {phorum url}/admin.php and check
189
   out what settings can be done to customize Phorum to your likings.
190
 
191
   Customize the looks of Phorum to your needs by creating a custom
192
   template. Instructions can be found in docs/creating_templates.txt.
193
 
194
   Read the additional issues for your system (below), docs/faq.txt
195
   and any other files in the docs dir that may help you.
196
 
197
 
198
4. Additional issues
199
-------------------------------------------------------------------------------
200
 
201
 
202
 4.1 Additional issues for UNIX (Linux, BSD, Solaris, etc.)
203
 ----------------------------------------------------------
204
 
205
  4.1.2 Cache directory
206
  ---------------------
207
 
208
   In step 5 above (Edit Settings) There is an entry called Cache
209
   Directory. the installer should set that to /tmp if you appear to
210
   be running a *nix system. This will keep compiled PHP versions of
211
   your templates in /tmp. You can change the cache dir if you do not
212
   want to have your files sitting in /tmp on the server or if you see
213
   error messages like:
214
 
215
   Warning:
216
   fopen(/tmp/tpl-default-header-a72fb9dd20915e5953aa9b07d3eb3871.php):
217
   failed to open stream: Permission denied in
218
   /path/to/phorum/include/templates.php on line 184
219
 
220
   If you change the the Cache Directory, the best bet is to set it
221
   to ./cache and make that dir (that is already there in the Phorum dir)
222
   writable by the web server. Most likely this means making it world
223
   writeable (chmod 777). If you do not have access to the shell prompt
224
   of the server and are using only FTP to access the server, please see
225
   your FTP clients help on setting the permissions for a directory.
226
 
227
 
228
 4.2 Additional issues for Windows
229
 ---------------------------------
230
 
231
 
232
  4.2.1 Cache directory
233
  ---------------------
234
 
235
   In step 5 above (Edit Settings) There is an entry called Cache
236
   Directory. The installer should set that to C:\Windows\Temp, if it
237
   can detect you are using Windows. This should work for most modern
238
   Windows versions. If it does not, you will see error messages like:
239
 
240
   Warning:
241
   fopen(c:\windows\temp\tpl-default-header-a72fb9dd209153aa9b07d3eb3871.php):
242
   failed to open stream: Permission denied in
243
   c:\path\to\phorum\include\templates.php on line 184
244
 
245
   You will need to change the Cache Directory. The Phorum team is not
246
   very familiar with Windows as a web server platform. We can only tell
247
   you that it will need to be something that the web server can write to.
248
   Changing the Cache Directory to ./cache has worked for some.
249
 
250
 
251
  4.2.2 Problems sending mail to end-users
252
  ----------------------------------------
253
 
254
   PHP has to be configured correctly on Windows systems to be able to
255
   send out mail. If this is not done, you might get errors and mail
256
   will not arrive. What you need to do is edit the file "php.ini" (this
257
   file holds the configuration for PHP). Find the sections that is called
258
   "[mail function]". In this section, set the parameter "SMTP" to the
259
   hostname or IP-address of the your SMTP server. If you do not know your
260
   SMTP server, please ask your internet access provider. After this,
261
   PHP will know what mailserver to use for sending out mail messages.
262
 
263
   If you have no access to the php.ini file and the system administrator
264
   is not willing to update it for you, you will have to install the
265
   SMTP module for Phorum. You can download this module from the module page:
266
   http://phorum.org/cgi-bin/trac.cgi/wiki/ListOfModules
267
   In the settings for this module, you can specify the SMTP server to use
268
   for sending mail. When using this module, you will completely bypass PHP's
269
   builtin mail system.
270
 
271
 
272
  4.2.3 Date formatting
273
  ---------------------
274
 
275
   Windows does not support the date formatting function strftime() fully.
276
   If your dates are not showing correctly, you have to edit your language
277
   file ({phorum dir}/include/lang/<yourlanguage>.php) and change the
278
   definitions for $PHORUM['long_date'] and $PHORUM['short_date'] in there
279
   to something that will work for your system. We suggest using the
280
   following definitions:
281
 
282
      $PHORUM['long_date']="%B %d, %Y %I:%M%p";
283
      $PHORUM['short_date']="%m/%d/%Y %I:%M%p";
284
 
285
   Go to http://www.php.net/strftime for information on all available
286
   formatting options as well as the formats that Windows does not support.
287
 
288
 
289
5. Support
290
-------------------------------------------------------------------------------
291
 
292
   If you have questions about installing Phorum, please visit the website
293
   http://phorum.org/ and ask the development team for help in the
294
   Support forum. Also read the file docs/faq.txt for answers to the most
295
   common questions.
296
 
297
 
298