Skip to content

Instantly share code, notes, and snippets.

CentOS 7 + Nginx + MySQL5.6 + PHP5.6 (Laravel5.1) インストール nginx+php-fpmで動作確認まで

環境

  • AWS EC2 t2.micro
  • CentOS Linux release 7.0.1406 (Core)
  • PHP 5.6.11
  • MySQL 5.6
  • Laravel Framework version 5.1.7 (LTS)
@Springshen
Springshen / nginx.default.conf
Created July 23, 2016 09:16 — forked from santoshachari/nginx.default.conf
PHP5.6 and NGINX: Install PHP56-FPM, Nginx & MySQL on EC2 with Amazon Linux AMI
# Install linux update, followed by GCC and Make
sudo yum -y update
sudo yum install -y gcc make
# Install Nginx and php56-FPM
sudo yum install -y nginx php56-fpm
# Install php56 extensions
sudo yum install -y php56-devel php-mysql php56-pdo php56-pear php56-mbstring php56-cli php56-odbc php56-imap php56-gd php56-xml php56-soap