Best practice - How to configure Apache and PHP for eZ?

Author Message

Siniša Šehović

Thursday 07 September 2006 6:08:15 am

Hi

I have been struggling for quite some time with configuration of SLES9 64bit linux to get best performance.

My server is 64-bit Intel Xeon with 2 CPUs and 4GB of RAM and SCSI disks.

I would like to hear from you how you did it and why!?

This is what I did:

1. Compiled Apache latest 1.3.x version in DSO mode with:

./configure --prefix=/usr/local/apache --enable-module=rewrite --enable-shared=rewrite --enable-module=so --enable-module=cgi --enable-shared=cgi

2. Compiled latest PHP 4.4.4 with:

./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache-32/bin/apxs --with-config-file-path=/usr/local/etc --enable-mbstring --with-session --enable-dom --enable-xml --with-zlib-dir --with-zlib=shared --with-mysql=shared,/usr --with-ldap=shared,/usr --with-sysvsem --with-sysvshm --with-sockets --enable-ftp

3. Compiled mod_dav, iconv, imagemagick, php-java-bridge

I am shure that these are not the perfect switches so I need some help here.

Sinisa

---
If at first you don't succeed, look in the trash for the instructions.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:39:22
Script start
Timing: Jan 18 2025 22:39:22
Module start 'layout'
Timing: Jan 18 2025 22:39:22
Module start 'content'
Timing: Jan 18 2025 22:39:22
Module end 'content'
Timing: Jan 18 2025 22:39:22
Script end

Main resources:

Total runtime0.0140 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 589.2813152.6563
Module start 'layout' 0.00470.0024 741.937539.5078
Module start 'content' 0.00720.0045 781.445389.4297
Module end 'content' 0.01170.0022 870.875030.3047
Script end 0.0139  901.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002719.0297140.0002
Check MTime0.00128.8074140.0001
Mysql Total
Database connection0.00064.507910.0006
Mysqli_queries0.002115.395030.0007
Looping result0.00000.085410.0000
Template Total0.001812.710.0018
Template load0.00107.146410.0010
Template processing0.00085.504210.0008
Override
Cache load0.00075.095810.0007
General
dbfile0.00031.920780.0000
String conversion0.00000.064940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs