Project

General

Profile

WT with FCGI

Added by Jagadees S about 8 years ago

I would like to run the hello wt progam through apache.

From the documentation i found that it can be done by FCGI.

So i built WT with FCGI support. It created libwtfcgi.so also.

Now what are the code changes need to hello.c to make use of this functionality.

Do i need to write http responses by myself?

Is there any documentation for using FCGI with WT?

Thanks,

Jagadees.


Replies (3)

RE: WT with FCGI - Added by Koen Deforche about 8 years ago

You need to link against this library instead of wthttp.

RE: WT with FCGI - Added by Jagadees S about 8 years ago

Yes it linked with wtfcgi

libwtfcgi.so.39 => /usr/local/lib/libwtfcgi.so.39 (0x00007f52cca3b000)

From the documentation i got to know that there 3 different libraries involved. mod_proxy_fcgi, mod_fcgid, and mod_fastcgi.

1. which one I should use?

I tried with mod_proxy_fcgi, that gave me 500 Internal Server Error.

from the log i got to know that [error] "wtfcgi: fatal: cannot create run directory '/var/run/wt'"

I created a wt folder and changed permission by chown apache:apache /var/run/wt -R.

2. Still getting the error.

RE: WT with FCGI - Added by Koen Deforche about 8 years ago

I believe at the time I used mod_fastcgi and mod_fcgid. The error you get does sound encouraging, if you have fixed the permissions then it should really work? Perhaps your webserver isn't running as 'apache' but as another user/group?

    (1-3/3)