Ideally you would create a fresh discussion thread which properly explains your own problem, rather than referencing an existing discussion, that could well end up not being the same even if you think it is.
As explained in that discussion, what file you need to change depends on what platform you are using, but you don’t say what platform you are using, whether you are using the operating system Apache or an Apache which you installed yourself. Setting environment variables in startup scripts for Apache is also not necessarily recommended anyway, as it affects the whole of Apache and so you can’t be specific and have it only affect one specific application. The better way is to set environment variables in the WSGI script file. If you are using Django where it already has a wsgi.py file and that is part of your code repo, then you would want to create a new WSGI script file outside of your code repo and which is just on the host, which sets the environment variables and then imports the original module with the WSGI application in it. This is of course is Django specific, so you also need to indicate what framework you are using, how you currently have mod_wsgi configured so any suggested solution can be tailored to your circumstances. Graham > On 6 Oct 2016, at 10:49 AM, Varun Boyapati <[email protected]> wrote: > > Hi All, > > My situation was exactly same to this. But I was using Apache 2.4 Version. > > I tried to add the environment variables in bashrc but still getting the same > issue. Can you please help me on this. Hard for me to get it down from 2 > days. Not able to fix that. > > Thanks in Advance. > > On Saturday, July 30, 2011 at 6:58:11 PM UTC-7, [email protected] > <http://sunrise.com/> wrote: > Thank You, Thank You, Thank You, Thank You, Thank You, Thank You, > It's working like a charm. > > Graham wrote: > Don't believe /etc/profile is used. If envvars doesn't exist, which file you > change depends on the platform > > Could be one of the follow: > > /etc/sysconfig/httpd it was this one for RHEL/Centos. > > /etc/init.d/httpd > > /etc/init.d/apache > > In all my trial and error I've got multiple .odbc.ini files scattered about. > I'll start deleting those one by one to verify which one ( /var/www I think) > is the right one. > > Again, thank you for your help and patience with ignorance of SysAdmin issues. > > Fred. > > -- > 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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/modwsgi > <https://groups.google.com/group/modwsgi>. > For more options, visit https://groups.google.com/d/optout > <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 https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
