PHP

Installation

#yum install \
gcc \
gcc-c++ \
make \
php70 \
php70-fpm \
php70-xml \
php70-pdo \
php70-common \
php70-cli \
php70-mbstring \
php70-mcrypt \
php70-mysqlnd \
php70-devel \
php70-pecl-apc \
php70-pecl-opcache \
php70-pecl-memcached

Configuration

#vim /etc/php-fpm-7.0.d/www.conf

Add settings

isten = /var/run/php-fpm/php-fpm.sock

listen.owner = nginx
listen.group = nginx
listen.mode = 0664

user = nginx
group = nginx

Start

#service php-fpm start

// auto start on server boot
#chkconfig php-fpm on

results matching ""

    No results matching ""