nuno
12-22-02, 00:59
| Hey :) About our thread at vB.com Paul, i'm wondering about all that aliases and handlers, are they relative to docroot or zeushome? Damn, i'm going nuts :D |
View Full Version : Zeus+FastCGI+PHP
| Hey :) About our thread at vB.com Paul, i'm wondering about all that aliases and handlers, are they relative to docroot or zeushome? Damn, i'm going nuts :D |
| Yup, i really love the .conf files, a lot easier to work with. I asked you about the paths coz i've managed to get things going with Apache+FastCGI, and this is how i've done it. Grabbed: fcgi-2.2.12.tar.gz -> DevKit mod_fcgi -> Apache Module -> this is later dumped into <apachedir>/usr/modules/fastcgi untar it done a # ./configure # make # make install all done with fastcgi now compiling php # ./configure --prefix=/usr/local ......... --with-fastcgi --with-apache=../apache_1.3.27..... # make # make install all done with php going to apache # ./configure --prefix=/usr/local ....... --enable-module=src/modules/fastcgi/ libfastcgi.a # make # make install Notice that no libphp4.a module is activated. Done with apache. editing httpd.conf FastCgiServer /usr/local/bin/php AddHandler php-fastcgi .php <Location /bin/php> SetHandler fastcgi-script </Location> Action php-fastcgi /bin/php DirectoryIndex index.html index.shtml index.cgi index.php AddType application/x-httpd-php .php Now this puzzled me :confused: Both lines containing /bin/php, for fastcgi to work i had to create a bin directory under htdocs Apache directory and dump php executable into it. Like this, fastcgi will work. Any feedback Paul? :) BTW, you're back to Zeus, i saw that. ;) :D |