Web development environment with C/C++ in PHP manner
I've searched and googled, yes, yes, C/C++ isn't meant for web - enough!

I am looking for a way to write my web app in C/C++, in a way like PHP handles it - compile on request.

I bet it'd be done through CGI, but the question is, how do I set up such environment in, for example, Apache?

Lets assume, that my document root has `index.c` with the good old `Hello World` example:

    #include<stdio.h>
    
    main()
    {
        printf("Hello World");
    }

And the request to `localhost/index.c` would end up printing `Hello World` to my browser.

This is meant for development only, production app would get pre-compiled and only then served (but that's a question for future).

P.S. I have never written C, nor C++, am willing to learn. Willing to learn by Web Development.
Web development environment with C/C++ in PHP manner
===

I've searched and googled, yes, yes, C/C++ isn't meant for web - enough!

I am looking for a way to write my web app in C/C++, in a way like PHP handles it - compile on request.

I bet it'd be done through CGI, but the question is, how do I set up such environment in, for example, Apache?

Lets assume, that my document root has `index.c` with the good old `Hello World` example:

    #include<stdio.h>
    
    main()
    {
        printf("Hello World");
    }

And the request to `localhost/index.c` would end up printing `Hello World` to my browser.

This is meant for development only, production app would get pre-compiled and only then served (but that's a question for future).

P.S. I have never written C, nor C++, am willing to learn. Willing to learn by Web Development.