From: ad Date: 2009-12-29T10:35:07+09:00 Subject: Re: ruby + apache. need to export path=/opt/ruby/bin every time before starting apache On Dec 28, 5:19 pm, Ryan Davis wrote: > On Dec 28, 2009, at 13:20 , ad wrote: > > > Is there a way to set up this variable through apache? > > http://httpd.apache.org/docs/2.2/mod/mod_env.html#setenv Looks like there is a bug in mod_env which doesnt take the modified path. https://issues.apache.org/bugzilla/show_bug.cgi?id=43906 I eventually modified apachectl script and added the path in the configuration section. PATH=$PATH:/opt/ruby/bin ; export PATH