Welcome 歡迎光臨! 愛上網路-原本退步是向前 !

PHP 8.3 編譯

在RedHat 9 編譯PHP 8.3 ,因為IBM社群雲系統要更新為 8.3

1.安装 PHP編譯需要工具

yum update -y
yum install epel-release -y
yum groupinstall "Development Tools" -y
yum install wget curl git httpd -y

2.安装 PHP編譯需要的套件

yum install -y libxml2-devel \
openssl-devel bzip2 bzip2-devel libjpeg-devel \
libpng-devel libcurl-devel libxslt-devel sqlite-devel libzip-devel \
httpd-devel libicu-devel curl-devel gmp-devel oniguruma-devel postgresql-devel \
libxslt-devel libicu-devel  libffi-devel libwebp-devel readline-devel

3.取得原始檔案

wget https://www.php.net/distributions/php-8.3.14.tar.gz && \
tar -zxvf php-8.3.14.tar.gz  && \
cd php-8.3.14
 

4.設定我們的需求

./configure --prefix=/usr/local/php --sysconfdir=/etc/php --with-openssl --with-zlib --with-bz2 --with-curl --enable-bcmath --enable-gd --with-webp --with-jpeg --with-mhash --enable-mbstring --with-imap-ssl --with-mysqli --enable-exif --with-ffi --with-zip --enable-sockets --with-pcre-jit --enable-fpm --with-pdo-mysql --enable-pcntl --with-pdo-pgsql

5.編譯與安裝

make &&make install

後記 :完成了,但是無法使用.不知道要如何啟動

 

 

[ PHP ] 瀏覽次數 : 35 更新日期 : 2024/12/16