Windows 7 vs Linux Development Environment?

Hi,
This seems like a basic question, but a search did not come up with any relevant previous threads. In short, I'm just starting on developing a PHP website, and would like to know the best environment to use, given that I already have a powerful windows 7 PC, and plan to host the website on a remote CentOS server.

Option 1. Use PhpStorm on the Windows 7 computer. The files are hosted on the Windows 7 computer (using XAMPP?). Set up a separate test computer running CentOS on the local network. Transfer the files here to test. Advantage is that development is on a local computer, and the test computer does not have to be super powerful (i.e., hot) as it is just hosting and not a development computer.

Option 2. Use PhpStorm on the Windows 7 machine, but have the files stored/hosted on the CentOS test machine. This could be clunkier to view the website while developing, but the advantage could be that you won't get any incompatabilities between hosting on XAMPP initially, and then transferring to CentOS (do such incompatabilities occur?).

Option 3. Remote desktop into the test computer running Linux Mint and PhpStorm. Advantage is that this environment will be much closer to the hosting environment of CentOS. Disadvantage is that the test computer would need to be more powerful as it is being used to develop as well.

I'm new to this, so I don't want to go to the trouble of setting up one of these to find out later that one of the other options is better. Any experience with these different approaches?

Thanks.

2 comments
Comment actions Permalink

Hi there,

Option 4: Use Vagrant -- http://confluence.jetbrains.com/display/PhpStorm/Vagrant+Support+in+PhpStorm

Therefore (IMO): #1 or #4

This could be clunkier to view the website while developing, but the advantage could be that you won't get any incompatabilities between hosting on XAMPP initially, and then transferring to CentOS (do such incompatabilities occur?).

1) Turn on "Automatic upload on save" maybe??

2) What incompatibilities ... if all code is run remotely? Locally you will only have copy of actual files. ALSO -- accessing source files directly over network in NOT officially recommended (IDE requires very fast access to those files and due to network latency you may experience different side effect like random freezes for no apparent reason, lags on code completion etc) -- for some people it works fine but for some it does not.

P.S.
http://blog.jetbrains.com/phpstorm/2014/03/webinar-recording-deployment-with-phpstorm/

0
Comment actions Permalink

Thanks. I wasn't thinking about a virtual machine, but you're right, that could be the best way to go. I'll try using PhpStorm in windows itself first, and then try a virtual machine if working in windows leads to complications due to the different environments.

0

Please sign in to leave a comment.