Skip to content

Instantly share code, notes, and snippets.

@Dracovian Dracovian/confphp.sh Secret
Last active Dec 5, 2019

Embed
What would you like to do?
PHP 8 configurator and rough steps for RHEL 8
#!/bin/bash
./configure \
--enable-fpm \
--with-fpm-systemd \
--with-fpm-acl \
--enable-fd-setsize=2048 \
--with-openssl \
--with-zlib \
--enable-bcmath \
--with-bz2 \
--with-curl \
--enable-exif \
--enable-gd \
--enable-intl \
--enable-mbstring \
--with-mysqli \
--with-pdo-mysql \
--with-pdo-pgsql \
--enable-soap \
--with-sodium \
--with-password-argon2 \
--with-tidy \
--with-xmlrpc \
--enable-zts \
--enable-shared \
--enable-opcache
yum -y install <pkg-name>
bison
re2c
systemd-devel
libacl-devel
libxml2-devel
openssl-devel
sqlite-devel
bzip2-devel
libcurl-devel
libpng-devel
libicu-devel
oniguruma-devel
libpq-devel
libsodium-devel
libargon2-devel
libtidy-devel
git clone https://github.com/php/php-src.git
cd php-src
curl -o confphp.sh https://gist.githubusercontent.com/Dracovian/fb5bd26de6a18d523f6a3c61a014c2e1/raw/dc362e0faea75dd4559d407b136855e0e624c1f0/confphp.sh
chmod +x confphp.sh
./buildconf
./confphp.sh
make -j4
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.