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