标签搜索

debian10编译安装php7.0.33

basil
2022-10-19 / 223 阅读
  • 下载源码

    cd /usr/local/src
    wget https://www.php.net/distributions/php-7.0.33.tar.gz
  • 解压源码包

    tar -zxvf php-7.0.33.tar.gz
  • 执行configure脚本,可以执行./configure --help查询相关配置

    ./configure --prefix=/usr/local/php7.0 \
    --enable-fpm \
    --with-openssl \
    --with-zlib \
    --enable-bcmath \
    --with-curl \
    --enable-ftp \
    --with-gd \
    --enable-mbstring \
    --with-mcrypt \
    --with-mysqli \
    --enable-pcntl \
    --with-pdo-mysql \
    --enable-soap \
    --enable-zip \
    --enable-mysqlnd \
  • 编译安装

    make && make install
0