You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To make this work you may also need to set --enable-mbstring to --enable-mbstring=shared and then add in the mbstring.so module, and add it to php.ini. You need this if you're getting weird compile time errors.
worked for me on a couple of CentOS 7 servers.
my configure script, to build 8.3.22 on CentOS 7 to run Moodle :
more php_build-8.3.sh
# 8.3
# see : https://gist.github.com/budiantoip/72b071366592e1d67d70d34c208ef246
# a bunch of stuff is b0rked on Centos7 in the build kit
# we need to manually install an updated cmake so we can build a new
# libzip, and change how we handle mbstring.
# we put libzip into /usr/local/apache/2.4 using config
# see /usr/local/src/moodle/centos7-hacks
# /usr/local/apache/2.4/
export PKG_CONFIG_PATH=/usr/local/apache/2.4/lib64/pkgconfig:/usr/local/apache/2.4/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=/usr/local/apache/2.4/lib64:/usr/local/apache/2.4/lib:$LD_LIBRARY_PATH
export CFLAGS="-I/usr/local/apache/2.4/include"
export LDFLAGS="-L/usr/local/apache/2.4/lib64 -L/usr/local/apache/2.4/lib"
ldconfig
./configure --with-mysqli --with-apxs2=/usr/local/apache/2.4/bin/apxs --prefix=/usr/local/apache/2.4 --enable-gd --libdir=/usr/lib64 --with-libdir=lib64 --with-zip --with-config-file-path=/usr/local/apache/2.4/etc --with-jpeg --with-curl --with-zlib --with-openssl --enable-oap --enable-mbstring=shared --enable-opcache --enable-intl --with-sodium --enable-exif --with-tidy
make
echo "remember to manually install opcache and mbstring in /usr/local/apache/2.4/modules"
To make this work you may also need to set --enable-mbstring to --enable-mbstring=shared and then add in the mbstring.so module, and add it to php.ini. You need this if you're getting weird compile time errors.
worked for me on a couple of CentOS 7 servers.