PDA

View Full Version : PHP 4.3.10, Turck MMcache, FastCGI - PHP EasyWindows Installer


nadzri
03-08-2005, 10:06 AM
I'm not sure if there's much point in doing a how-to, everything's documented quite well. So i'm just going to say what I did differently from instructions in the Readmes ;)

You can download from here - http://sourceforge.net/project/showfiles.php?group_id=75482. The home page is here - http://phplens.com/phpeverywhere/node/view/12 .

Plesk already had PHP installed, I didn't know what installing would do to the system so I just installed on my home PC, zipped the installation folder, and brought it up to the vps server. Because of this I also had to merge the included fastcgi.reg file (found in the fastcgi folder) to the registry. Then I replaced the php files in C:\Program Files\SWSoft\Plesk\Php with the newer versions, after backing up of course :)

I also copied mmcache.dll into the Extensions folder and isapi_fcgi.dll into the Php folder. This is so that it's easy to edit the .php mapping in the IIS Manager. Make sure the paths in the FastCGI entry in the registry and mmcache section in the php.ini reflect these changes.

In the IIS Manager, under Web Service Extensions, instead of Allowing "All Unknown ISAPI Extensions", click "Add a new Web service extension". Put the Extension Name as "PHP FastCGI Extension" and Add the required file, which is the isapi_fcgi.dll file. Don't forget to check "Check extension status to Allowed".

Also don't forget to change the php mapping from php.exe to isapi_fcgi.dll. It does look like this has to be done for every website you want to use Fastcgi, unless someone knows how to change the default in Plesk.

I also commented out 2 entries under the [Zend] section in php.ini. Leave zend_extension_ts="C:\php4\Zend\lib\ZendExtensionManager.dll" active. Having done some tests with the MS Web Application Stress Tool, I found that not having the optimizer seems to give my php a little bit more speed. Of course, this is not conclusive! ;)

Next step would be to restart IIS. If successful, phpinfo() would show info about MMcache. There's also a test.php file that comes with the installer.

I don't know if this will work for all the php scripts out there. I'm using Mambo 4.5.2 and it does seem to work well. In the Performance tab of the Task Manager, a stress test of 6x2 threads, not having mmcache and fastcgi pushed the cpu to 95%-100% for the duration of the test, whereas having them the cpu usage was fluctuating between 50% to 90%, averaging around 65% to 75%.

I hope the above is not too brief. I thought if people tried the Readmes, then they can understand what I have done here. If I've made a mistake somewhere, show me the right way please :D

nadzri
03-08-2005, 10:40 AM
Here's a result that I got running MS Web App Stress Tool for 1 minute. It's very basic I know, I just wanted to do a simple test running Mambo and see for myself.

The stress level was 6 x 2. All tests used MMcache.

http://www.nuralia.net/images/stress.png

1ONE
03-10-2005, 12:02 PM
Hi,

Nadzri could you help me with this installing , can you please pm me ?

Ivan

asterisk
04-04-2006, 06:12 PM
I noticed this posting and although it's a little old and not quite Linux, I was wondering if you had installed FastCGI on Apache 1.3.x as well for PHP 4. Could really use the help. Am trying to get that done but am somehow receiving errors as written in this other post:

http://forums.deftechgroup.com/showthread.php?t=1400

nadzri
04-06-2006, 11:24 PM
Hi asterisk,

Sorry I can't help you here. I have no experience trying FastCGI on Linux.

I did have a brief look at their web site though, and from your config in the other post, you seem to be missing the FastCGIServer and SetHandler directives I saw in their FAQ. And have you enabled Options +ExecCGI?

Sorry can't help you more. Good luck.