Jump to content

PHP developed on IIS, run on Apache?


Recommended Posts

Greetings all.

 

I am in the process of building a web site with PHP/MySQL.

 

My development box is XP/IIS.

 

Yesterday I learned my hosting service only supports PHP on Linux/Apache boxes.

 

No offense to you Linux/Apache people, but I would perfer not to have to build a Linux/Apache box.

 

My question: after building the web site using IIS, will it run properly when uploaded to a Linux/Apache server? Or am I going to have to learn some Linux and Apache and build on that platform?

 

Thanks,

~Robert

Link to comment
Share on other sites

My question: after building the web site using IIS, will it run properly when uploaded to a Linux/Apache server? Or am I going to have to learn some Linux and Apache and build on that platform?

 

As long as you don't use any Windows / IIS specific extensions and code with error reporting set to E_ALL with a recent configuration you shouldn't have too much trouble.

 

What you really ought to do is get both the php.ini files matched up. Make sure your dev box uses as similar configuration as possible.

Link to comment
Share on other sites

I run Windows/IIS server at work, and I sometimes develop at home on Mac/Apache server.

The biggest problem I have is the line endings from the different editors. Which is only a code display thing and does not affect the code running.

Otherwise watch your file paths for includes or any files you may be reading. Obviously you will have trouble if you include a file like 'C:\path\file.inc' and then run it on anything other than Windows.

I also second the php.ini thing, try to make sure your Development environment and Deployment environment are as similar as possible.

Link to comment
Share on other sites

  • 1 month later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.