编译安装最新版PHP,支持apache24,支持workman

编译安装php

安装依赖

  • yum -y install epel-release
  • yum -y install oniguruma oniguruma-devel
  • yum -y install libxml2 libxml2-devel
  • yum -y install openssl openssl-devel
  • yum -y install libcurl libcurl-devel
  • yum -y install libjpeg libjpeg-devel libpng libpng-devel
  • yum -y install freetype freetype-devel
  • yum -y install httpd
  • yum -y install httpd-devel

下载php-7.4.19.tar.bz2,生成configure

  • yum -y install bzip2
  • cd ~
  • tar -jxvf php-7.4.19.tar.bz2
  • cd php-7.4.19.tar.bz2
  • ./configure --prefix=/usr/local/php7 --with-config-file-path=/usr/local/php7 --with-apxs2=/usr/bin/apxs --enable-sockets --enable-fpm --enable-cli --enable-mbstring --enable-pcntl --enable-soap --enable-opcache --disable-fileinfo --disable-rpath --with-mysqli --with-pdo-mysql --with-iconv-dir --with-openssl --with-fpm-user=www --with-fpm-group=www --with-curl --with-mhash --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-zip --with-zlib --enable-simplexml --with-libxml-dir
  • make && make install

编译安装最新版PHP,支持apache24,支持workman

上一篇:linux网络connect: network is unreachable的解决记录


下一篇:Network - 端口Port