Created
September 12, 2022 23:03
-
-
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)
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
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 |
Author
gubatron
commented
Sep 13, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment