Production Settings¶
To ensure a secure installation of TYPO3 on a production server, the following settings need to be set:
-
Admin Tools > Settings > Configuration Presets The "Live" preset has to be chosen to make sure no debug output is displayed. When using environment specific configurations, the recommended way is to specifically set the values for error/debugging configuration values instead of presets, like:
$GLOBALS['TYPO3_CONF_VARS']['SYS']['displayErrors'] = '0'; $GLOBALS['TYPO3_CONF_VARS']['SYS']['sqlDebug'] = '0'; $GLOBALS['TYPO3_CONF_VARS']['FE']['debug'] = '0'; $GLOBALS['TYPO3_CONF_VARS']['BE']['debug'] = '0';
Copied!These can be set for example through the Configuring environments.
HTTPS
should be used on production servers and$GLOBALS
should be set to['TYPO3_ CONF_ VARS'] ['BE'] ['lock SSL'] true
.- Enforce HSTS (Strict-Transport-Security header) in the web servers configuration.
- The
TYPO3_
environment variable should be set to a main context ofCONTEXT Production
(can be verified on the top right in the TYPO3 backend Application Information). It should be used to select the appropriatebase variant
for the target system in the Site Configuration. - Configure the TYPO3 logging framework to log messages of high severity including and above WARNING or ERROR
and continue to rotate log files stored in
var/
.log - Verify the file permissions are correct on the live system.