PHP

Debian/Ubuntu

Установка

5.4

$ apt-get install php5 php5-fpm dh-php5 php5-cgi php5-cli php5-common php5-curl php5-dev php5-gd php5-geoip php5-intl php5-json php5-mcrypt php5-memcache php5-memcached php5-mongo php5-mysql php5-readline php5-redis php5-sqlite php5-ssh2 php5-xcache php5-xsl

7.0

$ apt install php7.0 php7.0-fpm php7.0-common php7.0-curl php7.0-gd php7.0-intl php7.0-mbstring php7.0-mcrypt php7.0-mysql php7.0-opcache php7.0-sqlite3 php7.0-xml php7.0-xsl php7.0-xdebug

7.1

$ apt install php7.1 php7.1-fpm php7.1-common php7.1-curl php7.1-gd php7.1-intl php7.1-mbstring php7.1-mcrypt php7.1-mysql php7.1-opcache php7.1-sqlite3 php7.1-xml php7.1-xsl php7.1-xdebug

7.2

$ apt install php7.2 php7.2-fpm php7.2-common php7.2-curl php7.2-gd php7.2-intl php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-sqlite3 php7.2-xml php7.2-xsl php7.2-xdebug

7.3

$ apt install php7.3 php7.3-fpm php7.3-common php7.3-curl php7.3-gd php7.3-intl php7.3-mbstring php7.3-mysql php7.3-opcache php7.3-sqlite3 php7.3-xml php7.3-xsl php7.3-xdebug

Удаление

% apt autoremove --purge $(dpkg --get-selections | grep -v "deinstall" |grep php7.4| cut -f1 | tr '\n' ' ')

Обновление с 7.0 на 7.1

$ sudo apt install apt-transport-https lsb-release ca-certificates $ sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg $ apt install lsb-release $ sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' $ sudo apt update $ apt install $(dpkg --get-selections | grep -v "deinstall" |grep php7.0| cut -f1 | tr '\n' ' '| tr '7.0' '7.1')

apt-get install lsb-release

Обновление с 7.0 на 7.2

$ sudo apt install apt-transport-https lsb-release ca-certificates $ sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg $ apt install lsb-release $ sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' $ sudo apt update $ sudo apt install $(dpkg --get-selections | grep -v "deinstall" |grep php7.0| cut -f1 | tr '\n' ' '| tr '7.0' '7.2')

CentOS

cd /opt wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz tar zxvf glibc-2.14.tar.gz cd glibc-2.14 mkdir build cd build ../configure --prefix=/opt/glibc-2.14 make -j4 make install
$ yum install epel-release yum-utils -y $ yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm $ yum-config-manager --enable remi-php72 $ yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql -y

Установка расширений Pecl

$ apt install autoconf automake libtool m4 php7.1-dev $ pear config-set php_suffix 7.1 $ pecl install event

Поиск расширений

Composer (php)

https://trello.com/b/P6B7Qqkl/yii2-extensions

https://yiigist.com/

http://gitreview.com/

http://phptrends.com/

https://packagist.org/

http://www.wallogit.com/search?searchterm=yii2

https://php-eye.com/search?pattern=yii2

https://packagist.org/?q=yii2

https://phptrends.com/top?page=1&q=yii2-settings