Last active
December 20, 2019 06:33
-
-
Save dingdayu/03867596ab61346380ab2a912e79db2f to your computer and use it in GitHub Desktop.
install_php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install -y sqlite-devel libicu-dev icu-dev libicu-devel | |
wget https://www.php.net/distributions/php-7.4.1.tar.bz2 | |
tar -xvf php-7.4.1.tar.bz2 | |
./buildconf -force | |
./configure --prefix=/usr/local/php741 --with-config-file-path=/usr/local/php741/etc --with-fpm-user=nginx --with-fpm-group=nginx --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-zlib --enable-mysqlnd --enable-fpm --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-inline-optimization --enable-mbregex --enable-mbstring --enable-intl --enable-ftp --enable-pcntl --enable-sockets --enable-fileinfo --enable-opcache --enable-gd --enable-soap --enable-exif --enable-calendar --enable-sysvsem --enable-sysvmsg --enable-sysvshm --enable-session --enable-gd-jis-conv --with-curl --with-xmlrpc --with-gettext --with-sodium --with-iconv --with-bz2 --with-kerberos --with-libdir=lib64 --with-pdo-sqlite --with-pear --with-xsl --with-openssl --with-mhash --enable-static --enable-sysvshm | |
make clean | |
make -j4 | |
sudo make install | |
sudo ln -s /usr/local/php741/ php7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment