Linux – Operating System Apache – Web server MySQL – Database PHP – Programming Language This is just a general definition. In modern app, all 4 can be changed. So what are possible options?
one click setup. Easy to manage Apache/PHP modules Can switch PHP/MySQL versions (limited to available on WAMP) Why Standalone? More control over different versions. Can replicate production server better.
Personal preference. WAMP is windows only, while XAMPP is cross platform. My personal preference (if that matter) is WAMP. Here I’m concentrating on WAMP.
Where will you put files? X:\wamp\www\abccorp How will you access site? http://localhost/abccorp If you are using framework, say symfony http://localhost/abccorp/web Would you like to use http://local.abccorp.com
DocumentRoot /path/to/project/web/root Enable site a2ensite local.abccorp.com Reload and restart apache service apache2 reload service apache2 restart Access site local.abccorp.com
we need Java Development Kit of at least Java Runtime environment because: IDE Many Java based tools, important during SDLC. • Nearly all OS come with some JRE (Not Sun/Oracle JRE) • For best result, prefer Oracle JDK or JRE. • Download installer from http://www.oracle.com/technetwork/java/javase/downloads/index.html • And follow instruction to install.
Do you need Unit Testing? NO because: I’m genius and never make mistake. No budget (My client can afford bugs but budget cant be increased) I don’t want to learn something new (I do not care … ) • Yes, but I don’t know how to test? No issue, install it and learn it.
that computer can understand. Good developers write code that humans can understand. – Martin Fowler. Refactoring/Design Patterns/Unit Testing/OOPs. At least start following coding conventions. Use code sniffer to force you doing that.
Puppet and Chef are ‘Configuration Management Software’. With proper use of Vagrant and Puppet/Chef, we can make development environment, very similar to production environment. Ensure all developers have same development environment.
www.virtualbox.org, download installer and install Virtual Box. Install Vagrant Go to www.vagrantup.com/downloads and download suitable installer. Install as per platform
http://files.vagrantup.com/precise32.box Start vagrant vagrant up This command will start server. Login to virtual machine vagrant ssh Stop vagrant vagrant halt Further steps Configure vagrant box with Puppet/Chef