Error message: Wrong ‘suhosin.session.encrypt’ option value and it wasn’t possible to set it to required value (0). Check your PHP configuration

Scenario: It happened while running the web installer of roundcube on a server which had i-mscp installed on it.


#cd /
#find . -iname suhosin\.ini

Now find out the required value:

#grep -in 'suhosin\.session\.encrypt' ./etc/php5/conf.d/suhosin.ini
50:;suhosin.session.encrypt = on

Change the “;” (semicolon) in front of line 50, and change “on” to “off”.

Reload apache2:

#service apache2 restart
Restarting web server: apache2 ... waiting ....

Now, retry the roundcube installer. It works now.

Background info: From:

suhosin.session.encrypt option value is incorrect

One issue is that on some systems the Roundcube installation procedure gives an error saying that the suhosin.session.encrypt option value is incorrect (it should be disabled) even though it says it is disabled in php.ini. The suhosin settings have their own php.ini configuration file in /etc/php5/apache2/conf.d/suhosin.ini which overrides the settings in the default php.ini. Change the line containing the suhosin.session.encrypt option in this file to disable it (and don’t forget to uncomment the line by removing the leading semicolon), then restart the web server and run the Roundcube installer again.

Note the difference in file path of suhosin.ini.