Skip to content

Instantly share code, notes, and snippets.

@catwhocode
Created July 9, 2024 02:09
Show Gist options
  • Save catwhocode/942f248edeb8c88129800520e7115db0 to your computer and use it in GitHub Desktop.
Save catwhocode/942f248edeb8c88129800520e7115db0 to your computer and use it in GitHub Desktop.
My PHP Installation Configuration Template
./configure OPENSSL_CFLAGS=-I/opt/openssl/include/ OPENSSL_LIBS="-L/opt/openssl/lib64/ -lssl -lcrypto" \
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig \
--with-config-file-path=/etc/php \
--sysconfdir=/etc/php.d \
--enable-mysqlnd \
--with-pdo-mysql \
--with-pdo-mysql=mysqlnd \
--with-pdo-pgsql=/usr/bin/pg_config \
--enable-bcmath \
--enable-fpm \
--with-fpm-user=root \
--with-fpm-group=root \
--enable-mbstring \
--enable-phpdbg \
--enable-shmop \
--enable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--with-zlib \
--with-curl=/opt/curl \
--with-pear \
--with-openssl=/opt/openssl/bin \
--enable-pcntl \
--enable-gd \
--with-jpeg \
--with-mysqli \
--with-readline \
--with-freetype \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment