# Php under fastcgi

**URL:** <https://www.ruby-forum.com/t/php-under-fastcgi/126684>\
**Category:** Ruby\
**Created:** [January 21, 2008, 11:20am UTC](https://www.ruby-forum.com/t/php-under-fastcgi/126684 "2008-01-21T11:20:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 21, 2008, 11:20am UTC](https://www.ruby-forum.com/t/php-under-fastcgi/126684/1 "2008-01-21T11:20:34Z")

</div>

Problem: I need to run regular php scripts under FastCGI, saving on  
the overhead of fopen’ing and reading in the contents before executing  
each time. Therefore, in theory I guess you’d put a FastCgiServer  
directive in your httpd.conf, and direct it to some sort of app (could  
be written in C or anything) that loads and keeps in memory all your  
php files from your site, and runs their contents when a url request  
comes in for that file. Does such an app exist?

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 22, 2008, 1:13am UTC](https://www.ruby-forum.com/t/php-under-fastcgi/126684/2 "2008-01-22T01:13:20Z")

</div>

removed\_email\_address@domain.invalid wrote:

> Problem: I need to run regular php scripts under FastCGI, saving on  
> the overhead of fopen’ing and reading in the contents before executing  
> each time. Therefore, in theory I guess you’d put a FastCgiServer  
> directive in your httpd.conf, and direct it to some sort of app (could  
> be written in C or anything) that loads and keeps in memory all your  
> php files from your site, and runs their contents when a url request  
> comes in for that file. Does such an app exist?

Take a look at [http://fastcgi.coremail.cn/configuration.htm](http://fastcgi.coremail.cn/configuration.htm)

Dan
