ubuntu16.04编译安装php7.2

来源:转载

1,下载解压

tar xf php-7.2.0.tar.gz cd php-7.2.0/

2,安装必要的库

sudo apt-get install libxml2-devsudo apt-get install openssl sudo apt-get install libssl-devsudo apt-get install makesudo apt-get install curlsudo apt-get install libcurl4-gnutls-devsudo apt-get install libjpeg-devsudo apt-get install libpng-devsudo apt-get install libmcrypt-dev

3,编译

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=ghostwu

make && sudo make install

4,写一个测试文件,测试php

 

分享给朋友:
您可能感兴趣的文章:
随机阅读: