Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

apache to IIS transition

Status
Not open for further replies.

sirlojik

Programmer
Mar 29, 2005
178
UG
Hi all,
i have always developed my web applications and tested them using apache server installed by phptriad (tool from sourceforge).
I now want to use windows IIS without having to break my code.
I use PHP,mySQL. how can i setup and configure IIS to use PHP and mySQL?.
 
IIS won't use MySQL, PHP will. So you just install MySQL like you did on the apache machine.

For Windows, be sure to set lower_case_table_names to 2 in my.cnf (you will have to add a line) before creating any databases. Failing to do so will force all table names to lower case, making the transition to another machine (linux server for instance) extremely difficult. The value of 2 will make the table names case-insensitive, but won't change their case.

PHP can be installed like on apache. If you use the installer, choose IIS and all goes well.

Like with apache, IIS runs PHP as a low-permission user. You must know which user that is and keep in mind that PHP needs access to the files to be served and to the session storage directory (usually the system's temp dir)

If you do not run any apache-specific functions, there should be little problem switching to IIS. At least from PHP's viewpoint. Administering IIS is off course different from administering apache.

+++ Despite being wrong in every important aspect, that is a very good analogy +++
Hex (in Darwin's Watch)
 
something to look out for with IIS vs. Apache are Date/Time calculations. I forget which one, but one of the servers will require leading zeroes and other specifics that can cause hard-to-find errors.

I converted a site from Apache to IIS which had a calendar with recurrence and a bunch of other stuff and took a couple hours to notice that itty bitty problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top