php-pspell

arjena

Verified User
Joined
May 26, 2013
Messages
54
I'm trying to install/enable pspell on my server because my forum software requires it. So I followed instructions on the web, but I run into problems.
I'm trying
Code:
yum search php-
This is supposed to give me a list of all possible php extensions. In stead I get this:
Code:
fedora-review-php-phpci.noarch : Run phpci static analyzer on php packages
The same (of course) goes for yum install etc. I already did "yum update".
PHP is running fine (5.4.21)

How can I check if it maybe is already installed but not yet enabled?
 
I've moved the thread because it has nothing to do with DirectAdmin. It's an OS-specific issue.

For best results you should probably ask this queston on a forum specific to the OS version you have on your server.

On one of my CentOS 6 servers I get this:
Code:
# yum search php-
Loaded plugins: downloadonly, fastestmirror, security
Loading mirror speeds from cached hostfile
epel/metalink                                           |  13 kB     00:00     
 * base: mirrors.sonic.net
 * epel: epel.mirror.freedomvoice.com
 * extras: centos.mirror.ndchost.com
 * updates: centos.mirrors.hoobly.com
base                                                    | 3.7 kB     00:00     
epel                                                    | 4.2 kB     00:00     
extras                                                  | 3.4 kB     00:00     
updates                                                 | 3.4 kB     00:00     
epel/pkgtags                                            | 649 kB     00:00     
============================== N/S Matched: php- ==============================
fedora-review-php-phpci.noarch : Run phpci static analyzer on php packages

  Name and summary matches only, use "search all" for everything.
#


Jeff
 
How can I check if it maybe is already installed but not yet enabled?

Hello,

By the default packages named as php* are excluded by the following settings:

Code:
exclude=apache* httpd* mod_* mysql* MySQL* da_* *ftp* exim* sendmail* php* bind-chroot*

in /etc/yum.conf. That is done so nobody could break directadmin installation. If you need pspell you should re-compile PHP with

Code:
[B]--with-pspell[/B]

See this: http://www.php.net/manual/en/pspell.installation.php

Here is a link on a guide on how to add custom modules to php with custombuild: http://help.directadmin.com/item.php?id=252
 
Thanks. I did everything I could find about installing extra modules for php. But I must be doing something wrong.
When I manually install aspell and then do ./build php I get the error: "configure: error: Cannot find pspell". Even though a pspell directory is present: /usr/local/directadmin/custombuild/php-5.4.21/ext/pspell.
When I install pspell in a new directory (as per http://forum.directadmin.com/showthread.php?t=4513) and change --with-pspell to with pspell=/usr/local/spelling I get the same error.
So, in stead of --with-pspell I tried --enable-pspell. No luck...
I also tried removing php* from /etc/yum.conf. Still no luck with yum install.
It must be possible to add pspell but how remains a mystery to me...
 
Apologies for bumping this old thread, but I had the same problem and Google brought me here.

The solution that worked for me was to install aspell and aspell-devel with yum before recompiling PHP.
 
Back
Top