Last active
September 9, 2016 08:32
-
-
Save Trexology/030e2bc5ac39d3bd6ab30dc7665a1c9b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env bash | |
sudo yum update -y | |
sudo yum install httpd | |
cd | |
wget https://mirror.webtatic.com/yum/el6/latest.rpm | |
sudo yum install latest.rpm -y | |
sudo yum-config-manager --enable webtatic | |
sudo yum clean all | |
sudo yum install --enablerepo=webtatic php56w php56w-bcmath php56w-gd php56w-imap php56w-mbstring php56w-mcrypt php56w-mysqlnd php56w-pear php56w-xml php56w-soap php56w-devel -y | |
sudo yum install php56w-fpm php56w-opcache -y #thread safety | |
sudo service httpd restart | |
pecl download pthreads-2.0.10 | |
tar zxvf pthreads-2.0.10.tgz | |
cd pthreads-2.0.10 | |
zts-phpize | |
./configure --with-php-config=/usr/bin/zts-php-config | |
make | |
sudo cp modules/pthreads.so /usr/lib64/php-zts/modules/ | |
sudo vim /etc/sysconfig/httpd # enable worker mode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment