How To Move ReserveSport From one Server to Another

Moving from one hosting service to another

Contacting ReserveSport

Moving from one hosting service to another

First, make sure that the new hosting service has all of the right requirements:

  • Apache Tomcat 4.0.3 or newer
  • MySQL
  • Cpanel (although this isn't required to run ReserveSport, it is required to follow these directions)

You'll also need to know the following bits of information before you start:

  • What your site's current IP address is
  • What you site's domain name is
  • Your current site's userID and password
  • A basic understanding of what a DNS server is (see this or this)
  1. Sign up for the new hosting provider's service. Do not transfer the domain name over quite yet! Tell them your old site's domain name, but don't transfer the domain yet.
  2. Optional: If you want to make the transition more secure and less buggy, sign up for a Custom DynDNS account for your site at
    1. When the site is activated, put your current domain name into the DynDns Custom DNS account. Make it of type "dynamic" so we can change it back and forth through the testing process. (Eventually, you'll change this to "static"). Put your old IP address in here for now.
    2. Whoever currently holds your domain name registry, re-register the dns servers as the DynDNS dns servers. See the DynDNS How To for more info.
  3. Wait until those accounts have been made and are ready to go (depending upon the service, it could take between 1 hour and 2 days)
  4. Tell your users or post the news that the site will be down for a brief period of time.
  5. Download a backup of everything. To do this:
    1. Browse to
    2. Click on "Backup".
    3. Click on "Download Today's Home Backup" and save it.
    4. Click on "courts" and save it.
    5. You may want to download the Alias/Filter backups, but it's not necessary for the court operations.
  6. Upload all of the new things to your new site. To do this:
    1. Browse to your[1]/cpanel
    2. Click on "Backup".
    3. Upload your "Home Backup" by clicking on "Browse...", then pick your home backup file you just downloaded, and then click "Upload"
    4. Upload your SQL Database by clicking on "Browse...", then pick the database file you just downloaded (probably "courts.gz"), and then click "Upload".
    5. Register your database properly:
      1. Go back to the "Home" link on Cpanel. Depending upon the version of Cpanel you have, click either on "MySQL" or on "Manage MySQL" (only one will appear as a link).
      2. Under the section titled "Users", in the field where it says "UserName", type "root", and where it says "Password", pick a password, remember it, and type it. It might look like either of these two:

      3. Click the "Add User to Db" button.

      4. Copy the selected text, in the format of "jdbc:mysql://localhost/comreser_courts?user=comreser_root&password=" and add the password you just picked onto the end -- for example, yours may be "jdbc:mysql://localhost/comreser_courts?user=comreser_root&password=password".

      5. Click on "Home".
      6. Click on "File Manager".
      7. Click on the folder icon to the left of "www". (don't click on the name -- clicking on the name won't open it).
      8. Click on the folder icon next to "WEB-INF".
      9. Click on the folder icon next to "classes".
      10. Click on the NAME of "".
      11. In the upper right-hand corner, click on "Edit File".
      12. Change the text after "reservesport.databaseName=" to the name you just remembered up above, e.g. "jdbc:mysql://localhost/comreser_courts?user=comreser_root&password=password"
      13. If you want debugging errors to be sent to you, change the text after "reservesport.emailToSendBugsTo=" to your email address (Warning: you may get several hundred emails if the site goes down and people try to access it!)
      14. Click the "Save" button.
  7. Try out your site! Browse to[1]
  8. Does it work? If not, check that you've done everything correctly above. For tech support, talk to or your Hosting Provider.
  9. If it works, it's time to transfer your old domain name to your new service. You should do this at a low-access time (like late at night).
    1. At this point, your old site might have some old data that your new site does not. You may want to repeat steps 5 and steps 6 i, ii, and iv to update your new site to the old site's data.
    2. You can do this by:
      1. If you chose the DynDNS route mentioned above, go to and change your old IP address to the new. Test it after a few minutes, and go back to your old IP if it doesn't work!
      2. Else, re-register the name with whoever holds the registration for your domain name to the new IP.
Hopefully it works now! Good luck, and if you have any trouble, don't hesitate to contact us!

Contacting ReserveSport

For more information, requests for customizations, or tech support, you can contact us at:

Footnotes is the "IP Address" or the domain name of the new machine. You should have recieved this from your Hosting Service. The IP address would be in the form of (four numbers separated by periods). The domain name would be like ""

Apache Tomcat is the program which runs webapps and serves the files to the remote machines. It is freely available at

MySQL is a database program which will keep track of all of the reservations. MySQL is freely available at


January 2004