egroupware_official/phpgwapi/doc/php-configuration.txt

61 lines
2.0 KiB
Plaintext
Raw Normal View History

2002-11-18 00:35:02 +01:00
-------------------------------
- Suggested PHP Configuration -
-------------------------------
2004-08-09 15:27:04 +02:00
This is a suggested php.ini config for running eGroupWare on php4. It
2004-11-22 04:10:45 +01:00
is roughly in the order of the paramters in your php.ini file. These recommendations
2002-11-18 00:35:02 +01:00
are based on feedback from users and developers.
RESOURCES
max_execution_time = 90
This allows for encoding/decoding large file attachments on slower machines and
other complex functions.
memory_limit = 20M
At least this value should help with more complex operations.
ERRORS
2004-11-22 04:10:45 +01:00
error_reporting = E_ALL & ~E_NOTICE
2002-11-18 00:35:02 +01:00
Having this set to E_ALL, will cause all types of problems if left to
2004-11-22 04:10:45 +01:00
display on the screen. E_NOTICE are non-fatal errors such as undefined
2002-11-18 00:35:02 +01:00
variable etc. Having this set to E_ALL only will dramatically increase
2004-11-22 04:10:45 +01:00
the size of your log files if you log errors.
2002-11-18 00:35:02 +01:00
display_errors = Off
2004-11-22 04:10:45 +01:00
This can cause header output problems if left on. They are better stored in
your log file and that way you have a record of any problems.
2002-11-18 00:35:02 +01:00
log_errors = On
See above.
DATABASES
[dbms].allow_persistent = On
2004-11-22 04:10:45 +01:00
This must be set to on if you want to use persistent database
connections. Change [dbms] to whatever db you want to use, i.e. mysql or
pgsql.
2002-11-18 00:35:02 +01:00
FILE UPLOADING
file_uploads = On
If you want to use email,phpwebhosting, infolog or any apps that upload files
this must be set to on.
upload_max_filesize = 5M
At least this. This will allow for larger email attachments and
phpwebhosting files. Use filesize * 4 = memory_limit to allow for
base64 encodes.
PHP4 SESSIONS
session.save_path = /tmp
Your httpd must be able to read and write to this directory, if you
intend to use php4 sessions.
session.gc_maxlifetime = 1440
Set this to what you want to be your session time out limit. It is in
2004-11-22 04:10:45 +01:00
seconds, so set it to 3660 if you want it to one hour ... the default is
2002-11-18 00:35:02 +01:00
24mins, which is generally too short.
REGISTER GLOBALS
register_globals = On
2004-08-09 15:27:04 +02:00
Until release eGroupWare will not work, if the value is set to Off.
2002-11-18 00:35:02 +01:00
All further releases will support the Off setting.