The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Aspell in PHP

Discussion in 'cPanel Developers' started by SteveC, May 23, 2004.

  1. SteveC

    SteveC Member

    Joined:
    Aug 30, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Apparently pspell doesn't work in the Update Apache recompile, so that's out. What I need is to enable support of Aspell in PHP so I can use it to spell check submitted web forms. I have only ever recompiled Apache/PHP via the WHM. How can I add Aspell support to PHP? I'm a newbie when it comes to recompiling. Any help would be greatly appreciated. Thanks!
     
  2. SteveC

    SteveC Member

    Joined:
    Aug 30, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Never mind. I figured it out.
     
  3. netwrkr

    netwrkr Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    16

    Would love to hear what you figured out.
     
  4. kmsd

    kmsd Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    I couldn't get it to compile until I removed that module.. what was your fix?
     
  5. SteveC

    SteveC Member

    Joined:
    Aug 30, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    You can't recompile it with pspell/aspell with cPanel/WHM. You have to upload the PHP source to your server and compile it the old fashioned way.
     
  6. denisdekat09

    denisdekat09 Well-Known Member

    Joined:
    Mar 2, 2002
    Messages:
    265
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Francisco
    Hi,

    I just found out same thing, I have pspell and psell-devel and it will not compile it. I get the right results but will not load no matter what....

    I posted here:
    http://forums.cpanel.net/showthread.php?s=&postid=122178#post122178

    Easy apache ends with this:

    Check out the configure line:

    Here it is now on my php info page:

    Shows no error as you can see above but it devours all these options!!!!!!!!!!!!!!!!!!!!!! I would acuse of easyapache not working right ;) How can it output a different confiugre line and restart and then another shows up? These four are missing though they show compiled:

    --with-pspell
    --with-ttf
    --with-freetype-dir=/usr
    --enable-gd-native-ttf

    No errors prior also!!!!! I have aspell installed and so on...

    Been only trying with 4.3.3 as this works great on the other boxes....

    Not sure if anyone ran into this also....


    My systems is:

    WHM 9.4.0 cPanel 9.4.1-C53
    RedHat 9 - WHM X v3.1.0

    Tried release also... no luck

    I was told this also

    I have pspell, pspell-devel, aspell and aspell-devel...
     
  7. denisdekat09

    denisdekat09 Well-Known Member

    Joined:
    Mar 2, 2002
    Messages:
    265
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Francisco
    root@server02 [/home/cpapachebuild/buildapache]# /scripts/ensurerpm --safe pspell
    Using RPM Backend: RPM version 4.2
    installed: pspell-0.12.2-16
    root@server02 [/home/cpapachebuild/buildapache]# /scripts/ensurerpm --safe aspell
    Using RPM Backend: RPM version 4.2
    installed: aspell-0.33.7.1-21

    Seems like manual configure will have to do, bummer...
     
  8. denisdekat09

    denisdekat09 Well-Known Member

    Joined:
    Mar 2, 2002
    Messages:
    265
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Francisco
    ran easyapache by hand instead of whm and all worked good :)

    './configure' '--prefix=/usr' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysql=/usr' '--enable-discard-path' '--with-pear' '--with-pspell' '--enable-sockets' '--enable-track-vars' '--enable-versioning' '--with-zlib'

    WHM did not take any of my changes, just ran all the recompile and nothing


    :confused: :confused: :confused: :confused: :confused: :confused:
     
  9. dalbregio

    dalbregio Registered

    Joined:
    Jan 21, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1

    I am a total newbie to this. Could you please explain how you were able to compile ASpell into PHP.

    I am running on FreeBSD. Any help would be great!

    Thanks
     
  10. denisdekat09

    denisdekat09 Well-Known Member

    Joined:
    Mar 2, 2002
    Messages:
    265
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Francisco
    Here is how I do it...

    First under software I make sure I have the pspell RPMs installed.

    Then, run /scripts/easyapache and select versions 6 (you can update apache via whm it is similar and easier).

    Under the php submenu select the pspell module, and compile away...

    I found that when I do this it tends to work for me :)


    GL & HTH :D
     
Loading...

Share This Page