Forums / Install & configuration / Best options to configure PHP and Apache?

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

eZ debug

Timing: Jan 18 2025 22:12:42
Script start
Timing: Jan 18 2025 22:12:42
Module start 'content'
Timing: Jan 18 2025 22:12:43
Module end 'content'
Timing: Jan 18 2025 22:12:43
Script end

Main resources:

Total runtime0.8246 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.2969180.8047
Module start 'content' 0.00650.7005 770.1016517.9375
Module end 'content' 0.70700.1175 1,288.0391337.4609
Script end 0.8246  1,625.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4609210.0002
Check MTime0.00150.1793210.0001
Mysql Total
Database connection0.00080.096010.0008
Mysqli_queries0.757791.88661970.0038
Looping result0.00190.22601950.0000
Template Total0.796396.620.3982
Template load0.00210.258220.0011
Template processing0.794296.309820.3971
Template load and register function0.00020.030210.0002
states
state_id_array0.00090.105610.0009
state_identifier_array0.00160.198120.0008
Override
Cache load0.00180.2195290.0001
Sytem overhead
Fetch class attribute can translate value0.00140.175430.0005
Fetch class attribute name0.00170.210540.0004
XML
Image XML parsing0.00050.062430.0002
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00390.4730210.0002
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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