logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Passenger - Ruby - Debian LoadModule takes two arguements?
Author
jwa



Joined: 09 Aug 2013
Posts: 1

PostPosted: Fri 25 Apr '14 23:45    Post subject: Passenger - Ruby - Debian LoadModule takes two arguements? Reply with quote

I'm a newb, can't sort it out.
Would somebody clue me in on what may be the problem here? Restarting apache after the passenger install throws this msg.

apache2: Syntax error on line 271 of /etc/apache2/apache2.conf: LoadModule takes two arguments, a module name and the name of a shared object file to load it from
Action 'configtest' failed.
The Apache error log may have more information.

Here's the path and the file mod_passenger.so

/var/lib/gems/1.9.1/gems/passenger-4.0.41/buildout/apache2# ls

Bucket.o Configuration.o Hooks.o mod_passenger.o mod_passenger.so module_libboost_oxt module_libboost_oxt.a module_libpassenger_common

Here's the path and file ruby1.9.1
/usr/bin# ls ruby1.9.1
ruby1.9.1

So I think I've got the module and the file I need.

I added /var/lib/gems/1.9.1 to the path.
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/lib/gems/1.9.1

Here's how I installed passenger. And what it said to add to apache2.conf.
/# gem install passenger

/# passenger-install-apache2-module

Please edit your Apache configuration file, and add these lines:

LoadModule passenger_module
/var/lib/gems/1.9.1/gems/passenger-4.0.41/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /var/lib/gems/1.9.1/gems/passenger-4.0.41
PassengerDefaultRuby /usr/bin/ruby1.9.1
</IfModule>

After you restart Apache, you are ready to deploy any number of web applications on Apache, with a minimum amount of configuration!
Press ENTER to continue.

Here's what I've keyed into the apache2.conf file.

LoadModule passenger_module
/var/lib/gems/1.9.1/gems/passenger-4.0.41/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /var/lib/gems/1.9.1/gems/passenger-4.0.41
PassengerDefaultRuby /usr/bin/ruby1.9.1
</IfModule>

What I have in the err log.
/var/log/apache2# more error.log
[Fri Apr 25 09:47:03 2014] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations
[Fri Apr 25 09:55:02 2014] [notice] caught SIGTERM, shutting down
[Fri Apr 25 09:55:20 2014] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations
[Fri Apr 25 10:10:13 2014] [notice] SIGUSR1 received. Doing graceful restart
[Fri Apr 25 10:10:13 2014] [notice] Apache/2.2.22 (Debian) Phusion_Passenger/3.0.13 configured -- resuming normal operations
[Fri Apr 25 10:38:02 2014] [notice] caught SIGTERM, shutting down
[Fri Apr 25 10:38:03 2014] [notice] Apache/2.2.22 (Debian) Phusion_Passenger/3.0.13 configured -- resuming normal operations

apache2 -v
Server version: Apache/2.2.22 (Debian)
more debian_version
7.4
ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [i486-linux]
gem list
rails (4.1.0)
This is a fresh install Debian, Apache2, Ruby, and MySQL. Last thing I did was edit apache2.conf. No errors until the very end when I added those lines to apache2.conf.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 29 Apr '14 15:43    Post subject: Reply with quote

The LoadModule needs to be one line!

LoadModule module_name path

Code:
LoadModule passenger_module /var/lib/gems/1.9.1/gems/passenger-4.0.41/buildout/apache2/mod_passenger.so
Back to top


Reply to topic   Topic: Passenger - Ruby - Debian LoadModule takes two arguements? View previous topic :: View next topic
Post new topic   Forum Index -> Apache