RobertSubnet Posted July 29, 2007 Share Posted July 29, 2007 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 Quote Link to comment Share on other sites More sharing options...
trq Posted July 29, 2007 Share Posted July 29, 2007 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. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted July 30, 2007 Share Posted July 30, 2007 Apache is not OS specific, Apache can run on Windows, Mac and Linux. If you install Apache on windows you can then test to see if your site works with Apache. It should run with no problems on Linux even though you coded it on Windows. Quote Link to comment Share on other sites More sharing options...
markjoe Posted August 1, 2007 Share Posted August 1, 2007 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. Quote Link to comment Share on other sites More sharing options...
DanAuito Posted September 1, 2007 Share Posted September 1, 2007 Anyone have an easy way to find your php.ini file on your computer. I can't even find that! ??? Quote Link to comment Share on other sites More sharing options...
markjoe Posted September 1, 2007 Share Posted September 1, 2007 make a php script file: <?php phpinfo(); ?> when you go to the page the first section will show you what php.ini file is loaded. example: "Loaded Configuration File /usr/local/php5/lib/php.ini" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.