What is ServerRoot directive set in your Apache configuration?
And what do you get if you run:
apxs -q runtimedir
I have seen one case before where the socket prefix calculation was totally
wrong and never did get to the bottom of it.
The code has:
object->socket_prefix = DEFAULT_REL_RUNTIMEDIR "/wsgi";
object->socket_prefix = ap_server_root_relative(p, object->socket_prefix);
DEFAULT_REL_RUNTIMEDIR is a compile time constant most likely derived from
'runtimedir' as shown by 'apxs'.
But then it goes through ap_server_root_relative() and that is what seemed to
be screwing things up last time.
I could well be using it wrong and a strange configuration may be mucking
things up.
So if can know what those values are, may give a clue.
Graham
On 01/12/2014, at 6:50 PM, r van dam <[email protected]> wrote:
> On my old server with apache2.2 I use mod_wsgi in daemon mode without
> problems. I use this configuration in the virtual host part of httpd.conf:
>
> WSGIDaemonProcess stacaravan user=stacaravan group=stacaravan threads=25
> WSGIProcessGroup stacaravan
> WSGIScriptAlias / /home/stacaravan/stacaravan/stacaravan/wsgi.py
>
> On my new server I use Apache2.4 with mod_wsgi-4.3.2
> Without daemon mode everything works fine, but with daemon mode I got this
> error:
> [wsgi:error] [pid 13199] (13)Permission denied: [client 81.58.150.99:58714]
> mod_wsgi (pid=13199): Unable to connect to WSGI daemon process 'stacaravan'
> on '/tmp.13194.0.2.sock'., referer:
>
> I solved this by making a /var/run/apache2 directory with 755 permission, and
> use the WSGISocketPrefix run/apache2 directive (Is this the right way to
> solve?)
>
> When I add "WSGIProcessGroup stacaravan" to the httpd.conf of the virtual
> server I get the following error:
> [wsgi:error] [pid 13915] [client 81.58.150.99:58850] No WSGI daemon process
> called 'stacaravan' has been configured:
> /home/stacaravan/stacaravan/stacaravan/wsgi.py
>
> Any help is highly appreciated.
>
> - OS debian 7.7
> - Custombuild apache 2.4 (Directadmin)
> - Mod_wsgi version: 4.3.2 (compiled)
> - used with Django 1.7
>
> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.