Created
November 18, 2018 22:20
-
-
Save lnrsoft/822f09d1a333db206a7fd425bcca982f to your computer and use it in GitHub Desktop.
Install or Upgrade to PHP 7.X on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install php7.2 | |
sudo apt-get install php7.2-mysql | |
sudo apt-get install php7.2-cli php7.2-common libapache2-mod-php7.2 php7.2 php7.2-mysql php7.2-fpm | |
sudo apt-get install php7.2-mbstring | |
sudo a2dismod php5 | |
sudo a2enmod php7.2 | |
sudo service apache2 restart | |
sudo apt purge php5* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Creating config file /etc/php/7.2/fpm/php.ini with new version
NOTICE: Not enabling PHP 7.2 FPM by default.
NOTICE: To enable PHP 7.2 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.2-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Created symlink /etc/systemd/system/multi-user.target.wants/php7.2-fpm.service → /lib/systemd/system/php7.2-fpm.service.