sudo yum update -y
sudo rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
sudo yum install --enablerepo=webtatic-testing php70w php70w-devel php70w-fpm php70w-mysqlnd php70w-mbstring php70w-pdo php70w-mcrypt php70w-xml
Note: use php70w-mysqlnd instead php70w-mysql
sudo yum -y install mysql-server sudo service mysqld start
sudo yum install nginx
sudo yum install git
curl -sS https://getcomposer.org/installer | php
chmod +x composer.phar
mv composer.phar /usr/local/bin/composer
sudo vi /etc/nginx/nginx.conf
sudo vi /etc/php-fpm.d/www.conf
sudo /etc/init.d/nginx start
sudo /etc/init.d/php-fpm start
sudo chkconfig nginx on
sudo chkconfig php-fpm on
sudo chkconfig mysqld on
ssh-keygen -t rsa -C "[email protected]"
pbcopy < ~/.ssh/id_rsa.pub
ssh -T [email protected]
sudo vi /etc/php.ini
I follow your steps, but I obtain "Error 502 Bad gateway"
What are the possible causes?
How I can figure it out?