Enabling Spell Check for Roundcube

Initial considerations

Roundcube's spell check feature uses a Google service to spell check messages. This is a major privacy issue for many system administrators.

How do I enable spell check for Roundcube?

  1. Open /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php with your preferred text editor.
  2. Set the $rcmail_config['enable_spellcheck'] option (line 384) to true.
  3. Save the change to the main.inc.php configuration file.
  4. Run the /usr/local/cpanel/scripts/makecpphp script. This script will rebuild cPanel's internal PHP with an OpenSSL module.

Troubleshooting

If you attempt to enable spelling checking with a third-party spell checking service without completing step 4, you will see the following error in /var/cpanel/roundcube/log/errors.

[21-Jul-2011 09:30:58] PHP Warning:  fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to ssl://www.google.com:443 (Unable to find the socket transport &quot;ssl&quot; - did you forget to enable it when you configured PHP?) in /usr/local/cpanel/base/3rdparty/roundcube/program/steps/utils/spell_googie.inc on line 48

If spell check does not seem to function properly, make sure that both OpenSSL and socket modules are enabled for PHP. This is because the spell checking plugin attempts to communicate with Google over SSL. If OpenSSL and socket modules are not enabled for PHP, you will see an entry in /usr/local/cpanel/base/3rdparty/roundcube/logs/errors that resembles the following:

PHP Warning:  fsockopen() [function.fsockopen]: unable to connect to ssl://www.google.com:443 
  (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in <your_path>/program/steps/mail/spell.inc on line 34 

If you are using TinyMCE, you must enable the Curl module for PHP. If you attempt to use the TinyMCE HTML editor without enabling Curl for PHP, you will receive the following error:

Could not execute AJAX call, server didn't return valid a XML.

Topic revision: r6 - 02 Aug 2011 - 14:47:40 - Main.JustinSchaefer
AllDocumentation/WHMDocs.RoundcubeSpellCheck moved from Sandbox.RoundcubeSpellCheck on 02 Aug 2011 - 14:47 by Main.JustinSchaefer - put it back
 

Copyright © cPanel 2000–2011.