1.3 Post-installation steps
Prev | 1. Installing Virgo Web Server | Next

## 1.3 Post-installation steps

### Set environment variable variables

#### JAVA_HOME

The Virgo Web Server uses the `JAVA_HOME` environment variable to locate the `java` executable. Configure this environment variable to point to the home directory of the Java 5 or Java 6 installation on your computer.

#### SERVER_HOME

As a convenience it is recommended that you create an environment variable that points to the Virgo Web Server installation directory. Note that the Virgo Web Server does not require that such an environment variable has been set. This variable may have any name of your choosing. The Virgo Web Server’s documentation assumes that the variable is named `SERVER_HOME`.

##### Linux

Edit the `.profile` file in your home directory to add the `SERVER_HOME` and `JAVA_HOME` environment variables. For example, if you installed into `/opt`:

    export SERVER_HOME=/opt/virgo-web-server-2.1.0.M02-incubation/
    export JAVA_HOME=/user/java/jdk1.6.0_17
    export PATH=$JAVA_HOME/bin:$PATH

##### Microsoft Windows

This section shows how to add `SERVER_HOME` as a system variable on Windows. Follow the same procedure to add or update the `JAVA_HOME` environment variable.

From the Start menu, open the Control Panel and double-click on ‘System’.

Click the ‘Advanced’ tab and select ‘Environment Variables’. Next, click the ‘New’ button in the ‘System Variables’ section.

This will display the ‘New System Variable’ window. Enter `SERVER_HOME` as the ‘Variable name’ and the installation directory as the ‘Variable value’. Click OK.

### Microsoft Windows - Troubleshooting

When starting the Virgo Web Server on some variants of Windows you might encounter a problem with file permissions. The error looks like this.

    C:\dev\virgo-web-server-2.0.1.BUILD-20091208094124>bin\startup.bat
    Error: Exception thrown by the agent : java.io.FileNotFoundException: C:\dev\...\config\
    		org.eclipse.virgo.kernel.jmxremote.access.properties (Access is denied)

If the VWS starts at this point you can skip this section and carry on. Otherwise, go to the ‘config’ directory of your install in Windows Explorer and you will be able to confirm the problem, an incorrect file ownership.

Right click on the ‘org.eclipse.virgo.kernel.jmxremote.access.properties’ file and view its properties, then select the ‘Security’ tab.

Within the security page select the ‘Advanced’ options. On the ‘Owner’ tab, choose the owner that you are trying to run the VWS as and select ‘Apply’.

Once this is done select ‘OK’ to return to the ‘Security’ tab and now add the owner to the list of groups and users that have permission to edit the file.

Once all these steps are complete you can proceed to start the VWS.

    C:\dev\virgo-web-server-2.0.1.BUILD-20091208094124>bin\tstartup.bat
    [2009-12-08 13:09:09.545] startup-tracker              <KE0001I> Kernel starting.

Prev | Up | Next
1.2 Installing from the ZIP Download | Home | 2. Starting and Stopping Virgo Web Server