Home > Support > WebMail Support Home > Mailparse extension information

Mailparse extension information

The information in this article is largely based on information found at http://php.net/manual/en/install.pecl.php

You have two options for installing the Mailparse extension:

1. Use the pecl command if available:

$ pecl install mailparse

This will download the source for mailparse, compile, and install mailparse.so into your PHP extensions directory.

2. Use the phpize command:

Download the source code for the Mailparse extension and extract it then:

$ cd mailparse_src (replace mailparse_src with the path to the mailparse source on your system)
$ phpize
$ ./configure
$ make
# make install

A successful install will have created mailparse.so and put it into the PHP extensions directory.


After you have completed either of the two options above you will need to edit your php.ini and add the following line:

extension=mailparse.so

You may also need to add the path to your php extensions:

extension_dir=/path/to/php-extensions (replace with the path to your actual PHP extensions directory)

Restart apache and the Mailparse extension should now be loaded.

(Note: the above methods should work for installing any PHP pecl extension)
You can install the mailparse extension using YUM as well:

rpm -Uhv http://apt.sw.be/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

yum install php-pecl-mailparse php-mbstring

 

Search: