Getting it up and running
Last week I finally received my new hardware. Eager to get it all running I started with the base install of Debian (4.0).
First I installed the subversion server as follows:
- run ‘apt-get install subversion’
- run ‘svnadmin create /path/to/repository’
- update the config files in /path/to/repository/conf
- create a start script for the svnserve daemon, containing something like: ‘svnserve -d -r /path/to/repository/’
- wow it works! 😛
Installing Apache2, PHP5 and MySQL 5 was also really easy.
- run ‘apt-get install apache2 php5 mysql-server-5.0 libapache2-mod-php5 php5-mysql’
Installing Tomcat was a bit harder. I first installed lynx so I could download jdk 1.5 from java.sun.com. After downloading it I installed it into /opt. After that I created a symbolic link from /opt/java pointing to the jdk 1.5 folder. After that setting the JAVA_HOME environment variable to it and exporting JAVA_HOME/bin to the path.
After that I also downloaded the Tomcat 5.5 tar.gz file and untarred it into the /opt directory on the harddrive. After that I created a similar symbolic link to /opt/tomcat referring to the tomcat install location. After that I tested the install and it worked ok. Because I didn’t want to run Tomcat as root I created a tomcat user and modified the startup script to run as the tomcat user using the ‘su -p tomcat’ command.