Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dreaming-augustin opened this issue Feb 1, 2023 · 0 comments

Comments

@dreaming-augustin
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant