#!/bin/sh

# Install Nginx and PHP from dotdeb

apt-get install -y \
    nginx-full \
    php5-fpm \
    php5-cli \
    php5-mysqlnd \
    php5-curl \
    php5-mcrypt \
    php5-imagick \
    php5-xdebug \
    php5-intl \
    php5-mongo

# Stop services
service php5-fpm stop
service nginx stop

# Copy conf files
cp /tmp/php-cli.ini /etc/php5/cli/php.ini
cp /tmp/php-fpm.ini /etc/php5/fpm/php.ini
cp /tmp/nginx-default /etc/nginx/sites-available/default

# Start services
service php5-fpm start



#!/bin/sh

# Install Nginx and PHP from dotdeb

apt-get install -y \
    nginx-full \
    php5-cli \
    php5-fpm \
    php5-mysqlnd \
    php5-curl \
    php5-mcrypt \
    php5-imagick \
    php5-xdebug \
    php5-intl \
    php5-mongo

# Stop services
service php5-fpm stop
service nginx stop

# Copy conf files
cp /tmp/php-cli.ini /etc/php5/cli/php.ini
cp /tmp/php-fpm.ini /etc/php5/fpm/php.ini
cp /tmp/nginx-default /etc/nginx/sites-available/default

# Start services
service php5-fpm start
service nginx start



Change php-cli/fpm order for avoid potential problem with socket
Change php-cli/fpm order for avoid potential problem with socket
