Skip to content

Unknown api: fastcgi / Unknown api: http: need more verbose error message #96

@dreaming-augustin

Description

@dreaming-augustin

Migrating cppcms to a new server, at first I couldn't get cppcms running at all, even a simple "hello world" cppcms web site.

I the logs, there were mentions of:
Unknown api: fastcgi
or:
Unknown api: http

Since I was migrating and upgrading the whole operating system, the whole toolchain was being upgraded at the same time: gcc, mod_fastcgi, new C++ standards, etc.

After much searching and investigating, it turned out to be a wrong configuration (apache vhost socket vs config.js service.socket....).

A more verbose output when failing to connect to a socket, or in case of a wrong setting in config.js would help.
The message "Unknown api: fastcgi" sent me down the wrong track since mod_fastcgi is not supported and I wondered if the new C++ language + new GCC compiler had broken something in that library. The problem was not with fastcgi at all, and cppcms should not report this.

I file this request here in case anyone else is facing the same problem.

Also, read carefully the official wiki:
http://cppcms.com/wikipp/en/page/cppcms_1x_config#service
http://cppcms.com/wikipp/en/page/cppcms_1x_tut_web_server_config

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions