ubuntu18.04安装php7,Ubuntu18.04安装PHP7.3,

Ubuntu18.04安装PHP7.3,

因为近期需要做毕业设计,需要用到Linux系统,在此分享一下在Linux-Ubuntu系统下安装PHP环境的一小点知识,如有偏差错误的,请各位学友多多指教哈!

sudo apt-get install software-properties-common python-software-properties

sudo add-apt-repository ppa:ondrej/php && sudo apt-get update

sudo apt-get -y install php7.3

PS:-y指的是什么呢,指的是在你安装的时候会再一次跳出一个要你再次确认的信息,这里加-y就不在需要,可直接执行

PS:如果之前有其他版本PHP,在这边禁用掉

sudo a2dismod php5

sudo a2enmod php7.3

PS:安装常用扩展

sudo -y apt-get install php7.3-fpm php7.3-mysql php7.3-curl php7.3-json php7.3-mbstring php7.3-xml php7.3-intl

PS:安装其他扩展(按需安装)

sudo apt-get install php7.3-gd

sudo apt-get install php7.3-soap

sudo apt-get install php7.3-gmp

sudo apt-get install php7.3-odbc

sudo apt-get install php7.3-pspell

sudo apt-get install php7.3-bcmath

sudo apt-get install php7.3-enchant

sudo apt-get install php7.3-ldap

sudo apt-get install php7.3-opcache

sudo apt-get install php7.3-readline

sudo apt-get install php7.3-sqlite3

sudo apt-get install php7.3-xmlrpc

sudo apt-get install php7.3-bz2

sudo apt-get install php7.3-interbase

sudo apt-get install php7.3-pgsql

sudo apt-get install php7.3-recode

sudo apt-get install php7.3-sybase

sudo apt-get install php7.3-xsl

sudo apt-get install php7.3-cgi

sudo apt-get install php7.3-dba

sudo apt-get install php7.3-phpdbg

sudo apt-get install php7.3-snmp

sudo apt-get install php7.3-tidy

sudo apt-get install php7.3-zip

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值