原始碼安裝php5 6時的配置

2021-07-09 08:03:38 字數 650 閱讀 7448

原始碼安裝php5.6時的配置:

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-fpm --enable-mbstring --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-zlib --enable-pdo 

如果mysql在php安裝之後安裝的,還需要掛載mysql.so擴充套件。參考:

然後重啟php-fpm及nginx即可.

但是為什麼禁用掉exec函式之後,shell裡面還是可以使用exec函式呢?

原始碼編譯安裝php5 6

cd usr local src wget net get php 5.6 24.tar gz from this mirror mv mirror php 5.6 24.tar gztar zxvf php 5.6 24.tar gzcd php 5.6 24xml擴充套件 apt get ins...

centos6 5原始碼安裝PHP5 6

1.安裝依賴應用 yum y install gcc gcc c autoconf libjpeg libjpeg devel libpng libpng devel freetype freetype devel libpng libpng devel libxml2 libxml2 devel ...

linux系統安裝php5 6

安裝php的開始首先需要配置一下php的依賴包,使用 yum install libxml2和yum install libxml2 devel進行新增。使用.configure prefix usr local php with apxs2 usr local apache bin apxs命令進...