Skip to content

Instantly share code, notes, and snippets.

@lnoering
Last active August 29, 2015 14:26
Show Gist options
  • Save lnoering/9bd9ba02ef93036b4326 to your computer and use it in GitHub Desktop.
Save lnoering/9bd9ba02ef93036b4326 to your computer and use it in GitHub Desktop.
Nginx + PHP-FPM no Fedora!
## http://www.if-not-true-then-false.com/2011/install-nginx-php-fpm-on-fedora-centos-red-hat-rhel/
## http://www.itzgeek.com/how-tos/linux/fedora-how-tos/nginx-php-fpm-mariadb-on-fedora-21.html
## Desabilitar o HTTPD ##
systemctl disable httpd.service
## Habilitar o Nginx ##
systemctl enable nginx.service
## Habilitar o FPM para não precisar ficar startando ##
systemctl enable php-fpm.service
## SELinux ##
# Desabilitar #
sudo setenforce 0
## Liberar a o httpd ou a porta 80 no Firewall ##
firewall-cmd --permanent --zone=public --add-service=http
OU
firewall-cmd --permanent --zone=public --add --port=80/tcp
# Reiniciar Firewall #
systemctl restart firewalld.service
ou
firewall-cmd --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment