1 | ------------------------------- |
---|
2 | - Suggested PHP Configuration - |
---|
3 | ------------------------------- |
---|
4 | |
---|
5 | This is a suggested php.ini config for running phpGroupWare 0.9.14 on php4. It |
---|
6 | is roughly in the order of the paramters in you php.ini file. These recommendations |
---|
7 | are based on feedback from users and developers. |
---|
8 | |
---|
9 | RESOURCES |
---|
10 | max_execution_time = 90 |
---|
11 | This allows for encoding/decoding large file attachments on slower machines and |
---|
12 | other complex functions. |
---|
13 | |
---|
14 | memory_limit = 20M |
---|
15 | At least this value should help with more complex operations. |
---|
16 | |
---|
17 | ERRORS |
---|
18 | error_reporting = E_ALL ~E_NOTICE |
---|
19 | Having this set to E_ALL, will cause all types of problems if left to |
---|
20 | display on the screen. E_NOTICE are no-fatal errors such as undefined |
---|
21 | variable etc. Having this set to E_ALL only will dramatically increase |
---|
22 | the size of your log files if you log erros. |
---|
23 | |
---|
24 | display_errors = Off |
---|
25 | This can cause header output problems if left on. They are better stored in you |
---|
26 | log file and that way you have a record of any problems. |
---|
27 | |
---|
28 | log_errors = On |
---|
29 | See above. |
---|
30 | |
---|
31 | DATABASES |
---|
32 | [dbms].allow_persistent = On |
---|
33 | This must be set to on if you want to use persistent databse |
---|
34 | connections. Change [dbms] to what ever db you want to use ie mysql or |
---|
35 | pgsql |
---|
36 | |
---|
37 | FILE UPLOADING |
---|
38 | file_uploads = On |
---|
39 | If you want to use email,phpwebhosting, infolog or any apps that upload files |
---|
40 | this must be set to on. |
---|
41 | |
---|
42 | upload_max_filesize = 5M |
---|
43 | At least this. This will allow for larger email attachments and |
---|
44 | phpwebhosting files. Use filesize * 4 = memory_limit to allow for |
---|
45 | base64 encodes. |
---|
46 | |
---|
47 | PHP4 SESSIONS |
---|
48 | session.save_path = /tmp |
---|
49 | Your httpd must be able to read and write to this directory, if you |
---|
50 | intend to use php4 sessions. |
---|
51 | |
---|
52 | session.gc_maxlifetime = 1440 |
---|
53 | Set this to what you want to be your session time out limit. It is in |
---|
54 | second so set it to 3660 if you want it to one hour ... the default is |
---|
55 | 24mins, which is generally too short. |
---|
56 | |
---|
57 | REGISTER GLOBALS |
---|
58 | register_globals = On |
---|
59 | Until release 0.9.14 phpGroupWare will not work, if the value is set to Off. |
---|
60 | All further releases will support the Off setting. |
---|