Code Monkey home page Code Monkey logo

Comments (11)

FooBarWidget avatar FooBarWidget commented on June 4, 2024

From honglilai on April 15, 2008 13:05:31

Hi erbmicha. Are these instructions applicable for RHEL 4 only, or for newer RHEL
versions as well?

Labels: -Type-Defect Type-Enhancement

from passenger.

FooBarWidget avatar FooBarWidget commented on June 4, 2024

From erbmicha on April 15, 2008 13:25:54

Sorry, but I do not know as I only have access to RHEL 4 servers. I assume that the up2date commands were
moved forward with subsequent releases...

from passenger.

FooBarWidget avatar FooBarWidget commented on June 4, 2024

From honglilai on April 16, 2008 04:02:49

Labels: -Priority-Medium Priority-Low OpSys-Linux Usability

from passenger.

FooBarWidget avatar FooBarWidget commented on June 4, 2024

From osh.sean on April 22, 2008 13:34:38

up2date is only applicable to RHEL4 (as far as I know) ... I have access to both and RHEL 5 uses "yum"...

from passenger.

FooBarWidget avatar FooBarWidget commented on June 4, 2024

From xipher1 on April 27, 2008 13:06:09

I am on RHEL as well, but I installed apache 2 from source, is there a way to specify
the location of these files on the command line when running
passenger-install-apache2-module?

from passenger.

FooBarWidget avatar FooBarWidget commented on June 4, 2024

From honglilai on April 27, 2008 13:47:37

Yes. See "2.2. Specifying the correct Apache installation" in the Users guide.

from passenger.

FooBarWidget avatar FooBarWidget commented on June 4, 2024

From mikeisgreat on May 18, 2009 11:25:36

mod_rails passenger RHEL4 issues and fixes (multiple apaches installed)
I had a migration to complete today. I was dropping mongrel while moving from rails1
to rails2 on our customer support server. It got a little bit ugly when trying to get
passenger (mod_rails) up and running.

There was an old httpd package installed by up2date awhile back that was not in use
but seemed to be the culprit. I haven't been using that for a long time, we use our
own compiled version of apache.

after installing passenger via "gem install passenger":

[Mon May 18 11:48:26 2009] [error] *** Passenger could not be initialized because of
this error: Could not connect to the ApplicationPool server: Connection reset by peer
(104)
[Mon May 18 11:48:26 2009] [notice] Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7a
DAV/2 Phusion_Passenger/2.2.2 configured -- resuming normal operations
[Mon May 18 11:48:40 2009] [notice] caught SIGTERM, shutting down
/usr/local/apache/logs/passenger-2.2.2/ext/apache2/ApplicationPoolServerExecutable:
error while loading shared libraries: libapr-1.so.0: cannot open shared object file:
No such file or directory
[Mon May 18 11:56:25 2009] [error] *** Passenger could not be initialized because of
this error: Could not connect to the ApplicationPool server: Connection reset by peer
(104)
[Mon May 18 11:56:25 2009] [notice] Digest: generating secret for digest
authentication ...
[Mon May 18 11:56:25 2009] [notice] Digest: done
/usr/local/apache/logs/passenger-2.2.2/ext/apache2/ApplicationPoolServerExecutable:
error while loading shared libraries: libapr-1.so.0: cannot open shared object file:
No such file or directory
[Mon May 18 11:56:26 2009] [error] *** Passenger could not be initialized because of
this error: Could not connect to the ApplicationPool server: Connection reset by peer
(104)
[Mon May 18 11:56:26 2009] [notice] Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7a
DAV/2 Phusion_Passenger/2.2.2 configured -- resuming normal operations

after reading the passenger docs I set:

export APXS2=/usr/local/apache/bin/apxs

and ran "passenger-install-apache2-module"

Checking for required software...

  • GNU C++ compiler... found at /usr/bin/g++
  • Ruby development headers... found
  • OpenSSL support for Ruby... found
  • RubyGems... found
  • Rake... found at /usr/local/bin/rake
  • Apache 2... found at /usr/local/apache/bin/httpd
  • Apache 2 development headers... found at /usr/local/apache/bin/apxs
  • fastthread... found
  • fastthread... found
  • Apache Portable Runtime (APR) development headers... found at
    /usr/local/apache/bin/apr-1-config
  • Apache Portable Runtime Utility (APU) development headers... found at
    /usr/local/apache/bin/apu-1-config

..and everything looked okay until I tried to hit the site. It wasn't loading the
rails app with the same error above. After removing the old up2date rpm's for httpd

rpm -e --nodeps httpd-devel

After removing the older httpd rpm's and attempted to build the apache module:

Checking for required software...

  • GNU C++ compiler... found at /usr/bin/g++
  • Ruby development headers... found
  • OpenSSL support for Ruby... found
  • RubyGems... found
  • Rake... found at /usr/local/bin/rake
  • Apache 2... not found
  • Apache 2 development headers... not found
  • fastthread... found
  • fastthread... found
  • Apache Portable Runtime (APR) development headers... not found
  • Apache Portable Runtime Utility (APU) development headers... not found

Some required software is not installed.
But don't worry, this installer will tell you how to install them.

Which I thought was odd because previously it was telling me it was using the headers
found in /usr/local/apache -- where it should have been.

next step:

I added the following to /etc/ld.so.conf

echo "/usr/local/apache/lib" >> /etc/ld.so.conf

than ran:

ldconfig

I removed the passenger gem and reinstalled it.

after installing the apache module -- wallah. app is running.

hopefully that helps someone else and saves them a little time.

from passenger.

FooBarWidget avatar FooBarWidget commented on June 4, 2024

From honglilai on May 18, 2009 11:37:47

mikeisgreat: your problem is actually related to a linking bug that we fixed a few
days ago. The next version should work without you having to edit ld.so.conf.

from passenger.

FooBarWidget avatar FooBarWidget commented on June 4, 2024

From mikeisgreat on May 18, 2009 15:17:12

honglilai: ack! Yes, this is what I figured,but it still took me about an hour to
figure out. would've take less, but I forgot to run ldconfig after editing ld.so.conf.

thanks for putting my dogs (mongrels) to sleep! :-)

from passenger.

FooBarWidget avatar FooBarWidget commented on June 4, 2024

From kanarip on July 17, 2009 01:14:37

Patch in commit b3e6a03cc81981dfd7e7ab5b673575def5381602 on
git://git.kanarip.com/passenger applies to:

origin/stable-1.0
origin/stable-2.0
origin/stable-2.1

origin/master

from passenger.

FooBarWidget avatar FooBarWidget commented on June 4, 2024

From honglilai on February 04, 2013 01:23:50

Status: WontFix

from passenger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.