PHP8.1.21版本已发布
vue8.1.21版本已发布
jquery8.1.21版本已发布

关于编译安装PHP的问题

原创
2023-03-02 06:32:02 961浏览

编译安装过PHP的人都知道,编译的时候会配置很多参数,如下:
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --enable-pcntl --enable-mysqlnd --enable-opcache --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --enable-zip --enable-ftp --enable-soap --enable-xml --enable-mbstring --disable-rpath --disable-debug --disable-fileinfo --with-mysql --with-mysqli --with-pdo-mysql --with-pcre-regex --with-iconv --with-zlib --with-mcrypt --with-gd --with-openssl --with-mhash --with-xmlrpc --with-curl

有的时候按php的版本会废弃某些参数,有的版本增加了某些参数。
我提问就让我看help,但是都是英文的,实在搞不太明白。
哪位大神能给个资料或者资源,是中文的,主要介绍配置php的这些选项的,3q

回复内容:

编译安装过PHP的人都知道,编译的时候会配置很多参数,如下:
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --enable-pcntl --enable-mysqlnd --enable-opcache --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --enable-zip --enable-ftp --enable-soap --enable-xml --enable-mbstring --disable-rpath --disable-debug --disable-fileinfo --with-mysql --with-mysqli --with-pdo-mysql --with-pcre-regex --with-iconv --with-zlib --with-mcrypt --with-gd --with-openssl --with-mhash --with-xmlrpc --with-curl

有的时候按php的版本会废弃某些参数,有的版本增加了某些参数。
我提问就让我看help,但是都是英文的,实在搞不太明白。
哪位大神能给个资料或者资源,是中文的,主要介绍配置php的这些选项的,3q

  1. 本站上一年的一篇文章 https://segmentfault.com/a/1190000002717262

  2. 官方文档核心配置选项 http://php.net/manual/zh/configure.about.php

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。