• 首页
  • 阅读
  • linux的PHP基础安装
  • linux的PHP基础安装
    发布日期:2023-11-20 阅读:1017
    linux

    依赖安装

    yum install gcc make autoconf glibc-devel libxml2 libxml2-devel openssl-devel curl-devel libjpeg-devel libpng-devel freetype-devel libmcrypt-devel

    编译

    ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-curl --with-openssl --with-zlib --enable-bcmath --with-gd --with-mysqli --with-pdo-mysql --with-readline --with-mcrypt --enable-pcntl --enable-soap --enable-sockets

    安装

    make && make install