 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Stuart Herbert's Blog: Making IIS Practical In Production For PHP
by Chris Cornutt December 18, 2008 @ 10:24:24
Stuart Herbert, prompted by this post from Derick Rethans uses this new post to his blog to point out something that didn't seem to be mentioned and has always been a pet peeve of his when running PHP on IIS - controlling the FastCGI processes so they don't take over the machine.
Running PHP via CGI and FastCGI means that IIS has to do the Windows equivalent of fork()ing off PHP processes to do the actual PHP bit. If your box has too many PHP processes running, the box will start to swap. Once a webserver starts swapping, you've no chance in hell of keeping up with all the incoming requests, and your websites on that particular webserver become unavailable in a matter of moments.
The problem seems to have been corrected in the most recent IIS release, though and correct directions can be found here. Older versions of the web server are out of luck, unfortunately.
voice your opinion now!
iis microsoft webserver practical fastcgi cgi iis7 documentation process
Dhiraj Patra's Blog: Running PHP Scripts with Cron
by Chris Cornutt August 05, 2008 @ 08:45:03
Dhiraj Patra has posted a tutorial to his "LAM-PHP" blog today looking at a different-than-usual way for running PHP scripts - in the cron.
Lots of programmers like PHP for its ability to code and develop web applications fast. Code-debugging is a lot easier than with PERL or C. However, there is one thing a lot of developers are puzzled about, "How to run PHP Scripts with crontab?"
He explains how cron can be used effectively to replace including a backend script into another file (bad practice) and how to get started with PHP and cron. He includes how to find if you're using a CGI or Apache version of PHP and how to locate the binary. He takes this knowledge and shows how to apply it and put a sample script into the cron file. You can check out sites like this or this for more information on cron itself.
voice your opinion now!
script cron crontab cgi apache module binary tutorial
Ian Bicking's Blog: What PHP Deployment Gets Right
by Chris Cornutt January 12, 2008 @ 19:13:09
On his blog, Ian Bicking has posted some of his thoughts on a positive look at PHP - what he thinks PHP has done right.
With the recent talk on the blogosphere about deployment (and for Django, and lots of other posts too), people are thinking about PHP a bit more analytically. I think people mostly get it wrong.
He points out that PHP, in essence, is a CGI-style execution and, in being so, makes it more flexible. Both sides, web and command line, can work with the language equally well. He also mentions the developer/administrator split he sees in PHP's structure and how the language facilitates it.
voice your opinion now!
deployment right cgi developer administrator opinion deployment right cgi developer administrator opinion
Zend Developer Zone: FastCGI and PHP A User's Story
by Chris Cornutt November 14, 2007 @ 17:47:00
On the Zend Developer Zone today there's a new article by Elizabeth Smith about one of the latest offerings from Microsoft to the online community - FastCGI for IIS6.
What is FastCGI? I could go on for pages about the technical background, and Microsoft already has some great documentation on the subject, however I'll put it in layman's terms for those who aren't Computer Science majors. [...] CGI is a method that a web server can use for tools like PHP, Perl, or any other language that support it. CGI spawns a new process for each request, which can be really slow. FastCGI speeds this up with a very simple solution '" instead of creating a brand new process for each request, it creates a "pool" of processes and reuses them.
She talks about her usage of PHP on Windows platforms in her work, about a move her company made from Apache to IIS and how much the FastCGI functionality helped. She also briefly explains how to get IIS and FastCGI to work together to make the PHP functionality happen.
voice your opinion now!
fastcgi iis windows microsoft cgi install fastcgi iis windows microsoft cgi install
Sun Developer Network: Using PHP on Sun Java System Web Server 7.0
by Chris Cornutt January 17, 2007 @ 10:16:00
From this post on the Zend Developer Zone, we learn about an article over on the Sun Developer Network by Joe McCabe about installing PHP on a Sun Java System Web Server version 7.0.
un Java System Web Server is a mature, highly scalable, and secure web server that provides process redundancy, request scalability, and a wide range of application programming interfaces (APIs) to create and serve dynamic content. This document describes how to install and use PHP with Sun Java System Web Server (hereafter Web Server).
The tutorial is divided up into seven sections (including some reference material):
- Understanding PHP and Web Server
- Running the PHP Engine
- Installing the PHP Engine as a CGI Program
- Installing the PHP Engine as a FastCGI Server
- Installing the PHP Engine as an NSAPI Plugin
- Conclusion
- References
For each, there's plenty of code/configuration options to help clarify what needs to be set up no matter if you need the CGI version, FastCGI, or the NSAPI plugin up and running.
voice your opinion now!
sun java system webserver install cgi fastcgi nsapi plugin sun java system webserver install cgi fastcgi nsapi plugin
|
Community Events
Don't see your event here? Let us know!
|