Installation dependencies
yum -y install wget yum -y install gcc yum -y install gcc-c++ yum -y install pcre-devel yum -y install zlib-devel yum -y install libxml2 yum -y install libxml2-devel yum -y install libevent yum -y install libevent-devel yum -y install autoconf yum -y install libpng-devel yum -y install openssl-devel yum -y install curl yum -y install curl-devel yum -y install expat-devel yum -y install perl yum -y install perl-ExtUtils-MakeMaker yum -y install gettext-devel yum -y install zlib-devel yum -y install cpio yum -y install gettext-devel yum -y install bzip2-devel yum -y install freetype-devel yum -y install gmp-devel yum -y install php-mcrypt libmcrypt libmcrypt-devel
Compilation parameters
./configure --prefix=/opt/php --with-config-file-scan-dir=/opt/php/etc/php.d --disable-debug --with-pic --with-bz2 --with-gettext --with-gmp --enable-mbregex --enable-mbstring --with-openssl --with-zlib --with-layout=GNU --enable-exif --enable-sockets --enable-xml --with-pear --enable-fpm --with-pdo-mysql --with-curl --with-mysql --with-gd --enable-gd-native-ttf --with-mysqli --enable-soap --with-fpm-user=daemon --with-fpm-group=daemon --with-apxs2=/opt/httpd/bin/apxs --with-mcrypt --with-freetype-dir --with-libiconv-dir
Notes
1.--prefix, it is recommended to be under /opt.
2. During the /configure process, install the corresponding dependencies according to the error message.
3.PHP compilation parameters can be viewed through ./configure --help. Different versions of PHP may have slight differences

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Zend Studio 13.0.1
Powerful PHP integrated development environment

Notepad++7.3.1
Easy-to-use and free code editor
