大佬教程收集整理的这篇文章主要介绍了安装PHP到Ubuntu(APT),大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
系统版本:Ubuntu 16.04.2 LTS
软件版本:PHP-5.6
硬件要求:无
APT存储库由PPA提供。
@H_403_17@root@localhost:~# apt-get install python-software-properties root@localhost:~# add-apt-repository ppa:ondrej/PHP root@localhost:~# apt-get update
@H_403_17@root@localhost:~# apt-get -y install PHP5.6 PHP5.6-bcmach PHP5.6-fpm PHP5.6-mcrypt PHP5.6-mbString PHP5.6-curl PHP5.6-cli PHP5.6-MysqL PHP5.6-gd PHP5.6-intl PHP5.6-xsl PHP5.6-zip PHP5.6-soap PHP5.6-xml
@H_403_17@root@localhost:~# systemctl start PHP5.6-fpm
@H_403_17@root@localhost:~# vim /etc/Nginx/conf.d/PHP56 server { listen 80; server_name _PHP; root "/var/www/html/"; LOCATIOn / { index index.PHP index.html; if (!-e $request_file@R_675_8313@{ rewrite ^(.*)$ /index.PHP?s=$1 last; break; } } LOCATIOn ~ ^.*\.PHP(.*)$ { fastcgi_pass unix:/run/PHP/PHP7.0-fpm.sock; fastcgi_index index.PHP; fastcgi_param SCRIPT_FILename /home/mk/wstmart$fastcgi_script_name; include fastcgi_params; } }
以上是大佬教程为你收集整理的安装PHP到Ubuntu(APT)全部内容,希望文章能够帮你解决安装PHP到Ubuntu(APT)所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。