Ubuntu18.04安裝PHP7.3


分享一下在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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM