:: Version 3.2.0 ::

Automated installation

The installation of iTop is generally performed interactively using the “setup” page. However once information about the desired configuration has been collected by the setup page, the actual installation process is fully unattended and therefore can be automated.

In order to automate the iTop installation you'll need:

  • An XML response file containing the desired configuration options
  • The unattended_install.php script (see below)
If you use this for upgrading an existing iTop, be sure to purge APCu cache, as this script has no access to do this for your


iTop directory and files have been copied to your server (Install iTop)

Response file

The response file is an XML file containing all the answers / choices to configure the application.

An example of the response file is the following:

<?xml version="1.0" encoding="UTF-8"?>
                <copies type="array">
                <language>FR FR</language>
        <language>IT IT</language>
        <selected_modules type="array">

Generating the reponse file

The response file can be created manually using a text editor or generated by running the interactive setup with the additional parameter option[generate_config]=1.

This is achieved by adding ?option[generate_config]=1 at the end of the URL to specify this extra parameter. This gives the following sample URL:


Then run the setup as usual, but instead of launching the installation, stop at the “summary” step, and click on “XML config file” to open this section of the summary. You can then copy/paste the response file:

Generating the response file

Another way to get a response file is to retrieve the installation.xml file from an existing iTop installation. Each time the iTop installation completes, it creates a file install-<date>-<revision>.xml in the log directory of an existing iTop installation. You can use this file for automatically installing another instance of iTop with the exact same parameters.

Warning, a current bug causes the sample_data XML node to always be empty, whatever was chosen during setup ! Before using the XML file, beware to fix this node by adding 0 or 1 value.
For security reason, passords <pwd> are replaced by **removed**, you need to change them with the real value.

Unattended installation script

To automate the installation, use the unattended-install.php file in the itop-toolkit-community repository.

Execution of the unattended installation

Copy the unattended_install.php script in a toolkit directory at the root of iTop files. Then launch the script with the following command:

  php unattended_install.php  --response_file=default-params.xml


  • default-params.xml is the reponse file containing your desired settings for the installation

If you are performing an installation, you can add the clean option, by using this option, you ask the unattended install to erase both the directory and database prior executing the installation :

  php unattended_install.php  --response_file=default-params.xml --clean=1
Because the installation runs from the command line, make sure that the current user has enough rights to access the different locations and that the web server will be able to access the files and directories created during the scripted installation. In order to exactly emulate the behavior of the interactive installation it may be a good practice to run this installation from the user account used for running the web server process.

use-itop-config option

When iTop is already installed, your configuration file already exists and is up to date regarding DB and app_root_url settings. In that case, maintaining this options is redundant with unattended XML file.

With below option, unattended-install.php will read these settings directly from iTop configuration file:

php unattended_install.php  --response_file=default-params.xml --use-itop-config=1
3_2_0/advancedtopics/automatic_install.txt · Last modified: 2024/06/20 17:28 (external edit)
Back to top
Contact us