Forum Moderators: phranque
I've worked with php, mysql and apache a little bit...my knowledge isn't extensive but I do know some. Now a friend of mine is trying to set up some space for me on his IIS server. It's a php, mysql site and I'd like to use mod_rewrite for my URL's.
It looks like the only thing IIS has is ISAPI ReWrite for a license fee of $70 bucks. Considering mod_rewrite is free, that doesn't seem like too good a deal.
Could someone who has worked with both servers tell me which would be the best when working with a dynamic php, mysql site...would it be more difficult to host this thing on IIS?
Just like you can run Perl, you'd have to install the framework for PhP, but it's a quick install.
There might be alternatives to the paid version of the isapi_rewrite, but why are you adverse to paying for it? $70 for a significant piece of software is cheap. You're getting the language and the database for free, and it sounds like your friend will provide hosting for free.
Software developers need to support their families too.
A. Windows has very bad memory leaks and the OS bogs down after a while slowing up your server. Unlike a Nix apache server that you can run for months/even years with out a restart, plan on doing one at least (and I stress this is a pretty long time for a windows machine) once a week with anything M$ related...
B. Security risks like the devastating ISASPI buffer overflows that dropped a remote shell to its attacker (not that apache hasn’t had its share of overflows) are in far more abundance and very likely to appear in the future. Also when a critical overflow is found it is most likely to be followed by a malicious natured worm using this flaw to propagate itself around IIS servers; the code red worm is actually still bouncing around the MS update servers! lol.
C. In my opinion (having worked with IIS and apache on multiple platforms for several years) apache is far more configurable. Its configuration file offers you the ability to induce custom made commands and actions to be followed by the server to protect yourself or perform a certain task.
D. Speed wise apache is as fast as an HTTP server comes, although IIS has a little gain on it when running on windows since it runs as a system service and is more integrated with the OS. Apache on a nix OS will kick the **** out of IIS any day though.
E. Apache is free and better :)
Conclusion:
A nix run Apache web server is as reliable, stable, secure, and fast as they come. Even on a windows oriented platform id choose apache over IIS hands down.
Advice:
Disable ANY un-needed extensions on an IIS server, remove all shell executables (DOS), and close any services not used, and install the OS on a seperate partition from your server media and other misc files.
A. Windows has very bad memory leaks and the OS bogs down after a while slowing up your server. Unlike a Nix apache server that you can run for months/even years with out a restart, plan on doing one at least (and I stress this is a pretty long time for a windows machine) once a week with anything M$ related...
B. Security risks like the devastating ISASPI buffer overflows that dropped a remote shell to its attacker (not that apache hasn’t had its share of overflows) are in far more abundance and very likely to appear in the future. Also when a critical overflow is found it is most likely to be followed by a malicious natured worm using this flaw to propagate itself around IIS servers; the code red worm is actually still bouncing around the MS update servers! lol.
C. In my opinion (having worked with IIS and apache on multiple platforms for several years) apache is far more configurable. Its configuration file offers you the ability to induce custom made commands and actions to be followed by the server to protect yourself or perform a certain task.
D. Speed wise apache is as fast as an HTTP server comes, although IIS has a little gain on it when running on windows since it runs as a system service and is more integrated with the OS. Apache on a nix OS will kick the **** out of IIS any day though.
E. Apache is free and better
A. Yes Linux was in fact attacked more and experiences more breakins, but why? Linux/Unix servers run the majority of the servers on the net. Even the one we are on right now is an (out dated) Apache server that resides on a nix OS :). So to say Linux was attacked more may be so because it is the dominant OS of choice for many servers even if the rest of the network environment is windows oriented...
B. Out of those "successful attacks" what was the degree of the malicious intrusion? A successful attack can simply be some kiddies running a DDoS attack against the OS. For those of you who are familiar with Denial of service attacks their comes a point where the attack scale is so great no OS no matter how secure it is can handle the brunt of it. The successful attack may have been so simple as well; maybe it shouldn’t have been included in the results?
C. Did all the systems monitored have the same security officer? Was this officer any where near skilled enough
to be running them? Many kiddies run Linux systems and are new to the community, thus they do not know how to stop and turn off some services, nor do they know how to make the right configurations... No system is ever "un-hackable" but a server is only as secure as its operators knowledge reaches... Security is not a default setting so we would also need the statistics of the administrator skill level for ALL the systems :).
D. What operating system has been beat to hell and brought to its knees by these little kiddie worms flowing around the internet? How many virri and worms have been released in the last few months? lol, the linux/unix community laughs every time one shows up.
What has Mr.Billy Gates been rambling on about this month, that new "service pack 2 security" stuff eh?
E. Not every server has the same services that can be accessed by the public, so let’s take into consideration that nix based systems are the majority OSs used for servers. For the results to be accurate every attacked server would have to have the same services opened, configured the SAME WAY with the IDENTICAL user and password lists applied to them, and be the same version. Many breaches can be caused due to clients using the server as well. Brute forces against a server and recovering weak passwords are also
a result of a client at fault and a successful attack... As well as poorly written CGI/PHP scripts by the users...
F. Our attackers motives and skill level would have had to been the same as well, how are we to assume each attacker was out just to break into the system? To say that is extremely inaccurate. Hackers compete (especially the kiddies) to see who can break into the "most secure" environment to show off. Linux/UNIX systems are also better for hacking because of the many tools readily available for it and its spoofing ability. So maybe our nix systems were compromised in many cases not because they couldn’t get into the windows ones, but because they didn't want to? Maybe our linux/unix based server is just a prime target, just like someone would prefer a corvette over a station wagon...
Looking back to high school we all learned (well some of us I guess) that to come up with accurate results during an experiment each item that we are trying to retrieve this data from while using our environment variable must be equal to each other. If one of our items is not equal to the other this throws off the entire data curve when using our "malicious intrusion" variable. The things that I have listed above (and im sure more that I have forgot to mention) bring up to many individual variables in comparison with the use of each OS and how they were applied in the result gathering process; because of this the results I pulled up from these articles should be deemed inconclusive..... They do not have enough equal experiment statistics to capture accurate results and write an article indicating so...
As for speed results apache conducted an equal environment situation with identical hardware make up with several servers, Apache did come out on top as the fastest server out there (probably why apache is on three quarters of the servers in existence globally). I also base this on personal tests that I have run and from experience with Novel, IIS, Abyss, and Apache services...
Ahhh yes and I also forgot to point out on my original post the fragmentation issues of windows....
o_O?
I choose Rocky Road. I choose IIS.
Works for me. Works fine. Depends on the server and the server OS. The most recent version of IIS running on Win2K is a lot more stable than earlier versions. I haven't had to run a reboot. Not the same under earlier versions of the MS server OS.
I don't love MS. I just use it and it works.
[link] Apache vs IIS
[freephile.com...]
[link] The ISAPI Critical exploit I was talking about
[internetnews.com...]
As for the article comparing IIs to Apache... all it does is tout Apache's flexibility, and harps repeatedly that it's free. There's actually no real information to be gleaned, and the objectivity is severely lacking. Nothing specific about performance. What little is actually mentioned is a generalized kudos to Apache, yet mentions absolutely nothing about why IIs is lacking (except for the fact that it costs $$$)
Don't get me wrong. I prefer Apache myself, however I don't base it on the 'Microsoft is the evil tyrant' reputation which runs rampant. IIs is a very capable web server. It has a LOT more support than that article insinuates, and doesn't cost all that much money. It insinuates that the moment a newer version comes out, or new features added, you're stuck with a licensed old version which will cost $$$ to replace...which simply is not true.
By the way if you use the links mentioned in the text of that article about Apache it does give some further documents to back up what he is saying. That article was also provided I believe as I said word for word in my last post "This person has some excellent points as well on the Apache vs. IIS war that will always rage on." Show me where I said he had accurate information to point this claim? I just said this person had some additional points and views worth taking a look at...
Don't get me wrong I loooooooooooove IIS/windows for my own reasons as well :)! I think the entire world should be run by MS Windows/IIS lol. I secure servers/networks and construct them for a living, makes me all the richer. :) But as for the 4U servers that I have under my personal wing for hosting and such, nix and Apache!
\Mac
Hackers and virus writers go after the most popular and most common, they don't choose the "easiest", they look for big targets and great impact.
Use what you want, what you KNOW, and what you feel comfortable with, this isn't a religious argument like TOO many "my os is better than your os" or "my word processor is superior to yours" discussions turn into.
Shadows Papa
(former corporate anti-virus administrator for a large financial company)