How to Upgrade

  1. Check Compatibility of installed plugins
  2. Read the upgrade instructions
  3. Stop the Sonar
  4. Down and extract the SonarQube from
  5. Update the contents of and wrapper.conf on /sonar-3.7.2/conf
  6. Copy the plugins from old sonar
  7. Backup the database
  8. Start the webserver [NEW_SONARQUBE_HOME/bin/<SYSTEM>/sonar start]
  9. Browse to http://localhost:9000/setup and follow the instruction
  10. Start sonar as a service
# rc file for SonarQube
# chkconfig: 345 96 10
# description: SonarQube system (
# Provides: sonar
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: SonarQube system (
# Description: SonarQube system (
/usr/bin/sonar $*
Register SonarQube at boot time (Ubuntu, 32 bit):
sudo ln -s $SONAR_HOME/bin/linux-x86-32/ /usr/bin/sonar
sudo chmod 755 /etc/init.d/sonar
sudo update-rc.d sonar defaults
Register SonarQube at boot time (RedHat, CentOS, 64 bit):
sudo ln -s $SONAR_HOME/bin/linux-x86-64/ /usr/bin/sonar
sudo chmod 755 /etc/init.d/sonar
sudo chkconfig --add sonar

Tuning the Web Server

  By default, SonarQube is configured to run on any computer with a simple Java JRE. The first thing to do when installing a production instance is to use a Java JDK and activate the server mode by uncommenting the following line in <install_directory>/conf/wrapper.conf:
To change the Java JVM used by SonarQube, simply edit <install_directory>/conf/wrapper.conf and update the following line: