1 2 3 4 5 |
sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt install php7.3 |
php7.3 will be updated automatically when updates become available. Alternatively you can build php7.3 from source in Ubuntu 18.04, but it will not be updated automatically, and it also takes more than an hour to build if you want to test it too.
1 2 3 |
apt-cache search php7.3 | grep php7.3 |
1 2 3 |
sudo apt install php7.3-common php7.3-mysql php7.3-xml php7.3-xmlrpc php7.3-curl php7.3-gd php7.3-imagick php7.3-cli php7.3-dev php7.3-imap php7.3-mbstring php7.3-opcache php7.3-soap php7.3-zip php7.3-intl -y |
1 2 3 |
update-alternatives --set php /usr/bin/php7.3 |
1 2 3 |
a2dismod php7.2 |
1 2 3 |
a2enmod php7.3 |
1 2 3 |
systemctl restart apache2 |
참조 : https://forum.yiiframework.com/t/yii-1-1-21-and-php-7-2-19-issues/126343