Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Aug 2003
    Posts
    20

    Default Aspell in PHP

    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. #2
    Member
    Join Date
    Aug 2003
    Posts
    20

    Default

    Never mind. I figured it out.

  3. #3
    Member netwrkr's Avatar
    Join Date
    Apr 2003
    Posts
    203

    Default

    Originally posted by SteveC
    Never mind. I figured it out.

    Would love to hear what you figured out.
    Thomas Petersen
    Myriad Network
    http://www.myriadnetwork.com

  4. #4
    Member
    Join Date
    May 2003
    Posts
    73

    Default

    I couldn't get it to compile until I removed that module.. what was your fix?

  5. #5
    Member
    Join Date
    Aug 2003
    Posts
    20

    Default

    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. #6
    Member
    Join Date
    Mar 2002
    Location
    San Francisco
    Posts
    257

    Default

    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....178#post122178

    Easy apache ends with this:

    Untarring curl......Done
    Untarring imap....Using RPM Backend: RPM version 4.2
    installed: imap-devel-2001a-18
    Using RPM Backend: RPM version 4.2
    Using RPM Backend: RPM version 4.2
    installed: pspell-0.12.2-16
    Using RPM Backend: RPM version 4.2
    installed: aspell-0.33.7.1-21
    Untarring php....Done
    ./configure --with-apxs=/usr/local/apache/bin/apxs --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 --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --enable-versioning --with-zlib
    ./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 --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --enable-versioning --with-zlib
    ./build all
    ./build install
    Check out the configure line:

    ./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 --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --enable-versioning --with-zlib
    Here it is now on my php info page:

    './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' '--enable-sockets' '--enable-track-vars' '--enable-versioning' '--with-zlib'
    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

    All I can see is:
    Under PHP's compile it has this:
    ...
    Configuring extensions
    ...
    checking for PSPELL support... no
    ...

    That tells me that your PHP/aspell don't have that support available. You may need to ask the PHP community or some PHP folks on our forums what could be causing whatever incompatibility issue you are having.
    I have pspell, pspell-devel, aspell and aspell-devel...

  7. #7
    Member
    Join Date
    Mar 2002
    Location
    San Francisco
    Posts
    257

    Default

    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. #8
    Member
    Join Date
    Mar 2002
    Location
    San Francisco
    Posts
    257

    Default

    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



  9. #9
    Registered User
    Join Date
    Jan 2004
    Posts
    2

    Default

    Quote Originally Posted by SteveC
    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.

    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. #10
    Member
    Join Date
    Mar 2002
    Location
    San Francisco
    Posts
    257

    Default

    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

Similar Threads & Tags
Similar threads

  1. aspell/pspell
    By Mini in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-15-2005, 11:51 AM
  2. Aspell/Pspell
    By Mini in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-02-2005, 04:20 AM
  3. Aspell upgrade
    By ksihota in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-21-2005, 11:09 PM
  4. aspell crashing my box.
    By sneader in forum cPanel and WHM Discussions
    Replies: 19
    Last Post: 07-27-2005, 02:17 PM
  5. difference between aspell and ispell?
    By sportbikes in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-23-2003, 02:11 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube