logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: PHP5Apache2_4 Version
Author
gdprogrammer59



Joined: 06 Dec 2011
Posts: 16
Location: Ellenton, FL

PostPosted: Wed 22 Feb '12 21:12    Post subject: PHP5Apache2_4 Version Reply with quote

I have downloaded the most current versions of Apache 2.4.1 (OpenSSL 1.0 and 0.9.8t and APR 1.4.1 and APR 1.4.5).

The first question is I that Apache shows Apache 2.4.1 (Win32) OpenSSL/0.9.8t PHP/5.4.0RC7. I am using PHP 5.4RC8 - does the php5apache2_4.dll need to be updated and/or back up to PHP 5.4.0RC7?

The second question is that I prefer to use the php5apache2_x.dll instead of Fast CGI (perhaps silly reasons dating back to IIS 5/6/7 and PHP). The question is which (the DLL or Fast CGI) the better method to interface between Apache and PHP (with better being more reliable and performance)?

Thank you!
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Wed 22 Feb '12 22:39    Post subject: Reply with quote

The handler is build against RC7, no problem with RC8, because no API changes. When PHP 5.4 is final then I build it against it.

The second question can better be answered by James Blond Smile


Steffen
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 23 Feb '12 0:26    Post subject: Reply with quote

Steffen, I wonder why you didn't answer that question.

PHP as module is might be a bit faster than the fcgid one. So in theory. I haven't noticed a difference yet. The advantage of using Fast cgi is the separation of apache and PHP. Than the memory usage of Apache itself is a lower. The memory usage overall (httpd.exe and the instaces of php-cgi.exe) is the same than running apache with PHP as module. Might be a little overhead. The advantage is that when you use unstable 3rd party extension / modules in PHP apache won't crash only a single instance of PHP cgi process.
Under huge amount of requests you need 2 or more cores when using mod_fcgid to have the full advantage.

You also can run mod_fcgid and php as module parallel for testing. Steffen knows how to do that Wink
Back to top
gdprogrammer59



Joined: 06 Dec 2011
Posts: 16
Location: Ellenton, FL

PostPosted: Sun 26 Feb '12 16:31    Post subject: PHP5Apache2_4 Version Reply with quote

Thank you for the responses!

The question about FastCGI versus module stems from a comment about a huge number of requests and 2 or more cores.

When you say "huge number of requests" what kind of numbers are you referring to?

Is it only the FastCGI that would utilize multiple cores (i.e. would the module utilize multiple cores) and is there any requirements from a configuration file to allow Apache to use the additional cores?

Thank you!
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sun 26 Feb '12 17:09    Post subject: Reply with quote

With a "huge number of requests" I mean more than 200 requests per second. But I had site with more requests on a page with single core CPU, but the execution didn't take long, under 10 ms per request and that also worked fine.
I don't know how apache uses the cores. There are two processes and more threads. I don't know how apache spreads these threads. That might answer some other. Wink
Back to top


Reply to topic   Topic: PHP5Apache2_4 Version View previous topic :: View next topic
Post new topic   Forum Index -> Other Software