Top10WebHosting

Open NavigationOpen Search
Everything related to web hosting.
  • Learning center
    • Move host guide
    • Compare Shared Hosting & VPS
    • SEO related
  • Hosting by features
    • Top web hosting
    • cPanel web hosting
    • PayPal web hostings
    • PHP Web Hosting
    • VPS Web Hosting
  • Coupons
    • Bluehost coupon 2017
  • Hosts overview
    • GreenGeeks Review
    • JustHost Overview.
    • Bluehost Overview
    • IXWebhosting Overview
    • Hostmonster Overview
    • Hostgator Overview.
    • SiteGround Overview
  • About
    • Contact Us
    • Disclosure
You are here: Home / apache / Much faster PHP with FastCGI.

Much faster PHP with FastCGI.

December 25, 2007 by Wyng

FastCGI for PHP makes all your PHP applications run through mod_fastcgi instead of mod_phpsusexec. FastCGI applications are fast because they’re persistent. There is no per-request startup and initialization overhead. This makes possible the development of applications which would otherwise be impractical within the CGI paradigm (e.g. a huge PHP script, or an application which requires a connection to one or more databases).

Advantages :

  • PHP scripts will run faster. The PHP interpreter is loaded into memory rather than calling from storage for every hit, greatly improving performance of your scripted site.
  • You will use less Server Resources. Since the server does not have load the PHP interpreter for each hit, you will be able to accommodate a higher traffic site without exceeding your CPU quota.
  • NO modifications to your existing code are required. Everything you currently run will work with FastCGI for PHP.

Potential Problem / Limitation :

  • You will only have one php.ini file available for all subdirectories (e.g. /home/USERNAME/public_html/php.ini). This is necessary to help optimize the website code as much as possible. If you need multiple php.ini files to accommodate different scripting needs, you can disable FastCGI for PHP on any of your subdirectories while leaving the rest of the account enabled for performance. You may have to contact support if you need to do this.
  • There can be a few minute delay in any updates you make to your PHP environment (ie, php.ini changes). Since your php.ini is loaded into memory for greater speed, every hit does not re-read it from storage.

Not all PHP host offer this service, but BlueHost and Hostmonster does offer PHP 5 FastCGI feature.

Related :

Understanding FastCGI Application Performance.

Filed Under: apache, php, tips, tutorial

Back to top ▴

Trackbacks

  1. PHP Coding School » Blog Archive » php code [2007-12-25 20:31:47] says:
    December 25, 2007 at 9:45 pm

    […] Much faster PHP with FastCGI. By BestHosting You will only have one php.ini file available for all subdirectories (eg /home/USERNAME/public_html/php.ini). This is necessary to help optimize the website code as much as possible. If you need multiple php.ini files to accommodate … Top10WebHosting.com weblog – http://www.top10webhosting.com/content […]

List of Most popular hosting plan


Our list of top web hosting plan with discounted entry price, good features with excellent support.

Hosts using the Most user friendly control panel


cPanel control panel has the most user friendly interface to control the Linux enviroment.

Hosts accepting PayPal


Stay safe, use Paypal to hide your credit cards from hosts.

Follow us on Social media

About Top10WebHosting.com

I manage & consult web developments for companies. And I have chance to use different web hosts by different client.

I am here to share some good & highlights of different hosts by features & rating.

Search this website

Copyright © Top10WebHosting.com 2002-2018. All Rights Reserved.

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok