You are not logged in.

#1 2004-12-14 11:18:51

Winkie
Member
Registered: 2004-09-30
Posts: 59

mod_fastcgi (not 100% sure it works fully)

I built this after a bit of hacking about with sedding patch files to get it to build nicely without going after a mkdir.sh file which doesn't exist (whoever packaged apache, i'm looking at you!)

Anyway, here it is, only installs one file but hey, it's worth packaging

edit: oops, best have both md5s in there.

# Contributed by Paul "Winkie" Robins, paul at gamingmp.com
pkgname=mod_fastcgi
pkgver=2.4.2
pkgrel=1

pkgdesc="a language independent, scalable, open extension to CGI that provides high performance without the limitations of server specific APIs."
url="http://www.fastcgi.com"

makedepends=('apache' 'sed' 'patch')
depends='apache'

source=("http://www.fastcgi.com/dist/$pkgname-$pkgver.tar.gz" "Makefile.patch")
md5sums=('e994414304b535cb99e10b7d1cad1d1e' 'a3071da5be9ca87b9aa181ea67577b35')

build() {
        cd $startdir/src/$pkgname-$pkgver
        cp Makefile.AP2 Makefile
        sed "s,$startdir,$startdir," ../Makefile.patch| patch
        make top_dir=/home/httpd/ || return 1

        mkdir $startdir/pkg/usr $startdir/pkg/usr/lib $startdir/pkg/usr/lib/apache
        make top_dir=/home/httpd/ install
}

Offline

#2 2004-12-17 16:56:15

neri
Forum Fellow
From: Victoria, Canada
Registered: 2003-05-04
Posts: 553

Re: mod_fastcgi (not 100% sure it works fully)

Winkie wrote:

edit: oops, best have both md5s in there.

... and even better to provide that patch smile
I'm not so good at reverse engeneering of md5sums ...

-neri

Offline

#3 2004-12-17 22:13:54

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: mod_fastcgi (not 100% sure it works fully)

lol


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#4 2004-12-20 11:37:28

Winkie
Member
Registered: 2004-09-30
Posts: 59

Re: mod_fastcgi (not 100% sure it works fully)

neri wrote:
Winkie wrote:

edit: oops, best have both md5s in there.

... and even better to provide that patch smile
I'm not so good at reverse engeneering of md5sums ...

-neri

Pff, I am, check this out:

[paul@nec1 mod_fastcgi]$ md5reverse a3071da5be9ca87b9aa181ea67577b35
--- Makefile    2002-07-29 02:36:34.000000000 +0100
+++ Makefile    2004-12-14 11:05:19.000000000 +0000
@@ -15,8 +15,9 @@
 APACHECTL = apachectl
 
 #DEFS=-Dmy_define=my_value
-#INCLUDES=-Imy/include/dir
+INCLUDES=-I/usr/include/apache
 #LIBS=-Lmy/lib/dir -lmylib
+DESTDIR=$startdir/pkg
 
 all: local-shared-build

I might note that I only found out about DESTDIR recently because i'm an idiot, pretty much all my old packages are probably useless now smile

Offline

#5 2004-12-20 21:00:10

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: mod_fastcgi (not 100% sure it works fully)

could you provide a rundown on how to get fastcgi working?
I would really like to get ruby working under fastcgi..


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#6 2004-12-21 09:06:56

Winkie
Member
Registered: 2004-09-30
Posts: 59

Re: mod_fastcgi (not 100% sure it works fully)

cactus wrote:

could you provide a rundown on how to get fastcgi working?
I would really like to get ruby working under fastcgi..

Sure, static, dynamic or external?

Offline

#7 2004-12-21 11:10:10

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: mod_fastcgi (not 100% sure it works fully)

Winkie wrote:
cactus wrote:

could you provide a rundown on how to get fastcgi working?
I would really like to get ruby working under fastcgi..

Sure, static, dynamic or external?

*clueless look on face*
I honestly don't know a WHOLE lot about fastcgi. I was just intriuged by some of the reports on the speed of it. It does something like run an external "server" that processes the scripts right? I was also led to believe that there can be problems with sessions and stuff, as it is now an external process handling them, and all of the scripts are handled by the same instance.
Is this correct?
hmm..I might have to do some more studying on this...


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#8 2004-12-21 11:30:41

Winkie
Member
Registered: 2004-09-30
Posts: 59

Re: mod_fastcgi (not 100% sure it works fully)

cactus wrote:

I honestly don't know a WHOLE lot about fastcgi. I was just intriuged by some of the reports on the speed of it. It does something like run an external "server" that processes the scripts right? I was also led to believe that there can be problems with sessions and stuff, as it is now an external process handling them, and all of the scripts are handled by the same instance.

Yeah, pretty much, it provides persistance and speed boost because of said persistance to CGI applications.

Your basic types are:

· Static
You define the server in the httpd config and it starts up an instance accordingly, if the instance dies it will be replaced.
· Dynamic
FastCGI applications are auto detected (Based on calls from the CGI script I assume) and dealt with accordingly
· External
Similar to static, but it is expected to be handled externally, so the HTTPD doesn't screw with it.

Some good documentation is available at www.fastcgi.com, i'm only talking about mod_fastcgi here of course.

Offline

Board footer

Powered by FluxBB