CentOS 6 - Install php 8.1.6
Описание
LIBXML Compile
https://gitlab.gnome.org/GNOME/libxml2/-/releases
./configure \
--prefix=/usr/local/libxml2-2.9.14 \
--with-history \
--with-python=/usr/bin \
--docdir=/usr/local/libxml2-2.9.14/doc
openssl Compile
https://www.openssl.org/source/
./Configure \
no-shared \
linux-x86_64 \
no-md2 \
no-mdc2 \
no-rc5 \
no-rc4 \
enable-ssl2 \
enable-ssl3 \
--prefix=/usr/local/openssl-1.1.1o
sqlite Compile
https://www.sqlite.org/download.html
./configure \
--prefix=/usr/local/sqlite3-3.38.5
curl Compile
https://curl.se/download.html
./configure \
--prefix=/usr/local/curl-7.83.0 \
--with-ssl=/usr/local/openssl-1.1.1o
onig Compile
https://github.com/kkos/oniguruma/releases/tag/v6.9.8
./configure \
--prefix=/usr/local/onig-6.9.8
libpng Compile
http://www.libpng.org/pub/png/libpng.html
./configure \
--prefix=/usr/local/libpng-1.6.37
libgd Compile
https://libgd.github.io/pages/downloads.html
./configure \
--prefix=/usr/local/libgd-2.3.3 \
--with-png=/usr/local/libpng-1.6.37
cmake Install
https://cmake.org/download/
Copy /usr/local
libzip Compile
https://libzip.org/download/
/usr/local/cmake-3.23.1/bin/cmake -DCMAKE_INSTALL_PREFIX=/usr/local/libzip-1.8.0
PHP Compile
./configure \
--prefix=/usr/local/php-8.1.6 \
--with-config-file-path=/etc/php8 \
--with-config-file-scan-dir=/etc/php8/php.d \
--with-zlib-dir \
--enable-mbstring \
--with-curl \
--with-zlib \
--disable-rpath \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-pcntl \
--enable-mbregex \
--with-mhash \
--with-pdo-mysql \
--with-mysqli \
--with-openssl \
--with-fpm-user=apache \
--with-fpm-group=apache \
--enable-fpm \
--with-pdo-mysql \
--enable-ftp \
--enable-gd \
LIBXML_CFLAGS=-I/usr/local/libxml2-2.9.14/include/libxml2 \
LIBXML_LIBS=-L/usr/local/libxml2-2.9.14/lib \
OPENSSL_CFLAGS=-I/usr/local/openssl-1.1.1o/include \
OPENSSL_LIBS=-L/usr/local/openssl-1.1.1o/lib \
SQLITE_CFLAGS=-I/usr/local/sqlite3-3.38.5/include \
SQLITE_LIBS=-L/usr/local/sqlite3-3.38.5/lib \
CURL_CFLAGS=-I/usr/local/curl-7.83.0/include \
CURL_LIBS=-L/usr/local/curl-7.83.0/lib \
ONIG_CFLAGS=-I/usr/local/onig-6.9.8/include \
ONIG_LIBS=-L/usr/local/onig-6.9.8/lib \
GD_CFLAGS=-I/usr/local/libgd-2.3.3/include \
GD_LIBS=-L/usr/local/libgd-2.3.3/lib \
PNG_CFLAGS=-I/usr/local/libpng-1.6.37/include \
PNG_LIBS=-L/usr/local/libpng-1.6.37/lib \
LIBZIP_CFLAGS=-I/usr/local/libzip-1.8.0/include \
LIBZIP_LIBS=-L/usr/local/libzip-1.8.0/lib64
-lxml2 -lcrypto -lssl -lsqlite3 -lcurl -lonig -lpng
Рекомендуемые видео



















