cgi-fcgi
"James M. Luedke" <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello:
I am attempting to write a small webserver, and want to try to
incorporate fcgi into it.
While reading over the the developers documentation I found the the section
"Using cgi-fcgi with any webserver"
http://www.fastcgi.com/devkit/doc/fcgi-devel-kit.htm#S4.2
So my question is this. Can I somehow configure cgi-fcgi to run php scripts?
I know that php has fastcgi support. How would I go about this? The example
online confused me.
If my understanding is correct I would need to bulid php with
--enable-fastcgi.
Then I need to run php as a deamon to retain cache between pages hits?
Then I would need to configure my webserver to run cgi-fcgi for all
*.php scripts
on my server. Is that right?
So here is what I have done to test if my understanding is ok
I wrote a simple php page /tmp/test.php
<?php
echo "Hello World";
?>
chmod 777 /tmp/test.php
I built php with --enable-fastcgi than I ran it from command line
./php -b 127.0.0.1:9966
Then I attempted to use cgi-fcgi to run test.php
<degobah 10:54:34># /usr/local/bin/cgi-fcgi -connect 127.0.0.1:9966
/root/test.
php
Status: 404
Content-type: text/html
X-Powered-By: PHP/4.3.9
No input file specified.
<degobah 10:54:37>#
So, any idea on where my disconnect is? Am I starting php correctly, am
I envoking cgi-fcgi correctly?
Thanks,
-James
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/