When faced with an entry in the Apache error log for a site that looks like:

(13)Permission denied: mod_wsgi (pid=12345): Unable to connect to WSGI daemon process ‘myapp’ on ‘/etc/httpd/logs/wsgi.12346.0.1.sock’ after multiple attempts.

The solution is to include the following in the Apache config file e.g. httpd.conf:

WSGISocketPrefix run/wsgi

This is an alternative directory that will hopefully have the correct permissions.