You are here: Re: mod_php or fastcgi? « PHP Programming Language « IT news, forums, messages
Re: mod_php or fastcgi?

Posted by Michael Vilain on 11/16/39 11:52

In article <1152384534.171573.170610@m73g2000cwd.googlegroups.com>,
howachen@gmail.com wrote:

> Michael Vilain υημΌΕF
>
> > In article <1152365690.253421.109840@b28g2000cwb.googlegroups.com>,
> > howachen@gmail.com wrote:
> >
> > > hi,
> > >
> > > which package you perfer?
> > >
> > > mod_php on apache is okay but some people said fastcgi version of php
> > > is faster, is it true?
> > >
> > > thanks...
> >
> > Depends. (That's the standard answer for ambiguous questions which don't
> > have sufficient technical details to provide an informed opinion).
> >
> > Specifically, it depends on the environment (hardware and software)
> > you're running on. OS and version? Hardware platform--CPU, memory,
> > disk? Shared web server or dedicated? What sort of web application are
> > you running? How much traffic is it expected to handle currently? In 6
> > months? 1 year? 3 years?
> >
> > It's my understanding that fastcgi forks a process for each connection,
> > running in the context of web server. mod_php runs as a thread, allowing
> > for
> > it to run concurrently with other processes on multi-CPU systems.
> >
> > --
> > DeeDee, don't press that button! DeeDee! NO! Dee...
>
> consider the followings...
>
> OS - CentOS 4.3
> CPU - Intel Pentium D Dual Core 2.8Ghz
> Memory - 2GB DDR2
> Dedicated Web server
> Expect to handle around 500 connections, each requests use at most 3MB
> of memory

For security on my shared web host, I use CGI when I need to run a perl
script as a specific user. My ISP provides CGIwrap for this purpose.
Otherwise, I run all my site using mod_php. It can access the MySQL
database and display the pages and is fast enough.

Since you have a dual core system, I'd use mod_php. You'd be able to benefit
from it immediately with a threaded Apache server. And the site will
scale if you add more CPUs.

--
DeeDee, don't press that button! DeeDee! NO! Dee...

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация