Skip to content

Instantly share code, notes, and snippets.

Created September 12, 2022 23:03
What would you like to do?
script to build php8.1.10 from source so that we can link to openssl1.1.1 (new ubuntu 22.04 makes use of openssl 3 and it breaks a lot of stuff that depended on weaker ciphers)
sudo apt install build-essential autoconf libtool bison re2c pkg-config libwebp-dev libxml2-dev libsqlite3-dev libbz2-dev libcurl4-openssl-dev libpng-dev libjpeg-dev libfreetype-dev libonig-dev libedit-dev libreadline-dev libzip-dev
cd php-8.1.10
#builds configure file if there isn't one
#./configure --help for full list of options
./configure --with-curl \
--disable-cgi \
--enable-bcmath \
--enable-calendar \
--enable-exif \
--enable-fpm \
--enable-ftp \
--enable-gd \
--enable-intl \
--enable-mbstring \
--enable-mysqlnd \
--enable-shmop \
--enable-sockets \
--with-bz2 \
--with-freetype \
--with-jpeg \
--with-mhash \
--with-mysqli \
--with-openssl-dir=/usr/local/ssl/bin \
--with-openssl=/usr/local/ssl/bin \
--with-pear \
--with-readline \
--with-redis \
--with-webp \
--with-zip \
--with-zlib \
Copy link

Configure Command =>  './configure'  '--with-curl' '--disable-cgi' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-fpm' '--enable-ftp' '--enable-gd' '--enable-intl' '--enable-mbstring' '--enable-mysqlnd' '--enable-shmop' '--
enable-sockets' '--with-bz2' '--with-freetype' '--with-jpeg' '--with-mhash' '--with-mysqli' '--with-openssl-dir=/usr/local/ssl/bin' '--with-openssl=/usr/local/ssl/bin' '--with-pear' '--with-readline' '--with-redis' '--with-webp' '--with-zip
' '--with-zlib' '--with-json'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment