«   2018/06   »
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Archives
Today
125
Total
1,111,343
안정적인 DNS서비스 DNSEver
관리 메뉴

Blue Breeze

Ubuntu php7.1/7.2 Switch 본문

Language/PHP

Ubuntu php7.1/7.2 Switch

푸른바람 푸른_바람 2018.03.02 14:16


저장소 등록

apt-get install -y python-software-properties
add-apt-repository -y ppa:ondrej/php
apt-get update -y

7.2 설치

sudo apt-cache search php7.2
sudo apt-get install php7.2 php7.2 libapache2-mod-php7.2 libphp7.2-embed php7.2-bcmath php7.2-bz2 php7.2-cgi php7.2-cli php7.2-common php7.2-curl php7.2-dba php7.2-dev php7.2-enchant php7.2-fpm php7.2-gd php7.2-gmp php7.2-imap php7.2-interbase php7.2-intl php7.2-json php7.2-ldap php7.2-mbstring php7.2-mysql php7.2-odbc php7.2-opcache php7.2-pgsql php7.2-phpdbg php7.2-pspell php7.2-readline php7.2-recode php7.2-snmp php7.2-soap php7.2-sqlite3 php7.2-sybase php7.2-tidy php7.2-xml php7.2-xmlrpc php7.2-zip php7.2-xsl

7.1 설치

sudo apt-cache search php7.1
sudo apt-get install libapache2-mod-php7.1 php7.1 php7.1-cgi php7.1-cli php7.1-common php7.1-curl php7.1-dev php7.1-gd php7.1-gmp php7.1-json php7.1-ldap php7.1-mysql php7.1-odbc php7.1-opcache php7.1-pgsql php7.1-pspell php7.1-readline php7.1-recode php7.1-snmp php7.1-sqlite3 php7.1-tidy php7.1-xml php7.1-xmlrpc libphp7.1-embed php7.1-bcmath php7.1-bz2 php7.1-dba php7.1-enchant php7.1-fpm php7.1-imap php7.1-interbase php7.1-intl php7.1-mbstring php7.1-mcrypt php7.1-phpdbg php7.1-soap php7.1-sybase php7.1-zip

공통 php.ini

  • date.timezone = Asia/Seoul
  • cgi.fix_pathinfo=0
  • session.cookie_httponly = 1
  • session.cookie_secure = 1
  • 스위칭

    sudo a2dismod php7.1
    sudo a2enmod php7.2
    sudo systemctl restart apache2
    
    sudo a2dismod php7.2
    sudo a2enmod php7.1
    sudo systemctl restart apache2
    


'Language > PHP' 카테고리의 다른 글

date, microtime speed and calculate  (0) 2018.04.25
php log file write speed  (0) 2018.04.20
Ubuntu php7.1/7.2 Switch  (0) 2018.03.02
Yii model get query  (0) 2017.08.25
PHP math-php  (0) 2017.06.01
php7.1 Catching Multiple Exception Types  (0) 2017.05.31
0 Comments
댓글쓰기 폼