http://redmine.emweb.be/http://redmine.emweb.be/favicon.ico?16934085252013-08-13T06:37:44ZRedmineWt - Bug #2103: Trouble Setting up mod_fcgihttp://redmine.emweb.be/issues/2103?journal_id=62032013-08-13T06:37:44ZBud T
<ul></ul><p>With respect to the content of this support request (not a bug): I was able to configure fcgi (not fastcgi, which is a proprietary version I'm learning). The fatal error above was apparently due to the fact that fcgi cannot be run from command line, only from web server.</p>
<p>My sample app runs from a web server now, but only after I hacked something. I'd like you to please explain something... As I wrote above:</p>
<p>"After applying permissions and placing app.wt into application root [/var/www/approot], calling Apache returns 403 page."</p>
<p>But if I move that app.wt file into my document root - /var/www/html - it runs. So I don't understand the purpose of having this flag in the Wt cmake:</p>
<pre><code> -DRUNDIR=/var/www/approot
</code></pre>
<p>What is the meaning of RUNDIR? And how does it related to /var/run/wt ? And how are these related to this variable in wt.conf?</p>
<pre><code> FcgidInitialEnv WT_APP_ROOT /var/www/approot
</code></pre>
<p>I don't see why having app.wt in document allows it to run while it won't run when in approot. And none of these various other variables noted here make any sense to me.</p>
Wt - Bug #2103: Trouble Setting up mod_fcgihttp://redmine.emweb.be/issues/2103?journal_id=62052013-08-13T10:07:59ZWim Dumonwim@emweb.be
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li></ul><p>Hello Brad,</p>
<p>RUNDIR is a place where Wt will store temporary files (named pipes) that it requires for session management. It's default value is /var/run/wt. It has nothing to do with approot. Approot is a convenience concept that we introduced, that you can use in your application, to configure a place where you can store files that your application requires to run, but that are not served through http. Typical examples are message resource bundles, sqlite databases, ...</p>
<p>By default, FCGI requires that your executable is in your document root. Instead of downloading that file, FCGI will execute it. On the other hand, most servers allow to configure that a particular path is forwarded to an FCGI application, in which case you can place the FCGI executable somewhere else, e.g. in the approot directory. You then also have to start the FCGI process yourself (with spawn-fcgi if I remember correctly). This should be documented in the documentation of your web server.</p>
<p>Wim.</p>