nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

mod_perl or fastcgi

This is a discussion on mod_perl or fastcgi within the Coding in General forums, part of the Development/Scripting category; What is the choice mod_perl or fastcgi? Thanks in advance yoander...


Go Back   nixCraft Linux Forum > Development/Scripting > Coding in General

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-13-2008, 02:27 AM
Junior Member
User
 
Join Date: May 2008
My distro: CentOS, Fedora
Posts: 2
Rep Power: 0
yoander is on a distinguished road
Default mod_perl or fastcgi

What is the choice mod_perl or fastcgi?


Thanks in advance
yoander
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-14-2008, 01:15 AM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 578
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Both are good. FastCGI may outperform in some case. There are other ares like code optimization and caching. Personally, I'd select mod_perl because it is well tested in production for a long time.
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #3 (permalink)  
Old 06-14-2008, 01:32 AM
Junior Member
User
 
Join Date: May 2008
My distro: CentOS, Fedora
Posts: 2
Rep Power: 0
yoander is on a distinguished road
Default

Thanks for your help!

yoander
Reply With Quote
  #4 (permalink)  
Old 06-14-2008, 06:41 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 967
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

FastCGI, period. Either use mod_perl or FastCGI but not CGI (plain evil memory eating stuff).

Generally, FastCGI is used with Lighttpd or other web server in front of Apache (proxy stuff). You also need to consider memory footprint. Check out following docs:

Six Apart Developer Documentation - FastCGI Benchmarks for Movable Type
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #5 (permalink)  
Old 06-25-2008, 04:58 PM
Junior Member
User
 
Join Date: Jun 2008
My distro: centos 5
Posts: 15
Rep Power: 0
rootadmin is on a distinguished road
Default

i am ruuning an script wich have .cgi files , hence i hv activated mod_cgi , can fastcgi handel .cgi files aswell ??
Reply With Quote
  #6 (permalink)  
Old 06-25-2008, 07:47 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 578
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Quote:
Originally Posted by rootadmin View Post
i am ruuning an script wich have .cgi files , hence i hv activated mod_cgi , can fastcgi handel .cgi files aswell ??
Sure you can run Python, perl, C, c++ as fastcgi under Apache or Lighttpd.
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +5.5. The time now is 05:48 AM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36