# Mod\_rails -- where do logs go?

**URL:** <https://www.ruby-forum.com/t/mod-rails-where-do-logs-go/134637>\
**Category:** Ruby\
**Created:** [April 13, 2008, 8:40am UTC](https://www.ruby-forum.com/t/mod-rails-where-do-logs-go/134637 "2008-04-13T08:40:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jh100000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b2d939/32.png) [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Post date:** [April 13, 2008, 8:40am UTC](https://www.ruby-forum.com/t/mod-rails-where-do-logs-go/134637/1 "2008-04-13T08:40:24Z")

</div>

I just set up mod\_rails ([http://www.modrails.com/](http://www.modrails.com/)). Install was easy.  
Application seems to be running fine.

One thing I am confused about is that on my server no new entries to the  
production log are being added. I am not sure if this is by design or I  
made a mistake.

Any advice? It seems mod-rails has only been out for a few days so not  
a ton of information I could find yet.

Thanks,

John

---

<div class="post-metadata">

**Author:** ![jh100000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b2d939/32.png) [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Post date:** [April 13, 2008, 9:11am UTC](https://www.ruby-forum.com/t/mod-rails-where-do-logs-go/134637/2 "2008-04-13T09:11:54Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

John H. wrote:  
| I just set up mod\_rails ([http://www.modrails.com/](http://www.modrails.com/)). Install was easy.  
| Application seems to be running fine.  
|  
| Any advice? It seems mod-rails has only been out for a few days so not  
| a ton of information I could find yet.

> **[Support](https://www.phusionpassenger.com/support#documentation)**
>
> Get help with Passenger the way you need it: through community support, Enterprise support or simply via high quality documentation.

However, Apache modules stuff their logs into apache’s log (not  
surprising, since they are part of the Apache webserver).

* * *

Phillip G.  
Twitter: [twitter.com/cynicalryan](http://twitter.com/cynicalryan)

Each module should do one thing well.  
~ - The Elements of Programming Style (Kernighan & Plaugher)  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.8 (MingW32)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org](http://enigmail.mozdev.org)

iEYEARECAAYFAkgBsfcACgkQbtAgaoJTgL/s4wCfZ8MV9jhymkHzW1KwlpHTYpGF  
URgAoIf7KcxRgtylANgk8lvcrwQf8/5b  
=pzqr  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![jh100000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b2d939/32.png) [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Post date:** [April 13, 2008, 8:33pm UTC](https://www.ruby-forum.com/t/mod-rails-where-do-logs-go/134637/3 "2008-04-13T20:33:06Z")

</div>

I got it working. It seems mod\_rails is logging to log/production.logs,  
same as before but it can require a minor tweek.

The fix was to follow:

# 

By default, Passenger runs Rails applications in production mode, so  
please be sure to check production.log instead of development.log. See  
RailsEnv for configuration.

# 

By default, Passenger runs Rails applications as the owner of  
environment.rb. So the log file can only be written to if that user has  
write permission to the log file. Please chmod or chown your log file  
accordingly.
