Help - Search - Members - Calendar
Full Version: Aspell/Pspell with PHP
The Planet Forums > Control Panels > cPanel/WHM
Lawbreak
Has anyone successfully installed PHP with --pspell? I've successfully installed aspell, along with the dictionary. I can do a spellcheck from the command line (i.e. aspell check test.txt).

However, I get the error:
PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any suitable word lists for the language-tag "

I have a dictionary file that's working fine from command line, but the pspell function in PHP doesn't see it.

Lots of people apparently have this problem, but I haven't found a satisfactory solution for my RHEL/Cpanel setup. Anyone?

Thanks,
Scott
Lawbreak
Okay...figured it out.

In case anyone runs into this problem, simply:

Create the file:
/usr/local/share/pspell/en-aspell.pwli

Add the following entry to the first line of the file:
/usr/lib/aspell/english

Scott
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.