You are browsing the documentation for iTop 2.7 which is not the current version.

Consider browsing to iTop 3.2 documentation

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 unattened_install.php script (see below)

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.

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
Since 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.
2_7_0/advancedtopics/automatic_install.txt · Last modified: 2022/04/22 10:59 (external edit)
Back to top
Contact us