站內搜尋

Friday, August 24, 2018

[PHP][Linux] Ubuntu 16.04 裝 PHP 7.1 (致敬 hojc)

$sudo su -

#apt-get update

#apt-get install -y apache2

#apt-get install -y php7.0 libapache2-mod-php7.0 php7.0-cli php7.0-common php7.0-mbstring php7.0-gd php7.0-intl php7.0-xml php7.0-mysql php7.0-mcrypt php7.0-zip

#apt-get install -y python-software-properties

#add-apt-repository -y ppa:ondrej/php

#apt-get update -y

#apt-get install -y php7.1 libapache2-mod-php7.1 php7.1-cli php7.1-common php7.1-mbstring php7.1-gd php7.1-intl php7.1-xml php7.1-mysql php7.1-mcrypt php7.1-zip

#a2enmod php7.1

#a2dismod php7.0

No comments:

Post a Comment