Displaying 20 results from an estimated 100000 matches similar to: "accessing apache environment variables"
2020 Oct 23
0
Apache HTTPD not picking up environment variables.
On Fri, Oct 23, 2020 at 04:27:34PM +0000, Harold Pritchett wrote:
> I'm trying to install DB2 on a CentOS 7 server. The problem I'm
> seeing is that the Apache httpd server fails to pick up the db2
> environment variables. On an older version running under CentOS 5
> this was done by inserting the following lines into the httpd start
> script in /etc/sysconfig/httpd:
>
2006 Feb 08
2
Installing Rails on FreeBSD with Apache (and php)...
Hi,
Sometime in the near future I''m going to attempt an installation of
Rails on one of our school servers, so that a few of our most talanted
students also will have the opportunity to learn RoR. The problem is
that I''m not entirely sure on the best way to proceed, and I''m the only
teacher on the school with Rails experience, but only for Windows.
The server runs
2020 Oct 23
2
Apache HTTPD not picking up environment variables.
I'm trying to install DB2 on a CentOS 7 server. The problem I'm seeing is that the Apache httpd server fails to pick up the db2 environment variables. On an older version running under CentOS 5 this was done by inserting the following lines into the httpd start script in /etc/sysconfig/httpd:
if test -f /db2home/db2inst1/sqllib/db2profile; then
. /db2home/db2inst1/sqllib/db2profile
fi
2006 Mar 16
4
Apache and virtual hosts
Dear Mongrel users,
I would like to use Mongrel to introduce RoR on an existing Apache/PHP server. The server serves
several domains, set up as virtual hosts.
The idea is to install a Rails application to be used in addition to the existing configuration.
Example:
www.domain1.com/index.php -> Via Apache
www.domain1.com/appname/controller/action -> RoR application
I am at a loss how to do
2006 Jul 21
3
ROR - Apache - FastCGI / Can''t see stylesheets or javascript
Folks ...
I have been porting my app from dev environment on Webrick to Apache
with FastCGI. I have the app responding and pulling up the data, but it
is ignoring the "images", "stylesheets", "javascripts" directories
located in the public directory.
I''m running Apache under Suse Linux 9.x. Here is the information that I
have in my vhosts.conf file:
2006 Apr 03
1
Setting up FastCGI for RoR under Apache 1.3.34
All,
I have all of the components that I need to install RoR under FCGI for
Apache 1.3.34. I have:
mod_fcgi 2.4.2
fcgi 2.4.0 (developer''s kit)
ruby-fcgi-0.8.6
I am comfortable up to the point of installing mod_fcgi, however, I
don''t understand how fcgi and ruby-fcgi will be used by mod_fcgi.
How does mod_fcgi connect to fcgi and ruby-fcgi. I assume that there
are
2006 Mar 12
3
Apache, fastcgi, ruby-on-rails etc.
Hi all,
I've read a bit about fastcgi, and wondered if it might be an
interesting solution for e.g. running php in a user-switched environment
or running ruby-on-rails etc.
But I wonder why nobody (searched on Google) seems to use CentOS with
mod_fastcgi for Apache 2.x.
And I also wonder why people actually using Apache 2.x and ruby-on-rails
with CentOS did run a lighthttpd-fastcgi
2006 Jun 17
2
ROR deployment on Apache - DocRoot set to /
I am trying to get a ROR app running on a linux box running Apache 1.3
at my hosting comapny, but cannot get it running.
There is a fresh/clean ROR app in the base directory /
.htaccess, dispatch.cgi, dispatch.fcgi and dispatch.rb are all in /
All dispatch files have been set to 755.
ROR docs say to point doc root at /public/ and to put .htaccess,
dispatch.cgi, dispatch.fcgi and dispatch.rb
2006 Jul 11
0
"uninitialized constant Enum" in RoR app under Apache
Hi, all.
I am trying to manage to run my application under Apache+Mongrel but i
am stucked with very difficult (for me) problem.
The problem is: RMagick stuff works perfectly under WebRick. My
environment is
Ubuntu 5.10, ImageMagick 6.2.8, latest version of mongrel, rails,
rmagick... Apache 2.2
But if I start the same application under Mongrel I get following error
NameError (uninitialized
2006 Jul 25
3
Getting ssl environment to mongrel from apache
I have apache 1.3 with mod_ssl in front of mongrel/rails. Apache is
setup to require client certification, and I''m trying to figure out
how to pass the ssl env variables to mongrel. Here is the apache
config to proxy requests to mongrel. I haven''t tried to pass env
variables like this before so I''m not sure if it''s the apache config I
have wrong, if mongrel
2007 Apr 26
1
Apache + fastcgi and rails in vendor
Hi
I want to run my new shiny rail application with apache. Running my
application using cgi works but is very slow. So I want to switch to
fastcgi.
I downloaded and installed mod_fcgid and have apache running my fcgi
scripts. Now my problems start :-(
I''m running apache on an ubuntu system. The ubuntu packed for ruby and
RoR is not the most recent. As I need the most recent rails
2006 Apr 06
2
Apache 1.3 OSX Tiger(intel) mod_fastcgi
Hi,
I''m new to RoR and am trying to get it up and running on my iMac Tiger
(intel).
I was able to get it working with the built in server and am now trying to
get it working with apache 1.3
I''m stuck on getting a universal binary for mod_fastcgi.so. or source code
to compile it myself.
Has anyone been able to get RoR to run successfully with this configuration?
2011 Feb 10
3
ror 3 + apache2 + passenger = apache test page
I set up Passenger on manual -
http://wiki.rubyonrails.org/deployment/apache-passenger
Passenger and Apache install without errors.
/etc/httpd/conf/httpd.conf:
>> ...
>> LoadModule passenger_module
>> /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.2/
>> ext/apache2/mod_passenger.so
>> PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.2
>>
2006 Mar 26
3
help with rails and apache
i just went through the tutorial on
http://wiki.rubyonrails.com/rails/pages/HowtoInstallAndRunRubyOnRailsOnCpanel
but i''m having some problems.
when i add:
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp/fcgi_ipc/
AddHandler fastcgi-script .fcgi
</IfModule>
under the line that says:
LoadModule fastcgi_module libexec/mod_fastcgi.so
apache fails to restart.
i went on
2006 Jun 02
4
RoR on Apache not working
Hi
I''m a RoR newbie, in fact i''ve been using it for less than 24 hours, but
I''m not an internet/pc/apache/developement newbie so I expected this to
go much easier :)
Ok, here it goes. I''ve been trying to get RoR working with apache both
on a RH server and after i didn;t managed there I tried on my machine,
an windows XP/Apache2 machine.
I don''t like
2006 Feb 20
4
how to set a simple application in Apache?
I am not familar with the RoR site stucture on Apache.
I did this but.it doen''t work.
I only want to output a word on a page with RoR.
I did this
1. >cd public_html (enter web root)
2. >rails sayhello
3. >cd sayhello
4. >cd app
5. >cd controller (enter controller folder)
6. edit application.rb
def hello
end
7. cd views (enter views folder )
8. add a
2006 Nov 13
9
Setting up Mongrel and Apache , some direction needed
I have a site that is PHP on Apache / RedHat , but will send requests to a
subdomain (running Rails) for database operations.
I believe the set up should be to have ROR using Mongrel, and an Apache
virtual host passing requests from apache to mongrel.
Does this sound correct ?
I believe the Virtual Host is set up in Apache.
One of my problems is I can''t find the httpd.conf file for
2007 Mar 03
0
config.cache_classes value ignored in development mode under Apache 2
I''m running latest version of RoR under Apache 2 (using a virtual
host), if I change the environment config within the virtual host
(SetEnv RAILS_ENV development) then it changes environment as
expected.
However when I''m working with views and not the model I would like
have RoR cache the model files, I have tried changing the value of
config.cache_classes to true in the
2006 Jan 10
3
ROR setup problems with Suse + apache
hello,
I am tying to run ROR on apache 2 with suse linux 9.3,
and I do not succeed with it.
I set rubby und rails and all scripts are running fine.
my Document root :
/srv/rails/demo/public
I did not setup FastCGI because I could not run it with
normal CGI jet.
my Virtual Server runs on 192.168.0.111
ServerName rails
DocumentRoot /srv/rails/demo/public
<Directory
2006 Jun 12
2
conditional validation
Hi how can I validate a field only if another field is set to a specific value?
I tried to use
validates_length_of :fieldname, :maximum => 100, :if =>
:otherfieldname == ''myvalue''
But doesn''t work
Thanks
Paolo