Project

General

Profile

Actions

Improvements #11715

open

How to configure fcgid.conf for Wt (Witty) C++ Web Application?

Added by Lid Ned 11 months ago. Updated 11 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
06/09/2023
Due date:
% Done:

0%

Estimated time:

Description

Hi,

I am trying to configure fcgid.conf file for Wt (witty) for apache2 2.4 on Ubuntu 23. I found a config file for FastCGI (not fcgid) and convert commands to fcgid ones using apache2 web page. But one is left FastCgiServer /var/www/html/hello.wt

Here is my full code:

<IfModule mod_fcgid.c>
AddHandler fcgid-script .wt
FcgidIPCDir /var/lib/apache2/fcgid
FcgidIdleTimeout 100
FcgidMaxProcessesPerClass 1
FcgidInitialEnv WT_APP_ROOT=/tmp
FastCgiServer /var/www/html/hello.wt (I want to find the equivalence for fcgid)
<IfModule mod_mime.c>
AddHandler fcgid-script .fcgi
</IfModule>
</IfModule>

How can I configure for witty? There is not enough documentation for this.

Actions #1

Updated by Matthias Van Ceulebroeck 11 months ago

Hello,

I believe you are looking for this.

Actions #2

Updated by Lid Ned 11 months ago

Thank you for your answer. I found it from forums and tried but couldn't make it work. wthttp works but not with fcgid.

It could be good to include fcgid.conf and mydomain.conf examples in the info page for new beginner to web development.

Actions #3

Updated by Matthias Van Ceulebroeck 11 months ago

  • Tracker changed from Support to Improvements
  • Target version set to future

For beginners I really would not advise to use libwtfcgi, but always to rely on the much more straight-forward libwthttp. That avoids an extra configuration and a layer of indirection.

I will look into improving the documentation, but that will be on the longer term.

Actions

Also available in: Atom PDF