Sunday, December 18, 2011

Enable spell check for Round cube

Open /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php with your preferred text editor.
    Set the $rcmail_config['enable_spellcheck'] option (line 384) to true.
    Save the change to the main.inc.php configuration file.
    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.

    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.

No comments: