php 5.4以上安裝php-fpm方法如果你已經安裝過php 也是一樣 那就重新編譯php 覆蓋1 先去php官網下個 php-5.6.29.tar.gz wget
2 ./configure --prefix=/usr/local/php --with-iconv=/usr/local/libiconv --enable-sysvsem --with-curl --enable-mbregex --enable-mbstring --with-mcrypt --with-gd --with-openssl --with-mhash --enable-sockets --with-xmlrpc --with-zlib --enable-fpm
--with-iconv=/usr/local/libiconv 這個路徑就是上面安裝的路徑哈
正確如下
thank you for using php.
config.status: creating php5.spec
config.status: creating main/build-defs.h
config.status: creating scripts/phpize
config.status: creating scripts/man1/phpize.1
config.status: creating scripts/php-config
config.status: creating scripts/man1/php-config.1
config.status: creating sapi/cli/php.1
config.status: creating sapi/cgi/php-cgi.1
config.status: creating ext/phar/phar.1
config.status: creating ext/phar/phar.phar.1
config.status: creating main/php_config.h
config.status: executing default commands
3 make 生成o檔案
如果出現 undefined reference to `libiconv' 那就是 ./configure --prefix沒設定好 make clean 後重新配置./configure ............
4 make install 安裝
正確如下
[root@izbp11xke8lva3xk8b3qtnz php-5.6.29]# make install
installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/
installing php cli binary: /usr/local/php/bin/
installing php cli man page: /usr/local/php/php/man/man1/
installing php cgi binary: /usr/local/php/bin/
installing php cgi man page: /usr/local/php/php/man/man1/
installing build environment: /usr/local/php/lib/php/build/
installing header files: /usr/local/php/include/php/
installing helper programs: /usr/local/php/bin/
輸入 php -v
[root@izbp11xke8lva3xk8b3qtnz ~]# php -v
php 5.6.29 (cli) (built: jan 5 2017 10:37:51)
php5 4在window下安裝phpunit
1.根據phpunit官方手冊,安裝phpunit需要這些擴充套件 dom,json,pcre,reflection,spl,如果你安裝的是wampserver環境,這些擴充套件預設是開啟的。5.配置環境變數,將f phpunit配置到環境變數中。6.在cmd裡面,進入到f phpunit下,你自己...
php5 4下安裝APC快取(ubuntu系統)
wget tar zxvf apc 3.1.10.tgz cd apc 3.1.10 phpize configure make make install 問題一 在編譯時出現在fatal error pcre.h no such file or directory 出現這樣的錯誤 經過查詢 是因為...
編譯php5 4及安裝後新增擴充套件
tar zxvf php 5.4.8.tar.gz php模組最好不要在編譯的時候安裝進去,以免日後公升級麻煩,途中遇到configure error cannot find libz 解決辦法 yum install zlib.x86 64 yum install zlib devel.x86 6...