From childhood i have always been fascinated by computers and my first box was a 386 machine with a monochrome monitor. Whereas now i have a powerful Quad core machine ^_^ I have a home network which connects couple of wired desktops, XBox (which is now a media center with XBMC) and also wireless iPhone and Macbook pro. I have dedicated a box which is not publicly accessible to be a Dev server, and i recommend you doing the same. In this box i have Windows XP and the first thing i installed were Avira AntiVir (best free antivirus), SuperAntiSpyware and Microsoft BitDefender.
Installing XAMPP as WAMP Server
Moving on, i installed XAMPP in c:\xampp because it makes your life easier to install Apache Web Server 2.x with Openssl, PHP 5.x, MySQL 5.x, phpmyadmin, FTP server and a Mail server in one go. I installed all except FTP and mail server as a service. And if you want you can configure each piece separately by changing their ini files once installed. So this takes care of Webserver with php Scripting, Database with Web based GUI (BTW phpmyadmin is the web based GUI if you haven’t already figured it out ^_~ ). After installing go to http://localhost and by default you will see xampp’s page its due to index.php which redirects the browser to xampp’s folder. its recommended to change all of the default settings i.e change password because sometimes people forget to change it and a hackers first attempt is to try the default password. its pretty simple, click security and follow instructions. one more advantage of using xampp is that you can also plugin other components perl, python if you want.Also it comes with a cool control panel from which you can control turning on and off the server.i will show apache+php configuration when i start a project
Installing Tomcat as app server
Now lets install tomcat, a servlet container which will act as app server for now. but first you have to install the latest stable JDK. My preference is to create a folder called c:\java and keep all my java related software and library there so its easy to organize and find java related stuff, plus i don’t like spaces in my folder names i.e. C:\Program Files , since there are few programmes out there which fails due to this reason alone O_O. make sure to change the path in the wizard for both jdk and jre its installed as C:\java\jdk1.6.0_13 and C:\java\jre6 also in your environment variable set JAVA_HOME value to C:\java\jdk1.6.0_13. Once that’s done get the latest tomcat’s windows service installer and install tomcat as a service. so i installed it as C:\java\apache-tomcat-6.0.18. During install it will confirm for new port (8080 by default) and admin password. I will show tomcat configuration when i start a project
Installing Subversion as server for revision control system
Next step is to install revision control system, I choose subversion cause i feel this is the next generation of cvs, and they have a good number of quality and easy to use clients like Tortoisesvn (windows GUI client), Slik subersion (command line client), Subclipse (Eclipse), Anksvn (visual studio) i have installed all four. On my server i installed CollabNet Subversion (Certified binary for subversion) because it was easy and i just followed its readme for the setup. Couple of things to note, you have register for free at collabnet before downloading and there are multiple ways of installing and since i am using it for internal dev only i am installing the svnserve (svn:// protocol) instead of apache as svn server(http:// protocol)
Installing Hudson, A Continuous Integration Server
Download Hudson, if it downloads as a zip rename the extension as war(basically jar, war and ear are just zip files) and place it under tomcats webapps folder i.e. C:\java\apache-tomcat-6.0.18\webapps. Start tomcat and thats it you have installed Hudson.
For Java using Ant is old school. You should use maven instead. Why? because its so much better for project/dependency management and its plugin system adds so much more functionality than ant, for example take a look at apache’s plugins and codehaus plugins. So we are going to create a Maven repository. First Download maven2 extract the zip to say c:\java\apache-maven-2.1.0 then set the environment variable M2_HOME to c:\java\apache-maven-2.1.0 and Path as %Path%;c:\java\apache-maven-2.1.0\bin open c:\java\apache-maven-2.1.0\conf\settings.xml uncomment localrepository and change the path to C:\java\maven-repo create a folder .m2 in your home folder which would be C:\Documents and Settings\\.m2 you can do this by command prompt C:\Documents and Settings\surya>mkdir .m2 then create settings.xml and copy paste Example 3.1 (make sure to change the port) I also installed Nexus a Maven Repository Manager (due to m2eclipse supports nexus) Downloaded the open source war renamed to nexus.war and placed it inside tomcats webapp folder. logged in as administrator with username/password as admin/admin123 If you can see the repo that means its successfully installed.
Right now in this article i am focused on installing the dev system. Whenever i start working on my project, i will configure each system individually and will write about it. You might have noticed, i am big fan of prepackaged binaries or wizard based software since they save time and do most of the work for you. Power user prefer to compile the source or extract from zip and manually configure it, the pros is, it increases your understanding and knowledge of the product , the cons would be it takes time, learning and going through documentation (which is not necessarily a bad thing ^_^). So personally (since i am developer and not administrator) if i can find a good wizard based software i will use that, otherwise i will use the zip version. (Under Construction…,Jira)