PHP

来自Gea-Suan Lin's Wiki
跳到导航 跳到搜索

PHP是一个程式语言。

安装

用下面指令安装PPA版。

PHP 7.4:

sudo LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php; sudo apt update; sudo apt install -y composer php7.4-apcu php7.4-bcmath php7.4-bz2 php7.4-cli php7.4-curl php7.4-dba php7.4-decimal php7.4-ds php7.4-fpm php7.4-gd php7.4-gmp php7.4-imap php7.4-imagick php7.4-inotify php7.4-intl php7.4-json php7.4-ldap php7.4-lz4 php7.4-mbstring php7.4-mysql php7.4-odbc php7.4-opcache php7.4-pcov php7.4-pgsql php7.4-psr php7.4-readline php7.4-redis php7.4-snmp php7.4-soap php7.4-sqlite3 php7.4-tidy php7.4-uuid php7.4-xml php7.4-xmlrpc php7.4-xsl php7.4-yaml php7.4-zip php7.4-zstd; sudo apt clean

PHP 8.0:

sudo LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php; sudo apt update; sudo apt install -y composer php8.0-apcu php8.0-bcmath php8.0-bz2 php8.0-cli php8.0-curl php8.0-dba php8.0-decimal php8.0-ds php8.0-fpm php8.0-gd php8.0-gmp php8.0-imap php8.0-imagick php8.0-inotify php8.0-intl php8.0-ldap php8.0-lz4 php8.0-mbstring php8.0-mysql php8.0-odbc php8.0-opcache php8.0-pcov php8.0-pgsql php8.0-psr php8.0-readline php8.0-redis php8.0-snmp php8.0-soap php8.0-sqlite3 php8.0-tidy php8.0-uuid php8.0-xml php8.0-xmlrpc php8.0-xsl php8.0-yaml php8.0-zip php8.0-zstd; sudo apt clean

PHP 8.1:

sudo LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php; sudo apt update; sudo apt install -y composer php8.1-apcu php8.1-bcmath php8.1-bz2 php8.1-cli php8.1-curl php8.1-dba php8.1-decimal php8.1-ds php8.1-fpm php8.1-gd php8.1-gmp php8.1-imap php8.1-imagick php8.1-inotify php8.1-intl php8.1-ldap php8.1-lz4 php8.1-mbstring php8.1-mysql php8.1-odbc php8.1-opcache php8.1-pcov php8.1-pgsql php8.1-psr php8.1-readline php8.1-redis php8.1-snmp php8.1-soap php8.1-sqlite3 php8.1-tidy php8.1-uuid php8.1-xml php8.1-xmlrpc php8.1-xsl php8.1-yaml php8.1-zip php8.1-zstd; sudo apt clean

外部连结