UP | HOME

php8 zts

Table of Contents

1. 安裝

1.1. 下載

wget https://www.php.net/distributions/php-8.3.4.tar.gz

1.2. 解压

tar -zxvf php-8.3.4.tar.gz

1.3. 安装

cd php-8.3.4

./configure --prefix=/usr/local/php83-zts \
--with-config-file-path=/usr/local/php83-zts \
--with-config-file-scan-dir=/usr/local/php83-zts/php.d \
--enable-fpm \
--with-fpm-user=www \
--with-fpm-group=www \
--with-sodium \
--enable-mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-mysql-sock=/var/lib/mysql/mysql.sock \
--enable-calendar \
--with-zlib \
--enable-xml \
--with-libxml \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--with-curl \
--enable-mbregex \
--enable-mbstring \
--enable-intl \
--enable-ftp \
--with-openssl \
--enable-sockets \
--with-zip \
--enable-soap \
--with-gettext \
--enable-fileinfo \
--enable-opcache \
--with-pear \
--disable-phar \
--with-ldap=shared \
--without-gdbm  \
--enable-pcntl \
--enable-zts \
--enable-gd  \
--enable-xmlrpc  \
--with-external-gd \
--with-webp \
--with-jpeg  \
--with-xpm \
--with-freetype  \
--enable-gd-jis-conv

make -j

make install

1.4. 核查

➜ /usr/local/php83-zts/bin/php -i | grep Thread
Thread Safety => enabled
Thread API => POSIX Threads

Author: JosephTseng

Lastmod: <2024-06-28 Fri>

License: CC BY-NC-ND 4.0

Last updated: 2024-06-28 Fri 00:39
Power by Emacs 29.1 (Org mode 9.6)
© 2017 – 2023 by JosephTseng