Ubuntu에서 PHP & MySQL 환경 설정하기
[OS]
Ubuntu 16.04/18.04
[Apache2]
$ sudo apt-get install apache2
[MySQL]
$ sudo apt-get install mariadb-client mariadb-server
[PHP] PHP 7.2
$ sudo apt-get install software-properties-common
$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update
$ sudo apt-get install php7.2
$ sudo apt-get install libapache2-mod-php7.2
$ sudo apt-get install php-pear php7.2-curl php7.2-dev php7.2-gd php7.2-mbstring php7.2-zip php7.2-mysql php7.2-xml
$PHP_PATH :: /etc/php/7.2/cli
[Link] https://www.rosehosting.com/blog/install-php-7-1-with-nginx-on-an-ubuntu-16-04-vps/
[Link] https://thishosting.rocks/install-php-on-ubuntu/
评论
发表评论