.htaccess tutorial

htaccess Elite


More on php5.fcgi setup

Using PHP in and with htaccess

More on php5.fcgi setup

Postby produke » 01 Nov 2006 02:43

  • Idle processes will be killed by FastCGI after the idle-timeout is reached. You'll see a warning in the Apache error log when this happens. This is normal as long as the exit status is 0.
  • php5.fcgi must be executable by the webserver, and the directory its in must be +ExecCGI. (The PHP files themselves don't need to be executable.)
  • If php5.fcgi is not executable, or if ExecCGI is not enabled, you'll get a 403:Forbidden error.
  • You need a copy of php5.fcgi in the document root of every VirtualHost.
  • You can add arguments to the 'exec' to tweak how php runs. You can, for example, have a separate php.ini file for every directory on your server.
  • Not absolutely necessary to do it this way. You can copy the php binary into a cgi-bin directory if you're more comfortable with that.


FastCGI.com
User avatar
produke
 
Posts: 242
Joined: 25 Sep 2006 04:48

Return to PHP and htaccess