Ubuntu16.04用ppa安装PHP时apt-get-repository ppa:ondrej/php报错WARNING: add-apt-repository is broken with non-UTF-8 locales, see
https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:
由于全部编译太过于繁琐,而且很多依赖会有问题,可以直接使用apt-get安装,命令:
sudo apt-get install php-dev libapache2-mod-php
安装其他模块,例如mysql、mbstring等
sudo apt-get install php-mysql php-mbstring