PHP Mailparse PECL extension in directadmin Php 7.2
Step 1
login to ssh
and then run this command
curl http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/r/re2c-0.14.3-2.el7.x86_64.rpm --output re2c-0.14.3-2.el7.x86_64.rpm
- Install the RPM
rpm -Uvh re2c-0.14.3-2.el7.x86_64.rpm
Step 2
Later version PHP Mailparse is 3.0.3
and then run
pecl install mailparse-3.0.3
step 3
after installation
You should add "extension=mailparse.so" to php.ini
location of php.ini
/usr/local/lib
step 4
restart the apache service
systemctl restart httpd.service