PHP FPM編譯注意事項

2021-07-31 07:31:42 字數 784 閱讀 1868

./configure --prefix=/usr/local/php-32bit

--with-apxs2=/usr/local/apache2-32/bin/apxs

--with-zlib --with-gd --enable-mbstring --with-mysql=/usr/local/mysql5-32bit --with-mysqli=/usr/local/mysql5-32bit/bin/mysql_config --with-pdo-mysql=/usr/local/mysql5-32bit --with-config-file-path=/usr/local/php --with-iconv --disable-ipv6 --enable-static --with-libxml-dir --with-jpeg-dir=/usr/local/jpeg7 --with-png-dir=/usr/local/libpng --with-freetype-dir=/usr/local/freetype --with-mcrypt=/usr/local/libmcrypt-32 --with-zlib-dir --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-discard-path --enable-pcntl --enable-cgi

娘的,把--with-apxs2引數加上去了, 導致php-fpm啟動說找不到php/bin/php-cgi這個檔案(的確沒有), 排錯排了我乙個晚上, 終於找到問題了

修改php-fpm配置檔案

把左右兩邊的注釋去掉以及

Android編譯注意事項

1 make bootimage 編譯生成kernel.img和boot.img的整合 會在out目錄下生成以下檔案。target ram disk out target product em t8350 emmc ramdisk.img target boot image out target p...

大型專案編譯注意事項

1,依賴的第三方模組以及主模組要用同一版本gcc編譯,否則會有很詭異的core之類的問題出現。2,確認第三方模組gcc版本一直的前提下,如果總是出莫名奇妙的core,尤其是對任何case都掛的情況,最有可能的情況就是庫的使用方法不對,比如沒有進行正確的初始化等。3,編譯構建工具很多,現在有很多是基於...

G2O編譯注意事項

usr local include g2o solvers csparse csparse extension.h 27 16 fatal error cs.h 沒有那個檔案 直接用sudo apt install libsuitesparse dev就好了,g2o的cmakelist寫了在編譯時查...