# What is the working directory for fastcgi procs w/Apache 2?

**URL:** <https://www.ruby-forum.com/t/what-is-the-working-directory-for-fastcgi-procs-w-apache-2/93909>\
**Category:** Rails\
**Created:** [April 13, 2006, 6:38pm UTC](https://www.ruby-forum.com/t/what-is-the-working-directory-for-fastcgi-procs-w-apache-2/93909 "2006-04-13T18:38:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [April 13, 2006, 6:38pm UTC](https://www.ruby-forum.com/t/what-is-the-working-directory-for-fastcgi-procs-w-apache-2/93909/1 "2006-04-13T18:38:36Z")

</div>

When running Apache and FastCGI with Rails, what determines the current  
working directory?

Is there an easy way to discover which directory this is at runtime?

WG

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [April 13, 2006, 6:44pm UTC](https://www.ruby-forum.com/t/what-is-the-working-directory-for-fastcgi-procs-w-apache-2/93909/2 "2006-04-13T18:44:36Z")

</div>

The working directory appears to be “public”.

Wes G. wrote:

> When running Apache and FastCGI with Rails, what determines the current  
> working directory?
> 
> Is there an easy way to discover which directory this is at runtime?
> 
> WG
