简体   繁体   English

TYPO3 - 后端在CentOS上更改服务器后使用RSA登录

[英]TYPO3 – Backend Login with RSA after server changes on CentOS

I recently made a few server changes concerning and PHP-xml updates – unfortunately I can't really put my finger on what I exactly did. 我最近做了一些服务器更改和PHP-xml更新 - 遗憾的是我无法真正理解我的确切做法。

After the changes we have not been able to log into the backend again. 更改后,我们无法再次登录后端。 Only if we configure $TYPO3_CONF_VARS['BE']['loginSecurityLevel'] to be "normal" in the install tool. 仅当我们在安装工具$TYPO3_CONF_VARS['BE']['loginSecurityLevel']配置为“正常”时。

If I try to login with the settings switch to "rsa", I get an error, that my password is wrong. 如果我尝试使用设置切换到“rsa”,我收到一个错误,我的密码错误。

I cannot find any error logs referencing this problem in the php logs nor in the admin logs in the TYPO3 backend. 我找不到任何在php日志中引用此问题的错误日志,也没有在TYPO3后端的管理日志中找到。

I already traced the network connection with the "rsa" setting. 我已经使用“rsa”设置跟踪网络连接。 The browser makes a JavaScript request which does not fail and then sands a hash to the server in the HTTP header. 浏览器发出一个不会失败的JavaScript请求,然后在HTTP标头中向服务器打磨一个哈希。 I guess that procedure is working. 我想这个程序正在运作。

I guessed that it could be a malfunctioning OpenSSL configuration, but the install tool says: "PHP OpenSSL extension installed properly". 我猜测它可能是一个故障的OpenSSL配置,但安装工具说:“PHP OpenSSL扩展安装正确”。

Server specifications: 服务器规格:

  • CentOS 6.5 with SELinux in the Microsoft Azure cloud 带有SELinux的CentOS 6.5在Microsoft Azure云中
  • PHP Version is 5.5.20 PHP版本是5.5.20
  • Apache Version is 2.2.22 Apache版本是2.2.22
  • TYPO3 Version is 6.2.6 TYPO3版本是6.2.6

Has anybody an idea, what could be wrong? 有谁有想法,有什么可能是错的?

A friend of mine solved the issue. 我的一个朋友解决了这个问题。 We had a vhost constellation with each web root folder belonging to a different system user. 我们有一个vhost星座,每个web根文件夹属于不同的系统用户。 This resulted in an error on writing the php session (using a different system user on every project). 这导致编写php会话时出错(在每个项目中使用不同的系统用户)。

Set permission for the php session folder (only the folder not the files within!) to 777. The session folder belongs to a different non project specific system user (apache/www-data/whatever). 设置php会话文件夹的权限(只有文件夹而不是文件!)到777.会话文件夹属于不同的非项目特定系统用户(apache / www-data / whatever)。

chmod 0777 /var/lib/php/session

Now every system user for every project has the rights to write a session. 现在,每个项目的每个系统用户都有权编写会话。 The session files itself get more restrictive rights anyway. 无论如何,会话文件本身会获得更多限制性权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM