PHP on Windows NT vs. Unix

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
heybret
Forum Newbie
Posts: 2
Joined: Mon Jun 09, 2003 5:00 pm
Location: Lincoln, NE USA

PHP on Windows NT vs. Unix

Post 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
User avatar
MrNonchalant
Forum Commoner
Posts: 29
Joined: Wed Jul 17, 2002 2:15 am

Post 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.
hedge
Forum Contributor
Posts: 234
Joined: Fri Aug 30, 2002 10:19 am
Location: Calgary, AB, Canada

Post 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
Tubbietoeter
Forum Contributor
Posts: 149
Joined: Fri Mar 14, 2003 2:41 am
Location: Germany

Post 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.
heybret
Forum Newbie
Posts: 2
Joined: Mon Jun 09, 2003 5:00 pm
Location: Lincoln, NE USA

Post 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
User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

Post 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.
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post 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)
Judas
Forum Commoner
Posts: 67
Joined: Tue Jun 10, 2003 3:34 pm
Location: Netherlands

PHP on Windows NT vs. Unix

Post 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.

:idea: btw Php wasn't Gates idee.

(microsoft ghnnn, get on moving)
User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

Re: PHP on Windows NT vs. Unix

Post by liljester »

Judas wrote: Unix based is faster than Microsoft's based sys's.
thats a very broad statement, and inaccurate in some cases.
slimsam1
Forum Commoner
Posts: 49
Joined: Wed Aug 21, 2002 12:20 am

Post by slimsam1 »

Linux based are cheaper than windows based. But only by a few hundred.
Post Reply