Page 1 of 1
PHP on Windows NT vs. Unix
Posted: Mon Jun 09, 2003 5:00 pm
by heybret
Hi All,
I was wondering if anyone could provide some insight to running php on a windows platform(windows nt) vs. a unix(solaris) platform. This will be a production environment. Just curious to if there are any deffinate pros or cons one way or the other?
Thanks
Bret
Posted: Tue Jun 10, 2003 2:03 am
by MrNonchalant
There aren't really. I run PHP on a windows 2k machine which is about as close to NT as you can get without being NT and although some things are coded different (file system references for example) it's not really much of a disadvantage or advantage.
Posted: Tue Jun 10, 2003 8:43 am
by hedge
I code on both and can move scripts from one to the other without any changes. There are a few things to watch out for like some of the $_SERVER globals are different.
I never had a problem with path's... I always use '/' and it seems to still work on Win
Posted: Tue Jun 10, 2003 9:04 am
by Tubbietoeter
in some cases it's handy to use unix commands (espacially if you program very file-oriented)... working on windows you dont have them of course.
but this is not a php problem.
Posted: Tue Jun 10, 2003 2:51 pm
by heybret
So there are no real performance hits for running on windows vs unix or vise-versa?
Just curious if this is like Apache where they have windows ports, but the main development effort was focused toward unix and the production quality version is geared more towards unix?
Thanks for all the replies!!
Bret
Posted: Tue Jun 10, 2003 2:59 pm
by liljester
with heavy database activity (mysql) win32 will beat BSD on comparable servers. BSD has some threading issues (or so ive read).
The test we ran was:
windows 2000, IIS5, php4.2 (ISAPI), mysql 4
vs.
FreeBSD, apache, php4.2, mysql 4
test was running over 25000 queries of all kinds, the win2000 server was about 10% faster for our scripts.
Posted: Tue Jun 10, 2003 3:05 pm
by m3rajk
i think it depends on who's using your server. if they are accustom to a unix environment, it hink it's better, especially since redhat teamed with the nsa and apache to create a forthcoming unix/linux server that has DoD security standards met, instead of just paid off like microsoft and iis (if you look closely you figure out that the DoD standards that are suppossively why it's preferred aren't met, and a good admin can make unix more secure with greater ease...from what i've heard through the grapevine there's a push on the network admin level inside the DoD to switch to linux that's being stopped from the fact the DoD hasn't given it's seal of approval on security standards yet)
PHP on Windows NT vs. Unix
Posted: Tue Jun 10, 2003 3:34 pm
by Judas

Hmm not easy to answer.
Unix based is faster than Microsoft's based sys's.
I prefer rendering images on a Unix based sys.
The combination Apache Linux Php Mysql rock's dude.

btw Php wasn't Gates idee.
(microsoft ghnnn, get on moving)
Re: PHP on Windows NT vs. Unix
Posted: Tue Jun 10, 2003 3:49 pm
by liljester
Judas wrote:
Unix based is faster than Microsoft's based sys's.
thats a very broad statement, and inaccurate in some cases.
Posted: Tue Jun 10, 2003 6:31 pm
by slimsam1
Linux based are cheaper than windows based. But only by a few hundred.