nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


Coding in General Discussion on PHP/Perl/Python/Ruby/GNU C or C++. MySQL, PgSQL and (X)HTML or any other programming languages you want.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 13-06-2008, 02:27 AM
Junior Member
User
 
Join Date: May 2008
OS: CentOS, Fedora
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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
  #2 (permalink)  
Old 14-06-2008, 01:15 AM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
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.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
  #3 (permalink)  
Old 14-06-2008, 01:32 AM
Junior Member
User
 
Join Date: May 2008
OS: CentOS, Fedora
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
yoander is on a distinguished road
Default

Thanks for your help!

yoander
Reply With Quote
  #4 (permalink)  
Old 14-06-2008, 06:41 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
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 Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #5 (permalink)  
Old 25-06-2008, 04:58 PM
Junior Member
User
 
Join Date: Jun 2008
OS: centos 5
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
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 25-06-2008, 07:47 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
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.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
Reply


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 Off



All times are GMT +5.5. The time now is 04:17 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

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 37 38