宝塔安装mail-parse

git clone https://github.com/php/pecl-mail-mailparse.git
cd pecl-mail-mailparse
phpize
./configure
./configure --enable-mailparse --with-php-config=/usr/bin/php-config
./configure --enable-mailparse --with-php-config=/www/server/php/56/bin/php-config
sed -i 's/#if\s!HAVE_MBSTRING/#ifndef MBFL_MBFILTER_H/' ./mailparse.c
make
make install

你可能感兴趣的:(php)