≡ Menu

Apache FastCGI / mod_fastcgi PHP Script

Use this script to run Apache 2.x with mod_fastcgi. Install Apache 22 from FreeBSD port or using source code. The script is tested under FreeBSD and Debian / RHEL / CentOS Linux.

How do I use script?

Download the script

Put in cgi-bin directory as php.cgi

Set permission

Configure httpd.conf as follows for mod_fastcgi:

See Red hat / CentOS Linux mod_fastcgi and FreeBSD mod_fastcgi tutorial for detailed information.;

Sample mod_fastcgi PHP script

{ 2 comments… add one }
  • Quoc September 25, 2011, 2:13 am

    try to turn off mod_cgi if it still work. This is the setting for mod_cgi, It’s does not use mod_fastcgi at all

  • Riadh September 27, 2010, 4:14 am

    I’ve read a dozen articles explaining how to set-up php5 with fast cgi without being able to make it work.
    Now that I’ve read yours, everything works perfectly.

Security: Are you a robot or human?

Leave a Comment