Author |
|
elavarasan
Joined: 26 Sep 2011 Posts: 53
|
Posted: Thu 06 Oct '11 6:09 Post subject: Best PHP Accelator for Apache as a handler on windows server |
|
|
Hi,
Any one can advise, which is best the php accelator for apache2 as a handler. i need to deploy it into apache2.
If it is, can you share with me that how to install it on window server 2008 r2 with 64bit.
I'm looking for a php performance with apahe2 handler
Thanks, |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 25 Oct '11 11:26 Post subject: |
|
|
Which accelators did you try? |
|
Back to top |
|
elavarasan
Joined: 26 Sep 2011 Posts: 53
|
Posted: Tue 25 Oct '11 11:28 Post subject: |
|
|
Currently i haven't implements any accelators. can you suggest which is stable on windows server 2008 r2 with PHP-NTS.
If possible can you post the configuration method as well.
Thanks, |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 25 Oct '11 11:36 Post subject: |
|
|
PHP-NTS? Have you decided to run PHP over fcgid? And if yes why? Running unstable PHP extensions? Usualy the php module is faster than the fcgid solution.
There are a lot of topic in the apachelounge forum. Use the forum search
APC
eAccelerator
Wincache |
|
Back to top |
|
elavarasan
Joined: 26 Sep 2011 Posts: 53
|
Posted: Tue 25 Oct '11 11:44 Post subject: |
|
|
thanks and initially i have setup apache with PHP-NT. after that i'm facing a lot of issues in application level.
Then i switch over to Mod_Fcgid. this quite ok compared to earlier one.
Please suggest can i go with any one which you mentioned on windows server 2008 R2
APC
eAccelerator
Wincache
Thanks, |
|
Back to top |
|
Smitty
Joined: 03 Jan 2008 Posts: 197
|
Posted: Tue 25 Oct '11 14:47 Post subject: |
|
|
We've found that PHP using FastCGI is faster than using the PHP module.
It is also much more stable. We use Moodle and every 10-15 minutes php5ts.dll would crash using the PHP module. We could never solve the crash (and we were only using the built-in extensions).
We've been using Wincache with FastCGI and PHP NTS. It works great. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 25 Oct '11 15:05 Post subject: |
|
|
Smitty wrote: | We've found that PHP using FastCGI is faster than using the PHP module. |
May you post your fcgid config and say how many req/s you have? CPU and an RAM? I'm very curious |
|
Back to top |
|
Millennium
Joined: 17 Apr 2006 Posts: 179 Location: Leiderdorp, NL, EU
|
Posted: Wed 26 Oct '11 19:43 Post subject: |
|
|
Zend Optimize Plus + Zend Datacache (+ APC api)
Provided by ZendServer CE (freeware) Works great and fast |
|
Back to top |
|
elavarasan
Joined: 26 Sep 2011 Posts: 53
|
Posted: Thu 27 Oct '11 5:30 Post subject: |
|
|
Smitty, exactly me too facing php5ts.dll, crashed frequently.
My Hardware Specs :
OS : windows server 2008 R2
RAM : 24Gb
Core/Processors : 4Core/Processors
My Mod_Fcgid :
LoadModule fcgid_module modules/mod_fcgid.so
FcgidInitialEnv PHPRC "c:/php"
AddHandler fcgid-script .php
FcgidWrapper "c:/php/php-cgi.exe" .php
MaxRequestLen 25728640
Thanks, |
|
Back to top |
|
elavarasan
Joined: 26 Sep 2011 Posts: 53
|
Posted: Thu 27 Oct '11 6:01 Post subject: |
|
|
Smitty, Can you post your wincache setup,
When i check in PHP forum they said that Basic requirement is IIS with FastCGI but mine is Apache with Mod_Fcgid.
http://www.php.net/manual/en/wincache.requirements.php
Is it possible can i use this WinCache in my Apache 2.2.x with PHP-NTS.
Thanks, |
|
Back to top |
|
elavarasan
Joined: 26 Sep 2011 Posts: 53
|
Posted: Thu 27 Oct '11 6:12 Post subject: |
|
|
Millennium,
Can you post your methods of
Zend Optimize Plus + Zend Datacache (+ APC api)
Provided by ZendServer CE (freeware) Works great and fast
Because i have already Apache 2.2.x with PHP-NTS [ Mod_Fcgid ].
Will ZendServer CE overwrite my existing Apache server or is there any way to install without affecting existing setup.
Thanks, |
|
Back to top |
|
Millennium
Joined: 17 Apr 2006 Posts: 179 Location: Leiderdorp, NL, EU
|
Posted: Thu 27 Oct '11 9:32 Post subject: |
|
|
elavarasan wrote: | Millennium,
Can you post your methods of
Zend Optimize Plus + Zend Datacache (+ APC api)
Provided by ZendServer CE (freeware) Works great and fast
Because i have already Apache 2.2.x with PHP-NTS [ Mod_Fcgid ].
Will ZendServer CE overwrite my existing Apache server or is there any way to install without affecting existing setup.
Thanks, |
Not sure, I installed it on my laptop and copied what I wanted to use my server.
ZendServer CE is an apache 2.2.x installation with an php 5.3.8 NTS build by Zend and some kind of FCGI mod written by Zend.
So you can eaither use zend all the way, or get from it what you like (allthough I don't think that's what Zend likes you to do) |
|
Back to top |
|
Smitty
Joined: 03 Jan 2008 Posts: 197
|
Posted: Thu 27 Oct '11 14:17 Post subject: |
|
|
Hi,
Here are my mod_fcgid settings (we are using the Apache Lounge version)
FcgidInitialEnv PHPRC "c:\php"
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000000
FcgidMaxProcesses 400
FcgidMaxRequestLen 536870912
MaxRequestsPerProcess 50000000
FcgidMaxRequestsPerProcess 5000000000
FcgidMinProcessesPerClass 0
FcgidIOTimeout 600
AddHandler fcgid-script .php
FcgidWrapper "c:/php/php-cgi.exe" .php
CPU is a Xeon E3-1280 with 16GB of ECC RAM.
Apache's mod_status reports about 5 requests per second. We usually get around 5-7 million hits a month.
This configuration has proven MUCH more stable than the mod_php version. We tried all summer to run mod_php (with much less traffic) and it would randomly crash all of the time. |
|
Back to top |
|
vegitaboss
Joined: 06 Nov 2011 Posts: 2
|
Posted: Sun 06 Nov '11 5:55 Post subject: |
|
|
For me Zend Optimize Plus works very good. I have a very big website, with 20Gigs Db, i was able to run smoothly with no problem |
|
Back to top |
|