Sometimes I need write code in working computer which is window 10 operate system,but run Php scripts in Linux environment.I don't ensure every code that wrote by me is completely correct.So I want to test in Linux environment.Maybe you can upload codes to your server,but I don't like that.maybe use virtual machine is the best solution for me.
The benefits of using Virtual Machine
- If you are newbie,Don't worried about the crush of real server.Do everything you want even if Virtual Machine broken,we can fix it immediately through backup or snapshots
- run Php script immediately without upload that is very convenient for debugging
- you don't buy a real server or cloud server only just for testing your php scripts
Blow is my steps for configuring Virtual Machine
- Install Oracle VM virtualBox from here
- Install Linux operate systems (e.g. Ubuntu,C