Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 21st, 2003, 06:37 PM
tommy916 tommy916 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 340 tommy916 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 h 15 m 41 sec
Reputation Power: 6
windows vs linux for PHP usage

i'm wondering which is best performance for lot of PHP usage and why?

1. Windows IIS w/ CGI module (very slow when there many visitors & CPU 100%)
2. windows IIS w/ ISAPI module (very good but i've hear on internet they said have problem with crashing.)
3. Windows w/ Apache (never tried yet)
4. Linux w/ apache (never tried yet)

you can rank them in order which is faster and stable for PHP requests. doing for web hosting.

Reply With Quote
  #2  
Old May 22nd, 2003, 12:25 AM
jdk's Avatar
jdk jdk is offline
phpkid ~~~~~~ :o)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Nov 2000
Location: NJ, USA
Posts: 2,535 jdk User rank is Lance Corporal (50 - 100 Reputation Level)jdk User rank is Lance Corporal (50 - 100 Reputation Level)jdk User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 11 m 11 sec
Reputation Power: 10
Send a message via Yahoo to jdk
4

3

2

1

No no, I am not doing count down, I am ranking them in order for your requirement.

Regards,
JD
__________________
_____________________________
d.k.jariwala (JD)
~ simple thought, simple act ~
I blog @ http://jdk.phpkid.org

Reply With Quote
  #3  
Old May 22nd, 2003, 05:10 AM
Jeb.'s Avatar
Jeb. Jeb. is offline
Gogo Google.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Adelaide, Australia
Posts: 226 Jeb. User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to Jeb.
Listen to the man, he speaks the truth.

IIS/CGI is the worst possible combination.

Linux/Apache/PHP-SAPI module is the best you can do. Why? All three were originally developed for Linux. The windows ports of Apache and PHP were later releases.

Thus, all three work brilliantly together. Especially Apache and PHP.

Last edited by Jeb. : May 22nd, 2003 at 06:12 AM.

Reply With Quote
  #4  
Old May 22nd, 2003, 05:13 AM
SilkySmooth's Avatar
SilkySmooth SilkySmooth is offline
Newbie :P
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2001
Location: In the PHP Engine :-)
Posts: 2,880 SilkySmooth User rank is Sergeant (500 - 2000 Reputation Level)SilkySmooth User rank is Sergeant (500 - 2000 Reputation Level)SilkySmooth User rank is Sergeant (500 - 2000 Reputation Level)SilkySmooth User rank is Sergeant (500 - 2000 Reputation Level)SilkySmooth User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 11 h 32 m 23 sec
Reputation Power: 15
Microsoft Platform - Microsoft Languages
Open Source Platform - Open Source Languages

Simple :-)

Reply With Quote
  #5  
Old May 22nd, 2003, 11:40 AM
tommy916 tommy916 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 340 tommy916 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 h 15 m 41 sec
Reputation Power: 6
Great. is there difference between Apache 1.3.x and 2.x? I heard 1.3.x is forking program and 2.x is threading program.

so what would you recommend?

Reply With Quote
  #6  
Old May 22nd, 2003, 01:33 PM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,840 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 Days 27 m 47 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
Currently use Apache 1.3.x since it is a proven stable release. Apache 2.x is not considered production quality yet.

Reply With Quote
  #7  
Old May 22nd, 2003, 02:29 PM
md_doc
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
There are also some issues, if I recall correctly, with PHP 4.2.x on apache 2.x. I might have it mixed up but I know I have read places where sessions and other things don't work with certain combinations of PHP and apache 2.x. So just a heads up if you are heading that way.

In short if you are designing a new application you will probably want to consider going with Apache 2.x but if you already have your application built migrating from Apache 1.3x over to 2.x is probably not the most enjoyable thing to spend your time on.

Reply With Quote
  #8  
Old May 22nd, 2003, 07:22 PM
Stink Sleeve's Avatar
Stink Sleeve Stink Sleeve is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2003
Location: New Hampshire, USA
Posts: 550 Stink Sleeve User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 17 m 26 sec
Reputation Power: 6
I'll attest to the ISAPI module crashing in an IIS enviroment. I
currently use IIS/FAST CGI, tested with ISAPI on testing server
kept getting memory dump complaining of trying to write to
read only memory. But I do get great reaction times with IIS/CGI.

