I've read the docs, searched the archives and google, but I just can't seem to get squirrelspell working on my server. I've tried to configure it based on the install instructions for both ispell and aspell but neither works. I am getting some errors in the log file, which I will include below. When checking for spelling errors I always get "No errors found" even though there are obvious ones.

Does anyone know what I'm doing wrong? I know I need to upgrade my OS, Apache, and PHP versions, but I think I do meet the minimum requirements for SquirrelMail and SquirrelSpell. Everything else seems to work fine.


Here is my environment:

OS = OpenBSD 3.5
SquirrelMail = 1.4.4
SquirrelSpell = 0.3.1
PHP = (From OBSD ports) 4.3.5RC3
Apache = 1.3.29
Aspell = (From OBSD ports) 0.50.4.1p1
Ispell = (From OBSD ports) 3.2.06


Here are the errors that I am seeing in /var/www/logs/error_log when I use the plugin:


[Fri Apr 8 15:02:17 2005] [error] PHP Notice: Undefined index: in /var/www/htdocs/webmail/plugins/squirrelspell/modules/check_me.mod on line 81
[Fri Apr 8 15:02:17 2005] [error] PHP Warning: fopen(../../attachements//7f1c7e4606239c4f9221689a1a7a0382): failed to open stream: No such file or directory in /var/www/htdocs/webmail/plugins/squirrelspell/modules/check_me.mod on line 100
[Fri Apr 8 15:02:17 2005] [error] PHP Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/htdocs/webmail/plugins/squirrelspell/modules/check_me.mod on line 101
[Fri Apr 8 15:02:17 2005] [error] PHP Warning: fclose(): supplied argument is not a valid stream resource in /var/www/htdocs/webmail/plugins/squirrelspell/modules/check_me.mod on line 102
cat: ../../attachements//7f1c7e4606239c4f9221689a1a7a0382: No such file or directory
[Fri Apr 8 15:02:17 2005] [error] PHP Warning: unlink(../../attachements//7f1c7e4606239c4f9221689a1a7a0382): No such file or directory in /var/www/htdocs/webmail/plugins/squirrelspell/modules/check_me.mod on line 110



Here is my sqspell_config.php configuration file (sans comments):

<?php

require_once(SM_PATH . 'functions/prefs.php');

global $data_dir;

sqgetGlobalVar('username', $username, SQ_SESSION);

$SQSPELL_APP = array("English" => "/usr/local/bin/aspell -a");

$SQSPELL_WORDS_FILE = "$data_dir/$username.words";

$SQSPELL_WORDS_FILE =
  getHashedFile($username, $data_dir, "$username.words");

$SQSPELL_EREG = 'ereg';

?>


I tried testing my aspell executable and it works:

# echo tesst | /usr/local/bin/aspell -a
@(#) International Ispell Version 3.1.20 (but really Aspell 0.50.4.1)
& tesst 24 0: test, tests, testy, Tessy, Tess, toast, Tessa, Tessi, deist, teats, taste, tasty, tersest, DST, yeast, teas, teased, teat, tester, toasty, East, east, rest, yest



My attachements folder is writable:

# pwd
/var/www/htdocs/webmail/attachments
# ls -la
total 6
drwxrwxr-x   2 www   www  512 Apr  7 15:20 .
drwxr-xr-x  17 root  www  512 Apr  7 15:19 ..
-rwxr-xr-x   1 root  www   14 Apr  7 15:20 .htaccess


PHP safe mode is turned off in php.ini:

"safe_mode = Off"


I'm not using Apache chrooted. My "/etc/rc.conf" configuration for Apache is:


httpd_flags="-u -DSSL"


My www user is set to shell "/sbin/nologin", though I tried setting it to "/bin/sh" with no difference.


# cat /etc/master.passwd | grep www
www:*:67:67::0:0:HTTP server:/var/www:/sbin/nologin


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click -- squirrelmail-users mailing list Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines List Address: squirrelmail-users@lists.sourceforge.net List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to