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... 5 3557
Michael Vilain 寫道:
In article <11************ **********@b28g 2000cwb.googleg roups.com>, ho******@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, allowingfor
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 ho******@gmail. com wrote:
> which package you perfer?
mod_php on apache is okay but some people said fastcgi version of php is faster, is it true?
It doesn't matter. The difference in speed between the two approaches is
dwarfed by the improvements you can get in caching and improving your
algorithms. Further, unless you intend for your web site to serve hundreds
of hits per second, the difference won't be noticeable.
Don't start micro-optimizing until you know that the simplest approach
doesn't meet the specs.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Michael Vilain wrote:
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.
Not quite. If it creates a process per connection then it wouldn't be
fast. FastCGI works sort of like a Java app server. It runs it a
separate process and communicates with the web server across a socket
connection. Since interprocess communication is very fast, FastCGI is
at least on-par with an in-process module in terms of performace. And
the decoupling of web-server from the app-server allows resources to be
better managed, so it could be actually be faster. For example,
persistent connections when used with mod_php is quite wasteful, since
every Apache process would own a connection to the database, even
though it might actually spend majority of the time serving image files.
Tim Roberts 寫道: ho******@gmail. com wrote:
which package you perfer?
mod_php on apache is okay but some people said fastcgi version of php
is faster, is it true?
It doesn't matter. The difference in speed between the two approaches is
dwarfed by the improvements you can get in caching and improving your
algorithms. Further, unless you intend for your web site to serve hundreds
of hits per second, the difference won't be noticeable.
Don't start micro-optimizing until you know that the simplest approach
doesn't meet the specs.
in fact, security is also one of the concern. people said fastcgi
version is more secure, and reliable
Michael Vilain wrote:
In article <11************ **********@m73g 2000cwd.googleg roups.com>, ho******@gmail. com wrote:
Michael Vilain F
In article <11************ **********@b28g 2000cwb.googleg roups.com>, ho******@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...
Theorectically, except PHP isn't thread safe, and requires you use the
pre-fork model of apache. This is suppose to change, eventually. Word
is mod_php is faster, by and large though, probably because its
integrated more with apache than a completely seperate cgi process. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: yarmfelder |
last post by:
Hi all,
I noticed that with Slackware they don't include
mod_php in the latest distro. I also noticed some
talk on the web that there was an insecurity
issue with mod_php in a previous version of
Slackware.
So is this just a Slackware mishap or is there
a good reason to no longer permit PHP from
|
by: Peter Otten |
last post by:
Is there a way to limit both width and height of a canvas text item?
My current workaround seems clumsy:
import Tkinter as tk
root = tk.Tk()
canvas = tk.Canvas(root, width=400, height=200, bg="white")
canvas.pack()
# simulate a clipped text item - never transparent :-(
s = "The long and winding road.."
|
by: Vincent Delporte |
last post by:
Hello
I'm interested in hearing reflections by seasoned web app
developpers about the different ways to write PHP apps, and especially
how they compare in terms of performance, whether it's the PHP part or
connections to MySQL.
As far as I know, there are different ways to write a PHP application:
- CGI, ie. the usual way : some PHP code in web pages, and the PHP
interpreter is loaded each time a PHP page is called
|
by: howa |
last post by:
concurrent request to httpd might as high as 300
and each httpd need 12M of memory (currently using mod_php)
so total memory needed might over 3GB
so under this case, should i use fastcgi?
thanks.
|
by: howa |
last post by:
which one you preferred for running a production, busy site?
seems PHP site only tell you to use mod_php, but seems fastcgi is a
better choice for busy site (such as Yahoo also use fastcgi)
| |
by: BMK |
last post by:
I am using apache web server with php5 and oracle 10 as database
server.
in this scenerio, do I expect to have mod_php.so?
|
by: Evil Son |
last post by:
Hello group,
If I switched from mod_php to fast-cgi, would I need to make any
changes to my php source?
Also, will something like APC still be useful?
Will my database connections suddenly become persistent?
If I had static data in my script, will it persist when that same
|
by: setesting001 |
last post by:
How many of you are running Fast CGI instead of the popular mod_php?
I planning to change to fast cgi since my applications need around
15MB memory to handle a single request, so consider if Apache running
in multi-process mode, serving 300 clients, then it nearly used up all
my memory in my server.
Any experience can share how to handle large concurrent clients for
PHP?
|
by: yawnmoth |
last post by:
Correct me if I'm wrong, but isn't running PHP via mod_php faster than
running it via CGI? If so, why would a web hosting company be running
PHP via CGI and not mod_php?
I asked that very question to one web hosting company and given the
following response:
"We run our php based on what is secure, not what could be a few
seconds faster"
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |