I am trying to setup a a django (mod-wsgi) app on a server on the subdomain accounts.mysite.com (D.O. Droplet). When I try to reload apache, I get the following errors:
AH00526: Syntax error on line 2 of /etc/apache2/sites-enabled/dev.mysite.com.conf:
SuexecUserGroup configured, but suEXEC is disabled: Invalid owner or file mode for /usr/lib/apache2/suexec
I didn't initially set this up so I am in the "i don't want to break it" mindset - perhaps being too cautious.
That being said I want to run the config by serverfault to see if anything stands out - I haven't worked with fcgi in a few years, It looks ok to me, but there are multiple simlinks. And the original dev seems to be setting the suexec group by user/group id.
/usr/lib/apache2/suexec has the following chmod settings:
lrwxrwxrwx 1 root root 24 Aug 25 2014 suexec -> /etc/alternatives/suexec
which takes me to here
lrwxrwxrwx 1 root root 30 Aug 25 2014 suexec -> /usr/lib/apache2/suexec-custom
(another simlink to)
-rwsr-xr-- 1 root www-data 18472 Jul 22 2014 suexec-custom
The line 2 in question is this:
SuexecUserGroup "#1002" "#1002"
As mentioned above, this the id of the "dev" user,
I have tried multiple different user group combos here and it hasn't worked.
Also...
I confirmed suexec has been enabled.
I have tried changing the owner/group of the process.
I haven't tried anything else I wanted to ask advice first.
Thanks.