You are not logged in.
Aspell does not seem to function in the nightly demo or download.
Please advise as to how to configure aspell on a shared server.
Offline
I'll look at the demo.
For configuring on a shared server, do you have aspell installed and is PHP capable of calling it?
James Sleeman
Offline
I'll look at the demo.
For configuring on a shared server, do you have aspell installed and is PHP capable of calling it?
My hosting company DOES NOT have aspell installed as a default. I followed the instructions on the wiki to download and extract the file to the SpellChecker/aspell directory. Now, if I run the example file from the nightly build on my server, the spell checker loads but gives me an alert that no words are mispelled even if the document contains obvious errors. Additionally, no dictionaries appear in the list. Also, my host requires that all cgi scripts be placed in a special directory.
-MK
P.S. My host is globat.com
Offline
You must use the PHP backend with the downloaded copy of aspell, aditionally, you'll probably have to adjust stuff to your host. I don't much like your chances getting it running with Globat though, I don't know if they allow calling custom executables from PHP.
James Sleeman
Offline
You must use the PHP backend with the downloaded copy of aspell, aditionally, you'll probably have to adjust stuff to your host. I don't much like your chances getting it running with Globat though, I don't know if they allow calling custom executables from PHP.
How do I set up SpellChecker for the PHP backend? I have (or can easily get [24/7 support]) config information for my server. I checked, and they do allow calling custom executables from PHP.
Offline
gogo wrote:You must use the PHP backend with the downloaded copy of aspell, aditionally, you'll probably have to adjust stuff to your host. I don't much like your chances getting it running with Globat though, I don't know if they allow calling custom executables from PHP.
How do I set up SpellChecker for the PHP backend? I have (or can easily get [24/7 support]) config information for my server. I checked, and they do allow calling custom executables from PHP.
My host DOES have aspell installed (The support person apparently was mistaken). I discovered that, with a few chmods, I could get spellchecker to run in the example; but not in any other instance of Xinha. Help!!!
Offline
why in the example but not in any other instace?
what errors do you get?
Niko
Offline
...try setting _editor_url absolute, not relative
Niko
Offline
...try setting _editor_url absolute, not relative
That fixed it. Thanks. One other problem though, when spellchecker comes across an image, it spellchecks the tag as text.
Offline
One other problem though, when spellchecker comes across an image, it spellchecks the tag as text.
please submit a ticket
Niko
Offline
I am having the same trouble, nothing is being shown as mispelled. Also, there are no dictionaries populating the dropdown list, it is long and empty. I made my editor path absolute, and nothing changed. I cleared my cache, etc. no good.
Then, I looked at the example on this site, and it does the same thing!
Offline
...try setting _editor_url absolute, not relative
In what file do you set this?
Offline
like described in the newbie guide!
the file where the textarea is...
Niko
Offline
ah I tried that with no luck. Would the compiled download not work with Gentoo? That is what im running.
Offline
The SpellChecker PHP logic comes pretty out of the box, but you need to verify the config file, aspell_setup.php.
Different hosts install in different places, even if the default should be the one already in the config file.
If the path is correct, you need to verify if your host allow the shell_exec() command, which the spell-check-logic.php is relying on. Of this is not the case you will need to find out what commands are open, maby exec(), and rewrite the logic to work with this one.
As a final note, if you are on a system with safe_mode activated you are in for big problems, since the SAFE_MODE_EXEC_DIR value probably isnt configured, and if so not in your favour and without Aspell. You would also need a OPEN_BASEDIR defined for your purposes if you want Aspell to work with safe_mode.
And finally, if your on a system with safe_mode not active, and the open_basedir value is set, you would need this value to include the paths on the server to the different folders you need access to, typically /tmp and /usr/bin/ (If Aspell is installed here).
Hope this clarifies
Offline
Im on a dedicated server so unless shell_exec() is off by default I should be ok, how can I check this? Is there a simple way to test aspell outside xinha to see if the compiled version is even working correctly?
I dont receive any specific errors so I believe the path is correct.
Thanks for your help!
Will
Offline
One simple way to check this would be to write your own simple PHP script which utilizes the shell_exec() command and check it in your browser for PHP warnings or errors. If your dont get this yoyu can safely rule out that one.
A simple way to check, just grabbed it from php.net
<?php
$output = shell_exec('ls -lart');
echo "<pre>$output</pre>";
?>
Your could also add this to check for safe_mode
<php
echo '"' . ini_get('safe_mode') . '"';
?>
From the last example your would want no positive boolean value in between the ". That would mean safe_mode is active, and that shell_exec is disabled.
Offline
inside spell-checker.js there are these variables:
HTMLArea.Config.prototype.SpellChecker = { 'backend': 'php', 'personalFilesDir' : '', 'defaultDictionary' : 'en_GB' };
do any of those need to be changed?
Offline
One simple way to check this would be to write your own simple PHP script which utilizes the shell_exec() command and check it in your browser for PHP warnings or errors. If your dont get this yoyu can safely rule out that one.
A simple way to check, just grabbed it from php.net
<?php $output = shell_exec('ls -lart'); echo "<pre>$output</pre>"; ?>
Your could also add this to check for safe_mode
<php echo '"' . ini_get('safe_mode') . '"'; ?>
From the last example your would want no positive boolean value in between the ". That would mean safe_mode is active, and that shell_exec is disabled.
The $output worked for me.
The safemode test produced
""
Offline
I have aspell working command line but not from xinha. Here is a test from my command line execution:
aspell -a --lang=en_GB --dict-dir=/usr/lib/aspell/ --mode=none --add-filter=sgml --home-dir=/var/www/site/editortest/may01/plugins/SpellChecker/personal_dicts/dict4276f21b6006d < /tmp/spell_fm97F4
@(#) International Ispell Version 3.1.20 (but really Aspell 0.50.5)
# tefdsafdsafsdafsdast 1
& teh 13 0: the, Te, tech, Th, eh, th, tea, tee, Ted, tel, ten, TeX, Tex
Offline
Have you done a "whereis aspell" and assured youre using the correct path, since its obviously working and shell_exec also is working you should not have theese problems. Hovwever you could also check that the en_GB dictionary is installed, as this is the default dictionary. This you can change, you mentioned the config file earlier up in this thread.
Offline
well I believe im using the correct paths. What page can i put an echo on to see it output what paths its building?
Offline