./configure –prefix=/usr/local/php –with-config-file-path=/usr/local/php/etc –with-config-file-scan-dir=/usr/local/php/etc/php.d –with-fpm-user=www –with-fpm-group=www –enable-fpm –disable-fileinfo –enable-mysqlnd –with-mysqli=mysqlnd –with-pdo-mysql=mysqlnd –with-iconv-dir=/usr/local –with-freetype –with-jpeg –with-zlib-dir=../zlib –enable-xml –disable-rpath –enable-bcmath –enable-shmop –enable-exif –enable-sysvsem –with-fpm-systemd –enable-sysvshm –with-webp –with-xpm –enable-sysvmsg –enable-inline-optimization –with-curl=/usr/local/curl –enable-mbregex –enable-mbstring –with-password-argon2 –with-sodium=/usr/local –enable-gd –with-openssl=/usr/local/openssl –with-mhash –enable-pcntl –enable-sockets –with-xmlrpc –enable-ftp –enable-intl –with-xsl –with-gettext –with-zip=/usr/local –enable-soap –enable-opcache –disable-debug

make ZEND_EXTRA_LIBS=’-liconv’

systemctl stop php-fpm

make install