验证中...
Languages: PHP
Categories: Web开发技术
Latest update 2019-01-19 08:01
gistfile1.txt
Raw Copy
// 添加软件源
apt -y install software-properties-common apt-transport-https lsb-release ca-certificates
// 添加 Ondřej Surý 的 PHP PPA 源
add-apt-repository ppa:ondrej/php
// 更新软件源缓存
apt-get update
// 安装 PHP7.2:
sudo apt-get -y install php7.2-fpm php7.2-mysql php7.2-curl php7.2-json php7.2-mbstring php7.2-xml
// 常用拓展
设置 PHP
安装完成后,编辑/etc/php/7.2/fpm/php.ini替换换;cgi.fix_pathinfo=1为cgi.fix_pathinfo=0 
快捷命令:
sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/' /etc/php/7.2/fpm/php.ini
// 重启一下!
systemctl restart php7.2-fpm

Comment list( 0 )

You need to Sign in for post a comment

Help Search

183227_9af5e6a8_1826025 111910_4d91f001_1826025