You should be able to download the mailparse source, comment out the HAVE_MBSTRING
test in mailparse.c
(near line 34), and create it normally.
Here is what I did in Ubuntu 16.04 (suppose 'sudo' if necessary):
cd /tmp apt-get install php7.0-dev pecl download mailparse tar xvzf mailparse-3.0.2.tgz cd mailparse-3.0.2 phpize ./configure sed -i \ 's/^\(#error .* the mbstring extension!\)/\/\/\1/' \ mailparse.c make make install
Then you need to enable the mailparse.so
module in your PHP configuration.
For Ubuntu 16.04 and PHP-FPM you should use:
echo "extension=mailparse.so" > \ /etc/php/7.0/fpm/conf.d/30-mailparse.ini service php7.0-fpm reload
source share