If you can, Linux, Apache,MySQL,PHP (LAMP-see tutorial in sig).
__________________
Download Mozilla Firefox Now!

Reply With Quote
  #9  
Old May 22nd, 2003, 10:19 PM
thedude thedude is offline
The Dude Abides
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Feb 2000
Location: grass valley,ca
Posts: 1,063 thedude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 9 h 4 m 29 sec
Reputation Power: 10
Hmm, I've never heard of problems with Apache 2, etc. Although I haven't really looked. I run an intranet site with it, using mysql, php, sessions and not a hiccup. Gonna have to look into this.

Just downloaded RH9, need to see what that is all about.
__________________
The Dude
I'm the Dude. So that's what you call me.
That, or Duder, His Dudeness, Or El Duderino.
If, you know, you're not into the whole brevity thing

Reply With Quote
  #10  
Old May 22nd, 2003, 11:35 PM
tommy916 tommy916 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 340 tommy916 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 h 15 m 41 sec
Reputation Power: 6
oh i never heard of FAST CGI, tell me more about it and where can i find it? thank

btw, i heard people are having problem with PHP 4.3x and Apache 2.x

Reply With Quote
  #11  
Old May 23rd, 2003, 05:06 AM
Jeb.'s Avatar
Jeb. Jeb. is offline
Gogo Google.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Adelaide, Australia
Posts: 226 Jeb. User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to Jeb.
I certainly am. They need to iron out a few kinks here and there. Certain code is causing Apache crashes, and it's giving me grief.

I run PHP5-dev on Apache 2.0.45, and I actually have less issues with that setup than I do with stable PHP 4.3.1.

Either way, I went back to Apache 1.3.27/PHP 4.3.1 for now. I have the two setups running side-by-side, able to switch to either at a whim. Works fine. Apache 2.0.45 is stable, you can use that in a production environment.

But, you shouldn't use it in conjunction with PHP as Apache 2 support in PHP is still experimental.

Last edited by Jeb. : May 23rd, 2003 at 05:08 AM.

Reply With Quote
  #12  
Old May 23rd, 2003, 11:50 AM
Sepodati's Avatar
Sepodati Sepodati is online now
Banned
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Dec 1999
Location: Afghanistan
Posts: 14,382 Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 70626 Folding Title: Intermediate FolderFolding Points: 70626 Folding Title: Intermediate FolderFolding Points: 70626 Folding Title: Intermediate FolderFolding Points: 70626 Folding Title: Intermediate Folder
Time spent in forums: 2 Months 4 Weeks 10 h 45 m 5 sec
Reputation Power: 1784
Send a message via ICQ to Sepodati Send a message via Yahoo to Sepodati
I use IIS with PHP as an ISAPI module at work and have never had any "crashing" issues. It doesn't have a really high load, 6-8K hits per 8 hour work day. I've got to say I'm happy with it though.

I've got to agree with SilkySmooth: When on MS, use MS, even though we all know it's not the best choice overall.

---John Holmes...

Reply With Quote
  #13  
Old May 23rd, 2003, 12:39 PM
tommy916 tommy916 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 340 tommy916 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 h 15 m 41 sec
Reputation Power: 6
I cannot understand the instruction how to install FastCGI. I'm running win server IIS with php 4.2.3
I went to http://www.caraveo.com/fastcgi/ and there is a file phpfcgi.exe for 4.2.3. I'll need to change the path point to that file in C:/php/phpfcgi.exe

is there anything else? Do i need to add registry
AppPath = c:\php\phpfcgi.exe
and BindPath "php-fcgi"
startservers
incrementservers
maxservers

Last edited by tommy916 : May 23rd, 2003 at 01:06 PM.

Reply With Quote
  #14  
Old May 27th, 2003, 05:18 PM
tommy916 tommy916 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 340 tommy916 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 h 15 m 41 sec
Reputation Power: 6
so linux apache 2x is better than Win IIS ISAPI for many visitors?
What i'm looking for that it can take over 50 visitors request the same page at the same time.
The CGI module is really BAD.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDev Shed Lounge > windows vs linux for PHP usage


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump