How to resolve the Passenger module installation problem?

1,814 views
Skip to first unread message

Zhu J.C.

unread,
Jul 1, 2016, 3:47:00 AM7/1/16
to Phusion Passenger Discussions
By following the tutorial from this link,  I stuck in getting Passenger module installed correctly, error is shown below. So I can't continue to deploy the server.

FYI, the demo app from quick start tutorial can be up and running in my development environment,. How do I proceed? 


$ passenger-install-apache2-module

If the menu doesn't display correctly, press '!'


 ‣ ⬢  Passenger itself

   ⬢  Apache


-------------------------------------------------------------------------


Checking whether there are multiple Apache installations...

Only a single installation detected. This is good.


-------------------------------------------------------------------------


 * Checking whether this Passenger install is in PATH...

 * Checking whether there are no other Passenger installations...

 * Checking whether Apache is installed...

 * Checking whether the Passenger module is correctly configured in Apache...


   Your Apache installation might be broken

   

   You are about to validate Phusion Passenger against the following

   Apache installation:

   

      apxs2: /usr/bin/apxs2

   

   However, this Apache installation appears to be broken, so this program

   cannot continue. To find out why this program thinks the above Apache

   installation is broken, run:

   

      export ORIG_PATH="$PATH"

      rvmsudo -E /bin/bash

      export PATH="$ORIG_PATH"

      /home/ubuntu/.rvm/gems/ruby-2.3.0/wrappers/ruby /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/passenger-5.0.29/bin/passenger-config --detect-apache2



Detected 1 error(s), 0 warning(s).



 

Daniel Knoppel

unread,
Jul 1, 2016, 5:20:58 AM7/1/16
to Phusion Passenger Discussions
So what is the output of the commands that it asks you to run at the end?

- Daniel

Zhu J.C.

unread,
Jul 3, 2016, 12:32:36 AM7/3/16
to Phusion Passenger Discussions
Thanks a lot for your hint! I tried to install Passenger against the specific Apache version, and the validation is passed.


Validating installation...


 * Checking whether this Passenger install is in PATH...

 * Checking whether there are no other Passenger installations...

 * Checking whether Apache is installed...

 * Checking whether the Passenger module is correctly configured in Apache...  



The output was

Final autodetection results

 * Found Apache 2.4.7!

   Information:

      apxs2          : /usr/bin/apxs

      Main executable: /usr/sbin/apache2

      Control command: /usr/sbin/apache2ctl

      Config file    : /etc/apache2/apache2.conf

      Error log file : /var/log/apache2/error.log


   To install Phusion Passenger against this specific Apache version:

      /home/ubuntu/.rvm/gems/ruby-2.3.0/wrappers/ruby /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/passenger-5.0.29/bin/passenger-install-apache2-module --apxs2-path='/usr/bin/apxs'


   To start, stop or restart this specific Apache version:

      /usr/sbin/apache2ctl start

      /usr/sbin/apache2ctl stop

      /usr/sbin/apache2ctl restart


   To troubleshoot, please read the logs in this file:

      /var/log/apache2/error.log

Reply all
Reply to author
Forward
0 new messages