Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-22-2011, 03:06 AM
|
#1
|
Member
Registered: Nov 2006
Distribution: Ubuntu server and Ubuntu Mate
Posts: 45
Rep:
|
Unable to get Squirrelspell plugin to work
Hello all,
I have built an Ubuntu 10.10 server for use as an in-house mail server, using Postfix, Dovecot and Squirrelmail. It seems to be working great, except I am unable to get the Squirrelspell plugin to work. I ran the Squirrelmail conf.pl, selected plugins and then selected Squirrelspell, but it does not work when composing an email and clicking on Check Spelling. It simply reports no errors are found, even when I intentionally make errors.
I've looked at the sqspell_config.php file and believe I have it configured correctly. I verified I have Aspell installed and and have it as the designated app in the sqspell_config.php file. I've also tried ispell with the same results.
I've done Google searches as well as searches here, but have not found my solution. Any help would be greatly appreciated.
Thanks!
KP
|
|
|
06-22-2011, 07:23 AM
|
#2
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
Hi,
Does aspell (or ispell) works from command-line? Run
Code:
aspell check somefile.txt
where in somefile.txt you make some errors and see if it does spell checking
Regards
|
|
|
06-22-2011, 11:32 AM
|
#3
|
Member
Registered: Nov 2006
Distribution: Ubuntu server and Ubuntu Mate
Posts: 45
Original Poster
Rep:
|
Thanks bathory for the suggestion. I tried what you said and it does work correctly from the command line, so I'm sure I've made a configuration error in Squirrelspell.
KP
|
|
|
06-22-2011, 02:34 PM
|
#4
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
Hi,
There is nothing special to configure for the spellcheck plugin. You just enable it, and that's all.
According to the INSTALL file of the plugin:
Quote:
Modify the sqspell_config.php file making sure you have ispell or aspell available on your system and located in PHP's path. The squirrelspell doesn't check for that and if it is not available, you're just going to get a "No errors found" message every time. Quite pleasing, but not very useful.
|
if aspell/ispell is in $PATH everything is ok. Otherwise you'll get no spelling errors like you do.
Maybe the $PATH for php or the apache user (www-data for ubuntu) do not have /usr/bin in $PATH (unlikely), so you may use the full path in sqspell_config.php
Code:
<snip>
$SQSPELL_APP = array( 'English' => '/usr/bin/aspell -a',
<snip>
Regards
|
|
|
06-22-2011, 04:47 PM
|
#5
|
Member
Registered: Nov 2006
Distribution: Ubuntu server and Ubuntu Mate
Posts: 45
Original Poster
Rep:
|
Thanks!
I went in to the config and added the full path to aspell, but no joy. For whatever reason, it just doesn't work. Very odd situation.
KP
|
|
|
06-22-2011, 05:30 PM
|
#6
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
Indeed, it's odd. It should work as soon as you enable it.
What version of squirrelmail are you using and how did you install it?
Also check the apache error_log to see if you find anything.
|
|
|
06-22-2011, 05:58 PM
|
#7
|
Member
Registered: Nov 2006
Distribution: Ubuntu server and Ubuntu Mate
Posts: 45
Original Poster
Rep:
|
I finally figured out the problem and it's so stupid on my part. Turns out, I needed to go into the options-spellchecker options in each user account and select "Set up international dictionaries" followed by selecting a default dictionary and saving it. Wish there was a way to set a default for everyone instead of having to log into every account individually and set the default. Either way, at least I know the problem now. Thanks for all your advice!
Ken
|
|
|
06-22-2011, 06:14 PM
|
#8
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
Quote:
Wish there was a way to set a default for everyone instead of having to log into every account individually and set the default.
|
I guess this is what
Code:
$SQSPELL_APP_DEFAULT = 'English';
does in sqspell_config.php
Anyway glad to see you've made it. You may mark the thread "Solved" from Thread Tools.
Regards
|
|
|
06-22-2011, 06:17 PM
|
#9
|
Member
Registered: Nov 2006
Distribution: Ubuntu server and Ubuntu Mate
Posts: 45
Original Poster
Rep:
|
Will do. Thanks so much for your help!
Ken
|
|
|
All times are GMT -5. The time now is 02:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|