Skip to content

Instantly share code, notes, and snippets.

@vandorjw
Last active December 25, 2015 20:08
Show Gist options
  • Save vandorjw/7032231 to your computer and use it in GitHub Desktop.
Save vandorjw/7032231 to your computer and use it in GitHub Desktop.
Apache Notes, these are applicable to both 2.4 and 2.2
Check if which vhosts are running:
# httpd -S
Check your version of apache httpd
# httpd -v
If you are running centos, RHEL5,6 or 7, Fedora, remember to put
LoadModule wsgi_module modules/mod_wsgi.so
WSGISocketPrefix /var/run/wsgi
under /etc/httpd/conf.modules/10-wsgi.conf, or wherever you specify loading the wsgi module.
Is SELINUX interfering? Don't rush to disable it!
# setenforcing 0
Will immediately put it in permissive mode. Use it to debug. It'll stay until you reboot.
Also, you will likely need to set the following
# setsebool -P httpd_can_network_connect 1
# setsebool -P httpd_can_network_connect_db 1
# setsebool -P httpd_can_network_memcache 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment