On the Control Panel, choose System.
Click the Environment tab.
Type IWS_SERVER_HOME in the Variable field and the path to your server root in the Value field.
Click Set.
Click OK.
In order to perform all commands, you need to have write permissions to the file server.xml where the virtual server information is stored.