So, We are here talking about installing development environments here. What are development environments? Development environments are set of tools and programming languages which helps a developer to develop products and applications of their choice. LAMP is one such environment which consists of Linux, Apache, MySql & PHP.
Installing development environment is one of the most important task which a developer has to do . This is often one of the most time consuming task. Because of the complexity associated with the setup of development environment, most developers prefer an alternate and easier route, Which generally means installing a complete package like XAMP, WAMP etc.
This alternate route is never recommended but we as a developer think that we have no other choices whatsoever. However this is not the truth. I will share what is the recommended and best way to handle this situation.
There is no problem, as such, in using ready made packages like LAMP, WAMP, XAMPP. You can use it, but with ready-made packages i see following problems
The first and foremost advise which i give people is to try to install everything on our own. This provides users an opportunity to know how things work and how to configure each services as per individuals requirements. This will be time consuming but believe me it would be worth it.
However, there is one important problem which comes with this approach. If you want multiple dev environments with different configurations, this approach seems to be a bottleneck.
The best solution which i think for this problem is using Docker. Docker is a set of platform as a service products that uses OS-level virtualization to deliver software in packages called containers. Using docker you can create as many dev environments as you like. Using docker for creating a LAMP environment is very easy. We will explain that with example in our next post, so stay tuned.