extension mailparse

microz

Verified User
Joined
Jun 10, 2009
Messages
124
Location
Santiago, Chile
Hi,

Me again with this problem :)

I'm trying to add mailparse extension to php-fpm7.0, I manually added to php.ini extension=mailparse.so, this works well... but I think when there is an update with custombuild the php.ini can be modified, then what's the correct way to add this php extension?

pd. i'm trying add extension based in this guide https://help.directadmin.com/item.php?id=252, but this not works adding line --with-mailparse

Any suggestion?

Thanks,
Edo
 
That guide is for modules...

Not sure about the folder name, but let's suppose that it is /usr/local/lib/php70/
You should have there a folder called php.conf.d, where you can create your custom file .ini with extension=mailparse.so in it, php should than load that file too and that file would not be overwritten updates.

Best regards
 
Hello,

To install PHP extension mailparse you should work the same way as described here for APC: https://help.directadmin.com/item.php?id=400
Since it's a PECL extension it should be installed either with pecl or phpize, and at the end you will have an *.so (which you already have and it's working well), a general instruction for installing PECL extensions can be found as well here: http://php.net/manual/en/install.pecl.phpize.php

All what you need to do to protect your changes in PHP is to create a 90-custom.ini file in a folder

Code:
cd `php --ini | grep "^Scan for additional" | awk -F':' '{print $2}' | xargs`/
touch 90-custom.ini
vi 90-custom.ini

and populate it with your own instructions. Then run
Code:
php --ini
to make sure that PHP sees and loads it.
 
Back
Top