2

A possibly "silly" question.
Would I possibly run into any problems (incompatibilities) deploying eg.: on Centos/Apache (php5/MySQL5) a project developed on Win desktop (WAMP/XAMPP - php5/MySQL5).

I found some answer: here on Stack.
But it does not address all my concerns.
If I missed any thread - I appreciate a link.

4
  • 1
    It completely depends on what your php is doing. Which modules are you using? Commented Oct 19, 2010 at 21:35
  • Also you need to be careful how you name your files. Linux is case sensitive where Windows it isn't. I.e. Config.php is the same as config.php on Windows but in Linux thay can be two separate files. So careful when naming and including files. Commented Oct 19, 2010 at 21:40
  • adam - standard "run-off-the-mill" php installation, nothing extra Commented Oct 19, 2010 at 21:43
  • daniels - I run into it this problem once in a very painful way - thank you very much for your post Commented Oct 19, 2010 at 21:44

1 Answer 1

1

For a simple PHP application, you shouldn't have any problems. I have done this many times.

There are a few things to keep in mind when developing though, the three biggest I have run into being:

-Make sure your PHP extensions are the same on both machines. You can see this in phpinfo()

-Avoid hard coded file paths. If you have any, you will need to check for both a Windows and a Linux location

-Keep file case consistent, Linux is case sensitive while Windows is not, so a file that is found in Windows will not be in Linux if the case is not consistent

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.