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 -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: Non-Thread Safe PHP with FastCGI
Author
Brian



Joined: 21 Oct 2005
Posts: 209
Location: Puyallup, WA USA

PostPosted: Fri 11 Dec '09 20:14    Post subject: Non-Thread Safe PHP with FastCGI Reply with quote

If I run FCGI / Fast CGI and PHP, is it better to use the non-thread safe version of PHP?

Would the scripts execute any faster?
Back to top
James Blond
Moderator


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

PostPosted: Sat 12 Dec '09 0:22    Post subject: Reply with quote

Over fcgid the NTS is a bit faster than the TS version. I made some tests and at least for me it was faster on apache. Also you should use the VS9 build.
Back to top
Brian



Joined: 21 Oct 2005
Posts: 209
Location: Puyallup, WA USA

PostPosted: Sat 12 Dec '09 8:01    Post subject: Reply with quote

Excellent. Yes I am looking at deploying another web server. At issue is the lack of php.ini control per virtual host. Now I read a very interesting tutorial on configuring IIs 7 for FCGI and with the ability to have unique INI files per vhost. Unless I read this wrong of course.

Is that possible with Apache?
Back to top
James Blond
Moderator


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

PostPosted: Sat 12 Dec '09 11:27    Post subject: Reply with quote

Yes in PHP 5.3 you also can define that in the php.ini itself per vhost or IP or by path.


In earlier version you have the chance to configure that in each vhost (httpd.conf) with php_admin_value
Back to top
James Blond
Moderator


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

PostPosted: Sun 13 Dec '09 1:05    Post subject: Reply with quote

For the benchmark see http://www.apachelounge.com/viewtopic.php?t=2587 but that was with PHP 5.2.6 so that was in july 2008
Back to top


Reply to topic   Topic: Non-Thread Safe PHP with FastCGI View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules