Created
November 13, 2015 14:07
-
-
Save freemanirl/48578a0f4da68c45230c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum remove -y php* | |
yum install -y epel-release vim rsync git git-core zsh ntp screen nano wget htop gcc tree nginx net-tools | |
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm | |
yum install -y php56w php56w-mbstring php56w-xml php56w-fpm php56w-pdo php56w-mysqli | |
sudo sed -ri 's/^(;)(cgi.fix_pathinfo=)(1)$/\2'0'/' /etc/php.ini | |
sudo sed -ri 's/^(listen = )(127.0.0.1:9000)$/\1\/var\/run\/php-fpm\/php-fpm.sock/' /etc/php-fpm.d/www.conf | |
sudo sed -ri 's/^(;)(listen.owner = )(nobody)$/\2'nginx'/' /etc/php-fpm.d/www.conf | |
sudo sed -ri 's/^(;)(listen.group = )(nobody)$/\2'nginx'/' /etc/php-fpm.d/www.conf | |
sudo sed -ri 's/^(;)(listen.mode = 0666)$/\2/' /etc/php-fpm.d/www.conf | |
sudo sed -ri 's/^(user = )(apache)$/\1'nginx'/' /etc/php-fpm.d/www.conf | |
sudo sed -ri 's/^(group = )(apache)$/\1'nginx'/' /etc/php-fpm.d/www.conf | |
systemctl restart php-fpm.service | |
systemctl restart nginx.service | |
curl -sS https://getcomposer.org/installer | php | |
mv composer.phar /usr/local/bin/composer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment