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.

mailparse php5

Discussion in 'E-mail Discussions' started by Garry_UK, Mar 13, 2007.

  1. Garry_UK

    Garry_UK Registered

    Joined:
    Feb 5, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I have installed PHP 5.2.1 (with this guide) working along side PHP 4.4.6, but I am trying to install mailparse into PHP5 and have not had much luck at it.

    I think it maybe installing it for PHP 4 and not PHP5 as it seems to be the same date all the time: 20020429 and I believe it should be 2004 or newer from what I have read on Auracle Support Forum.

    I have tried:

    Code:
    /bin/mount /tmp -o remount,exec 
    pecl install mailparse
    
    pico /usr/local/Zend2/etc/php.ini
    Added: extension=mailparse.so to the php.ini of PHP5
    
    service httpd restart
    /bin/mount /tmp -o remount,noexec
    I have also tried installing from the tar file I wget with the following commands

    Code:
    cd /home/src/mailparse-2.1.1
    /usr/local/php5/bin/phpize5
    ./configure
    make
    make install
    Then I believe I did

    Code:
    pico /usr/local/Zend2/etc/php.ini
    Changed: extension_dir to /usr/local/php5/lib/php/extensions/
    
    cp /usr/local/lib/php/extensions/no-debug-non-zts-20020429/mailparse.so /usr/local/php5/lib/php/extensions/
    But it still does not work

    I was wondering if anyone can help me get this installed ?

    Regards,
    Garry
     
  2. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    Is you have the mailparse.so file then you should be able to get it working. We copied are mailparse.so file to the default extension directory as defined in the php.ini then you have to add

    Code:
    extension=mailparse.so
    
    to your php.ini, run service httpd configtest if you get a Syntax Ok, restart apache.
     

Share This Page