This article is machine translated.
In your Internet browser, open the URL of your Contao installation and hang in the
/contao/installback to start the install tool.
Accept the license and assign a password.
The Contao install tool cannot create new databases itself because most shared hosting packages only allow this with the management software (e.g. Confixx, Plesk or cPanel). So, go to the management interface of your server and create a new database there. Then enter the credentials for the database in the Contao install tool.
Host: Here you enter the domain or IP address of the database server.
Port number: Here you can change the port number of the database server.
Username: Here you enter the username for your database.
Password: Enter the password here.
Database: Here you enter the name of the database.
After you have saved the database access data, the install tool connects to the database and compares the tables with the current version of Contao. If an update is necessary, the install tool automatically presents you a list of changes that you can confirm or reject.
Usually, you should accept the offered changes so that your tables are always up-to-date and Contao does not try to access missing fields later. For a new installation, the list of changes is usually very long since all tables have to be created again first.
If you have multiple applications sharing a database on your server, the install tool offers you the possibility to “clean up” the tables of the other applications that are not needed.
Although it is technically possible to run multiple applications in one database, you should use a separate database for each application.
At this point you can import a
.sqlfile from the
/templatesdirectory. This will delete all existing data! If you just want to import a theme instead, please use the theme manager in the Contao back end.
When you import a template, existing data is overwritten!
If you did not import a template, for example if you want to create a new website with Contao, you need to create an administrator user that you can use to log in to the Contao back end later.
Username: Here you enter the username of the administrator.
Name: Enter the first and last name of the administrator here.
e-mail address: Here you enter the email address of the administrator.
Password: Here you set and confirm the password of the administrator.
After you have created the administrator user, the installation of Contao is complete
and the link at the bottom right brings you to the backend.
There are two reasons why you might want to reset the install tool:
The install tool is protected against brute force attacks and is automatically locked if an incorrect password is entered more than three times in a row.
You have three options to unlock the install tool:
Via the Contao Manager by clicking on “Unlock install tool” under System maintenance.
From the command line by issuing the following command in the root directory of your Contao installation:
php vendor/bin/contao-console contao:install:unlock
By deleting the file
install_lockin the directory
/varon the web server.
A forgotten password can be reset in the local configuration
Search for the line with the statement
$GLOBALS['TL_CONFIG']['installPassword'] = '…';and remove it completely from the file. Then you can set a new password when you start the install tool again.