phpGW logo Installation & Security HOWTO
phpGroupWare

Tips to increase phpgw response time

This section is based on user tips for how to increase your server's speed for serving up phpgw pages.

This will start out kind of general since phpGroupWare can run on so many hardware platforms with so many combinations of web servers and databases but hopefully people will add more specific tips as time goes by.

To add your tip/s please email the phpGroupWare Documentation Team.

User Contributions

From: Bob Crandell

This is what I found to be the miminum list of modules that need to be loaded in http.conf for phpGroupWare to run. Here is the list in entry order:

Editors Note: mod_rewrite is needed for sitemgr, mod_dav is needed to use the webdav version of the VFS.

This didn't seem to make much difference in page load times. Maybe because there is 1Gb of RAM in the server.


From: Alex Borges

Where I've found the most impact is in using apache 1.3.26 with lingerd. It requires you to patch a vanilla apache thus recompiling php will also be a must, as will be putting some new up/down scripts for lingerd. But its well worth the trouble, ive seen amazing increases in performance with this thing.

Of all the tuning options this is the hardest, but with the least cost (does not require more memmory)

Another thing that can have a lot of impact is php cache. Most are incorregible leakers, but ive ran into one called turck that seems to be the smartest in memmory management issues. It will up your perfomance. Anyhow, you should have plenty extra ram for this to show.

Finally, db tunning will also affect the performance. Make sure also that you have enough ram and dig into the query cache and indexing features of whatever database youre using. Mysql seams the most configurable, postgres the least, but it does include a configurable query cache size variable somwhere.

The more you can get on RAM, the fastest it will all go. Phpgroupware is a hungry app, you do need some good tunning or serious iron to run it for a larger number of users (300 and up, on less ive seen it can cope with it on a 'normal' box -dual 400mhz PII-PRo, scsi 2Gb ram box).


From: Unknown

Here are some server examples:

How can you tell if more RAM would help in GNU/Linux? Run the command line program "top" and look at the memory stats in the upper section. Here's some examples of servers I run:


From: Tomasz Spyrczak

Here are some tips:

  1. Install it on a dedicated server. It is rarely a problem to do that when you use it on a LAN only.
  2. Stop unused daemons - like sound, samba, cups, telnet or any other thing that comes preinstalled in every major GNU/Linux distro lately.
  3. Reduce the number of Apache instances kept in the server memory. The default setting in most distros is 10 Apache instances - way too much if you have a dedicated phpGW server with up to 50 users. It is rare when more than 2 instances are needed. Also take care about the number of mgetty instances - who needs more than 1 virtual console, when one always uses ssh?
  4. So by meeting these guidelines I've managed to set up a Pentium 150MHz with 64MB (yeah - sixty four) with apache 1.3, php4, postgresql (mandrake 9 distro) and APC. And it was a perfecty usable phpGW install. The funny thing is that with several users the average swap file usage was about 0 (zero). You know how they say: 640 kb ought to be enough for everyone ;-) Of course it was an experiement, but one should know it is doable and fully usable :-)