当前位置:首页 > Web开发 > 正文

编译安装PHP以及需要的依赖(php7.4)

2024-03-31 Web开发

安装配置选项1:

./configure --prefix=http://www.mamicode.com/usr/local/php --with-mysql=http://www.mamicode.com/usr/local/mysql --with-curl --with-freetype-dir --with-gd --with-gettext --with-iconv-dir --with-kerberos --with-libdir=lib64 --with-libxml-dir --with-mysqli --with-openssl --with-pcre-regex --with-pdo-mysql --with-pdo-sqlite --with-pear --with-png-dir --with-jpeg-dir --with-xmlrpc --with-xsl --with-zlib --with-bz2 --with-mhash --enable-fpm --enable-bcmath --enable-libxml --enable-inline-optimization --enable-gd-native-ttf --enable-mbregex --enable-mbstring --enable-openssl --enable-pdo_mysql --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-sysvshm --enable-xml --enable-zip

安装配置选项2:

./configure --prefix=http://www.mamicode.com/www/server/php/74 --with-config-file-path=http://www.mamicode.com/www/server/php/74/etc --enable-fpm --with-fpm-user=www --with-fpm-group=www --enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-zlib --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl=http://www.mamicode.com/usr/local/curl --enable-mbregex --enable-mbstring --enable-intl --enable-ftp --with-openssl=http://www.mamicode.com/usr/local/openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --with-gettext --enable-fileinfo --enable-opcache --with-sodium

编译安装PHP以及需要的依赖(php7.4)

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/40410.html