Last active
March 19, 2018 00:51
-
-
Save kmamiya/71e7e00ce33c46b7c245bdfec9a0257e to your computer and use it in GitHub Desktop.
Build PHP 7.2.3 on CentOS 7.4
This file contains 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
#!/bin/sh | |
sudo yum install zlib zlib-devel mariadb mariadb-server mariadb-devel gd gd-devel curl curl-devel openssl openssl-devel libxml2 libxml2-devel systemd-devel mcrypt libmcrypt libmcrypt-devel | |
./configure --prefix=/usr/local/php-7.2.3 --sysconfdir=/etc --localstatedir=/var --with-mysqli=/usr/bin/mysql_config --enable-fpm --with-fpm-systemd --enable-mbstring --enable-zip --with-gd --with-zlib --with-curl --with-pdo-mysql --with-jpeg-dir --with-openssl --with-mcrypt | |
make | |
make test | |
# sudo make install | |
# sudo cp -p sapi/fpm/php-fpm.service /etc/systemd/system | |
## Rewrite "${exec_prefix}" to "/usr/local/php-7.2.3/" in /etc/systemd/system/php-fpm.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment