# Puzzler: config options ignored w/fcgi?

**URL:** <https://www.ruby-forum.com/t/puzzler-config-options-ignored-w-fcgi/66414>\
**Category:** Engines\
**Created:** [February 13, 2006, 5:31am UTC](https://www.ruby-forum.com/t/puzzler-config-options-ignored-w-fcgi/66414 "2006-02-13T05:31:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay-levitt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a88e57/32.png) [@jay-levitt](https://www.ruby-forum.com/u/jay-levitt)\
**Post date:** [February 13, 2006, 5:31am UTC](https://www.ruby-forum.com/t/puzzler-config-options-ignored-w-fcgi/66414/1 "2006-02-13T05:31:18Z")

</div>

I’m using the latest released UserEngine and LoginEngine, rails 1.0.

I’ve got a project that configures :app\_name, :app\_url, :salt, and  
:changeable\_fields in LoginEngine, and :admin\_login, :email\_from,  
:admin\_email, and :admin\_password in UserEngine. It then does

Engines.start :login, :user  
UserEngine.check\_system\_roles

When I run this on my Windows machine, using webrick, everything works  
as  
expected. However, running this on a linux box, using Apache 2.0 and  
fcgi,  
the confirmation e-mails at signup contain the default app\_name, url,  
from,  
etc.

I’ve restarted httpd and fcgi to no effect. The project is in  
subversion,  
and all the files are up to date on both boxes, so the project should be  
identical.

Clearly, the whole environment.rb file isn’t being skipped, or the  
engines  
wouldn’t work at all. And changeable\_fields seems to be working,  
because I  
can edit some added fields successfully, and they show up as input  
fields,  
not text\_boxes.

How can I troubleshoot what’s going on?

Jay L.

---

<div class="post-metadata">

**Author:** ![jay-levitt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a88e57/32.png) [@jay-levitt](https://www.ruby-forum.com/u/jay-levitt)\
**Post date:** [February 13, 2006, 8:41pm UTC](https://www.ruby-forum.com/t/puzzler-config-options-ignored-w-fcgi/66414/2 "2006-02-13T20:41:16Z")

</div>

On Sun, 12 Feb 2006 23:31:46 -0500, Jay L. wrote:

> When I run this on my Windows machine, using webrick, everything works as  
> expected. However, running this on a linux box, using Apache 2.0 and fcgi,  
> the confirmation e-mails at signup contain the default app\_name, url, from,  
> etc.

Never mind. I screwed up environment.rb, and must have failed to  
restart  
webrick on my own server, so I didn’t notice it. You have to put  
admin\_email and email\_from in BOTH LoginEngine and UserEngine sections.

I figured it out by adding

\<%= UserEngine::CONFIG.inspect %\>  
\<%= LoginEngine::CONFIG.inspect %\>

to the layout… that may be handy to someone else who runs into trouble.

Jay L.

---

<div class="post-metadata">

**Author:** ![jay-levitt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a88e57/32.png) [@jay-levitt](https://www.ruby-forum.com/u/jay-levitt)\
**Post date:** [February 13, 2006, 8:44pm UTC](https://www.ruby-forum.com/t/puzzler-config-options-ignored-w-fcgi/66414/3 "2006-02-13T20:44:08Z")

</div>

I doubt that ‘admin\_email’ is being used in the login engine at all  
(since it has no notion of an ‘admin user’…

- james

On 2/13/06, Jay L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> engine-users mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org](http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org)

–

- J \*  
~

---

<div class="post-metadata">

**Author:** ![jay-levitt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a88e57/32.png) [@jay-levitt](https://www.ruby-forum.com/u/jay-levitt)\
**Post date:** [February 13, 2006, 9:08pm UTC](https://www.ruby-forum.com/t/puzzler-config-options-ignored-w-fcgi/66414/4 "2006-02-13T21:08:38Z")

</div>

On Mon, 13 Feb 2006 19:43:55 +0000, James A. wrote:

> I doubt that ‘admin\_email’ is being used in the login engine at all  
> (since it has no notion of an ‘admin user’…

Looks like it’s just displayed to the user when confirmations are off:

```
if !LoginEngine.config(:use_email_notification)
  flash[:message] = "Please contact the system admin at

```

#{LoginEngine.config(:admin\_email)} to retrieve your password."

Jay
