centos 7でphp 7をインストール

808 ワード

1 nginxのインストール  yum install nginx
2取付epel     yum install epel-release
    wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm && rpm -Uvh remi-release-7.rpm
3 phpのインストール
    yum --enablerepo=remi-safe -y install php71
4インストール依存
    yum install php71-php-mcrypt php71-php-mcrypt php71-php-json php71-php-mbstring php71-php-xml php71-php-soap php71-php-xmlrpc php71-php-simplexml
                      php71-php-curl php71-php-mysqlnd
5 php-fpmのインストール
    yum --enablerepo=remi-safe -y install php71-php-fpm
6起動の設定
    systemctl start php71-php-fpm     systemctl status php71-php-fpm.service
    systemctl enable php71-php-fpm
7プロファイル
   /etc/opt/remi/php71/   /etc/opt/remi/php71/php-fpm.d/www.conf