首頁  >  文章  >  後端開發  >  關於編譯安裝PHP的問題

關於編譯安裝PHP的問題

WBOY
WBOY原創
2016-12-01 00:56:451264瀏覽

編譯安裝過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