1. 程式人生 > >Linux安裝php-7.0.32+apache-2.2.15

Linux安裝php-7.0.32+apache-2.2.15

1.find apache的apxs配置檔案

/usr/sbin/apxs

2./configure

# ./configure --prefix=/usr/local/php --with-apxs2=/usr/sbin/apxs --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-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-sysvshm --enable-xml --enable-zip

# chmod 755 /usr/lib64/httpd/modules/libphp7.so

3.啟動php-fpm

# /usr/local/php/sbin/php-fpm
# netstat -tunlp |grep 9000  //linux端口占用