Skip to content

Instantly share code, notes, and snippets.

@vitaly-los
Last active August 12, 2018 20:38
Show Gist options
  • Save vitaly-los/c47dba16d5719573cf3622178d922c61 to your computer and use it in GitHub Desktop.
Save vitaly-los/c47dba16d5719573cf3622178d922c61 to your computer and use it in GitHub Desktop.
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get install php7.2
sudo a2dismod php7.0
sudo a2enmod php7.2
sudo update-alternatives --set php /usr/bin/php7.2
sudo service apache2 restart
sudo apt-get install libapache2-mod-php7.2 php7.2-cgi php7.2-cli php7.2-common php7.2-curl php7.2-gd php7.2-imap php7.2-intl php7.2-json php7.2-ldap php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-pspell php7.2-readline php7.2-soap php7.2-xml
sudo a2enmod proxy_fcgi setenvif
sudo a2enconf php7.2-fpm
sudo service apache2 restart
```
Disable PHP 7.1:
```
sudo a2dismod php7.1
```
Enable PHP 7.2:
```
sudo a2enmod php7.2
sudo a2enmod proxy_fcgi setenvif
sudo a2enconf php7.2-fpm
After that restart apache2:
sudo service apache2 restart
https://stackoverflow.com/questions/47166378/whats-the-difference-between-xdebug-ini-and-php-ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment