• bitla
  • Company Blog
  • Product Blog
  • Mobile Blog
  • Web Blog

We Build Successful Web, Mobile and Social Applications

Hire our experts to get your app done the right way

Installing Passenger passenger-install-apache2-module: command not found

Posted by Dash
May 15, 2010

 

If you are installing/upgrading Phusion Passenger (a.k.a mod_rails/mod_rack) and facing the following error at the second step when you run passenger-install-apache2-module

sudo: passenger-install-apache2-module: command not found

That means gems bin directly is no in the PATH. Either you can add this to the PATH or You can simply run the command with the full path to passenger-install-apache2-module.

 

In our case, we use enterprise ruby and the command looks like as below:

sudo /opt/ruby-enterprise-1.8.7-2010.01/bin/passenger-install-apache2-module

 

You can find the bin path to the gems by issuing the following command – note the bold blue text:

server5 ~: gem environment
RubyGems Environment:
  – RUBYGEMS VERSION: 1.3.5
  – RUBY VERSION: 1.8.7 (2009-12-24 patchlevel 248) [x86_64-linux]
  – INSTALLATION DIRECTORY: /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8
  – RUBY EXECUTABLE: /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby
  – EXECUTABLE DIRECTORY: /opt/ruby-enterprise-1.8.7-2010.01/bin
  – RUBYGEMS PLATFORMS:
    – ruby
    – x86_64-linux
  – GEM PATHS:
     – /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8
     – /home/username/.gem/ruby/1.8
  – GEM CONFIGURATION:
     – :update_sources => true
     – :verbose => true
     – :benchmark => false
     – :backtrace => false
     – :bulk_threshold => 1000
     – :sources => ["
http://gems.rubyforge.org/", "http://gems.github.com"]
  – REMOTE SOURCES:
     –
http://gems.rubyforge.org/
     – http://gems.github.com

PassengerPassenger

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)


CAPTCHA Image
Refresh Image
  • Categories

    • ActiveRecord
    • Passenger
    • RoR
    • Ruby
    • Ruby on Rails
    • Serialization
    • Uncategorized
  • Tags

    ActiveRecord Android CSS3 HTML5 iPad iPhone jQTouch Passenger rails rails background job redis RoR Ruby Ruby on Rails ruby on rails background job ruby on rails BJ Serialization
  • Recent Posts

    • Ubuntu Linux – Disk Full 100% What to do?
    • SOAP4R and ActionWebServices Conflicts and the FIX
    • How to install and configure Postfix in Ubuntu
    • How to reconfigure Postfix?
    • Learning HTML5 and CSS3 by example
    • Introduction to HTML5 & CSS3
    • Installing Passenger passenger-install-apache2-module: command not found
    • Upgrading to Phusion Passenger 2.2.11
    • Deserializing an object failed in ActiveRecord
    • Ruby on Rails: Serializing and DeSerializing Ruby objects
  • Archives

    • August 2010
    • July 2010
    • May 2010
    • March 2010
  • Our Products

    mobee.in

    Simplified Email Messaging Solution

    TicketSimply.com

    Simplified BUS Travel Management Software for Travel Operators & Travel Agents!

    AgentSimply.com

    Simplified Travel Agent Booking Software

    SimplyBus.com

    Online BUS Tickets Booking

    Bingra.com

    Info your way
What we can do for you?
Bitla has built several innovative Web and Mobile applications ourselves & also helping Web start-ups, Mobile start-ups, Small and Medium Enterprises in building their web & mobile business with strategy, designs, development, scalable architectures, cloud deployments, SEO & SEM and maintain their applications to ensure success.

We can turn your idea/vision into reality.


Read our Blogs
Company Blog
Product Blog
Web Blog
Mobile Bog
How we do it
Discovery
Strategy
Design
Kick-Start
Develop
Maintain
Services
Web Applications
Mobile Applications
Wap & Sms Application
Web Designs
Company
Home
Careers
Contact Us
About