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

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

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.

Solution:

#cd /
#find . -iname suhosin\.ini
./etc/php5/conf.d/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: http://www.organicdesign.co.nz/Configure_mail_server#suhosin.session.encrypt_option_value_is_incorrect

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.