Skip to content

Instantly share code, notes, and snippets.

@paperdarwin
Created September 27, 2014 23:11
Show Gist options
  • Save paperdarwin/b5bf910f49875d74c8b5 to your computer and use it in GitHub Desktop.
Save paperdarwin/b5bf910f49875d74c8b5 to your computer and use it in GitHub Desktop.
fix bad gateway openstack
nano /etc/php5/fpm/pool.d/www.conf
# set listen = 127.0.0.1:9000 then save
# restart fpm
service php5-fpm restart
# edit your site, make sure fastcgi_pass 127.0.0.1:9000;
#test nginx
nginx -t
#restart nginx
nginx -s reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment