Skip to content

Instantly share code, notes, and snippets.

@gubatron
Created September 12, 2022 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gubatron/86a7088e70e98a573965c9c8edd8093a to your computer and use it in GitHub Desktop.
Save gubatron/86a7088e70e98a573965c9c8edd8093a to your computer and use it in GitHub Desktop.
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
./buildconf
#./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 \
--with-json
@gubatron
Copy link
Author

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