Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7442261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:08:54+00:00 2026-05-29T11:08:54+00:00

I want to convert my web application prototype (PHP server side) to a C++

  • 0

I want to convert my web application prototype (PHP server side) to a C++ solution. This has already been decided.
I’ve been on Wikipedia, Google, and SO to determine the best way to to this.

I’ve already decided on Linux and Apache (or custom server).

What I think I’ve learned is that this can be done multiple ways. In order of the speed or efficiency you will get.

  1. Write the Server
  2. Write an Apache Module
  3. Write it to use Fast CGI
  4. Write it to use CGI

I have about 1400 lines of PHP so my web app is small. I also know that CS courses in web typically have the students write a basic web server as lab. Fast CGI claims to be faster than CGI as the name implies..and I’ve heard that a module is fastest as it has a tighter integration with Apache. Writing your own server would probably be the fastest as it would be application specific instead of all purpose.

I’m trying to put together a project I can finish in under a year and keep the code base under 6000 lines or so.

What is the fastest way to do this that is reasonable?

Related SO Posts

  • Compiled or Interpreted
  • Apache Modules
  • C++ Server Hello World

C++ Web Libraries

  • CppCMS
  • Wt

Similar SO

  • C++ Web Library Needed
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T11:08:54+00:00Added an answer on May 29, 2026 at 11:08 am

    I’d start with a FastCGI handler on nginx – it is really fast and CGI is a very stable API. Writing your own server may be a nice learning experience, but I am not sure you’d be able to make it nearly as performant as nginx or Apache.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Edit : I decided to just convert this to a normal web page, as
I want to authenticate users on a web application. The users are already logged
I want to convert a web pages which is heavily CSS styled is written
I want to convert a primitive to a string, and I tried: myInt.toString(); This
How to manage user picture in c# for my web application i want all
in a web application, i want to insert the XML file content into an
In my silverlight application I want to open a xaml in a new web
I have this configuration in my application. ~/sitemap.aspx ~/Web.sitemap ~/mobile/sitemap.aspx ~/mobile/Web.sitemap mobile folder is
I want to design a web application whose only interface is json i.e. all
I have coding like this in my asp.net web form application [asp.net 4.0] <ul

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.