问题
Fresh install of Typo3 9.5LTS on the Ubuntu18 host. Went smoothly, new database, everything. Made up the backend user/password & when complete I'm sent to the backend to log in.
The login page seemingly just refreshes. If I use the wrong credentials it tells me they are wrong as it should. Going to sys_log I see "user logged in from x.x.x.x" but I'm not allowed further.
The redirects actually sent to the server are:
303 POST /typo3?loginProvider=....
303 GET index.php?route=/main&token=...
200 GET /typo3/ (returns the login page)
Any ideas on what to check appreciated, I know my way around servers but I'm new to typo3.
Thanks.
回答1:
Argon2i class is always available in TYPO3, however many php installations do not have a required library compiled into php. Thus the class will fail. If you want the most universal solution, here it is: use phppass in LocalConfiguration.php:
<?php
return [
'BE' => [
...
'passwordHashing' => [
'className' => 'TYPO3\\CMS\\Core\\Crypto\\PasswordHashing\\PhpassPasswordHash'
],
...
回答2:
Typical causes for this issue are:
- TYPO3 can't write into folder
typo3temp/(check owner and permissions) - Disk space or quota issues (disk space full or user exceeded its quota)
- Cookies can not be written (check PHP settings, file/directory permissions, etc.)
- You are trying to access the backend from different IP addresses (e.g. login from 10.10.10.1 and following requests from 10.10.10.2).
It is also recommended to check the webserver/PHP error log.
回答3:
Does your provider support the PHP encryption argon2i? Maybe that can cause the issue to not be able to login. You need to set your TYPO3 to use another encryption like e.g. bcrypt.
Just set:
$GLOBALS['TYPO3_CONF_VARS']['BE']['passwordHashing']['className'] = \TYPO3\CMS\Core\Crypto\PasswordHashing\BcryptPasswordHash::class;
More you can see here: https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/PasswordHashing/Index.html#configuration
来源:https://stackoverflow.com/questions/52799069/cant-login-to-backend-after-fresh-install-to-the-latest-typo3-9-5-lts