Best options to configure PHP and Apache?

Author Message

Maarten Holland

Tuesday 31 August 2004 1:01:26 am

Hi all,

I'm installing a new webserver for eZ Publish. I've read several things about configuring and compiling PHP for eZ Publish.

I'm using PHP 4.3.8 and Apache 1.3.31. (Or is it better to use PHP 5 and/or Apache 2?).

I'd like to know what configure-commands I should use when compiling PHP. I found <link href='http://www.ez.no/ez_publish/documentation/obsolete/installation/manual/webserver_build_on_linux'>this</link> page about configuring PHP, but that page moved to an absolete directory. Why is that? Can I just follow that directions?

On that page is writting it's best to use a DSO, while I've read on the forum that a static build could increase speed to up to 30%.

Can anyone give me some usable hints on this matter?

Thank you in advance,

Maarten

Ole Morten Halvorsen

Tuesday 31 August 2004 1:18:27 am

Maarten,

First, eZ publish does not support PHP 5 and we do not recommend using Apache 2.
When you compile PHP, do it as a static module. This has some performance gain over compiling PHP as a shared module. eZ publish doesnt require any special features or modules, but remember to compile with --with-mbstring as this will make character conversion alot faster.

How to compile php as a static module: http://cvs.php.net/annotate.php/php-src/INSTALL?rev=1.25.4.1#97

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Maarten Holland

Tuesday 31 August 2004 10:11:43 am

Ole, thank you very much for your reply.

I've succesfully managed to install Apache 1.3 with PHP (with mbstring) as a static module. After that I've installed IONCube's phpaccelerator and checked that it worked.

I've set the max_exection_time to 0 (infinite) but unfortunately eZ Publish is very, very, terribly slow...

Did I forget anything? Do you have some points for me to consider?

Thanks again,

Maarten

Ole Morten Halvorsen

Tuesday 31 August 2004 11:48:37 am

Maarten,

First, what is the hardware specs on your machine and which version of eZ publish do you use?
Try turning on debug by setting DebugOutput=enabled in site.ini. Have a look at the bottom of the page to find out which part that is so slow.

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

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 19 2025 01:02:07
Script start
Timing: Jan 19 2025 01:02:07
Module start 'layout'
Timing: Jan 19 2025 01:02:07
Module start 'content'
Timing: Jan 19 2025 01:02:07
Module end 'content'
Timing: Jan 19 2025 01:02:07
Script end

Main resources:

Total runtime0.6346 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 590.4453152.6406
Module start 'layout' 0.00570.0039 743.085939.4766
Module start 'content' 0.00960.6238 782.5625512.8438
Module end 'content' 0.63340.0012 1,295.406312.1250
Script end 0.6346  1,307.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5042160.0002
Check MTime0.00140.2155160.0001
Mysql Total
Database connection0.00090.146410.0009
Mysqli_queries0.584192.0327600.0097
Looping result0.00060.0895580.0000
Template Total0.602494.920.3012
Template load0.00200.312620.0010
Template processing0.600494.607020.3002
Template load and register function0.00020.036010.0002
states
state_id_array0.00080.130010.0008
state_identifier_array0.00090.137520.0004
Override
Cache load0.00170.2659290.0001
Sytem overhead
Fetch class attribute can translate value0.00140.213220.0007
Fetch class attribute name0.00140.224240.0004
XML
Image XML parsing0.00020.034420.0001
class_abstraction
Instantiating content class attribute0.00000.001640.0000
General
dbfile0.00070.1044100.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs