Does PHP run faster with FastCGI than Plain CGI?

Posted on 2010-01-05
Last Modified: 2013-12-25
I need to setup PHP to run on the YAWS server.

I can do this using plain CGI or I can use FastCGI.

Would FastCGI likely run faster?  What should I consider before selecting FastCGI?
Question by:hankknight
    1 Comment
    LVL 26

    Accepted Solution

    FastCGI scripts are memory resident, just interpreted once, so saves a few ms here and there, along with reducing the memory requirements. Only thing to watch is you initialise all variables yourself, as data persists between sessions.

    As to wheter to go down that route:
    If your using existing scripts probably easier to stick to plain php, saves tweaking you code, may be cheaper to buy new hardware / bandwidth.
    Have you an existing performance issue your trying to solve?
    Have you load tested e..g Jmeter'ed your existing server and the maximum throughput is less the you predicted volumes, without fastCGI?
    Have you worked out / know what traffic volumnes your expecting?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at (http://www.experts-ex…
    Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
    Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now