failing to run apache2 with RackAutoDetect

3,531 views
Skip to first unread message

Asif Iqbal

unread,
Sep 5, 2009, 4:11:54 PM9/5/09
to puppet...@googlegroups.com
# /etc/init.d/apache2 restart
* Restarting web server apache2
Syntax error on line 21 of /etc/apache2/conf.d/puppetmasterd:?
Invalid command 'RackAutoDetect', perhaps misspelled or defined by a
module not included in the server configuration

[fail]

I am on ubuntu 9.04 running puppet 0.24.8 and I installed passenger
2.2.2 using the steps here

http://reductivelabs.com/trac/puppet/wiki/UsingPassenger and following section

" Installation Summary for Puppet 0.24.x for Debian/Ubuntu "

Any idea how to fix it?

--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

Asif Iqbal

unread,
Sep 7, 2009, 12:34:07 PM9/7/09
to puppet...@googlegroups.com
On Sat, Sep 5, 2009 at 4:11 PM, Asif Iqbal<vad...@gmail.com> wrote:
> # /etc/init.d/apache2 restart
>  * Restarting web server apache2
> Syntax error on line 21 of /etc/apache2/conf.d/puppetmasterd:?
> Invalid command 'RackAutoDetect', perhaps misspelled or defined by a
> module not included in the server configuration

I added the following lines in apache2.conf file as a fix

LoadModule passenger_module
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.2/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.2
PassengerRuby /usr/bin/ruby1.8

Thanks

Nigel Kersten

unread,
Sep 8, 2009, 11:02:49 AM9/8/09
to puppet...@googlegroups.com
On Mon, Sep 7, 2009 at 9:34 AM, Asif Iqbal <vad...@gmail.com> wrote:

On Sat, Sep 5, 2009 at 4:11 PM, Asif Iqbal<vad...@gmail.com> wrote:
> # /etc/init.d/apache2 restart
>  * Restarting web server apache2
> Syntax error on line 21 of /etc/apache2/conf.d/puppetmasterd:?
> Invalid command 'RackAutoDetect', perhaps misspelled or defined by a
> module not included in the server configuration

I added the following lines in apache2.conf file as a fix

  LoadModule passenger_module
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.2/ext/apache2/mod_passenger.so
  PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.2
  PassengerRuby /usr/bin/ruby1.8

Is this not in the instructions? You're going to have to enable the passenger module before you can use it...
 




Thanks

>
>                       [fail]
>
> I am on ubuntu 9.04 running puppet 0.24.8 and I installed passenger
> 2.2.2 using the steps here
>
> http://reductivelabs.com/trac/puppet/wiki/UsingPassenger and following section
>
> " Installation Summary for Puppet 0.24.x for Debian/Ubuntu "
>
> Any idea how to fix it?
>
> --
> Asif Iqbal
> PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
>



--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?





--
Nigel Kersten
nig...@google.com
System Administrator
Google Inc.

Asif Iqbal

unread,
Sep 8, 2009, 11:37:23 AM9/8/09
to puppet...@googlegroups.com
On Tue, Sep 8, 2009 at 11:02 AM, Nigel Kersten<nig...@google.com> wrote:
>
>
> On Mon, Sep 7, 2009 at 9:34 AM, Asif Iqbal <vad...@gmail.com> wrote:
>>
>> On Sat, Sep 5, 2009 at 4:11 PM, Asif Iqbal<vad...@gmail.com> wrote:
>> > # /etc/init.d/apache2 restart
>> >  * Restarting web server apache2
>> > Syntax error on line 21 of /etc/apache2/conf.d/puppetmasterd:?
>> > Invalid command 'RackAutoDetect', perhaps misspelled or defined by a
>> > module not included in the server configuration
>>
>> I added the following lines in apache2.conf file as a fix
>>
>>   LoadModule passenger_module
>> /usr/lib/ruby/gems/1.8/gems/passenger-2.2.2/ext/apache2/mod_passenger.so
>>   PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.2
>>   PassengerRuby /usr/bin/ruby1.8
>
> Is this not in the instructions? You're going to have to enable the
> passenger module before you can use it...

When I ran the `passenger-install-apache2-module' second time, I saw the
instructions from that script. I might have missed those instructions or
they never showed up during the first run.
Reply all
Reply to author
Forward
0 new messages