Linode Library Home
Linode Library RSS Feed
Home :: Web Servers :: Apache

PHP/CGI with Apache

In most cases, we recommend using the mod_php module to run PHP scripts with the Apache HTTP server. However, there are some instances where PHP must be run as a CGI process, such as Apache configurations using the per-virtual host permissions provided by Apache's itk message passing module (mpm). Also, in our experience, mod_php is incompatible with the "mod_rails" or Phusion Passenger method of running Ruby On Rails. In these cases, if you want to run PHP and Rails applications within a single instance of Apache, you must run PHP scripts as CGI processes.

Unmaintained Guides (Older)