Jump to content
[MUST READ] Forum Rules ×

How I can make c++ cgi program work on servers?


Recommended Posts

I have cgi programs written by c++ and compiled by Visual Studio (to .cgi file). They work fine on localhost like XAMPP. But when I try them on free servers like byte.host it responds with machine code(or whatever it is).

16801992623404907050251950502892.jpg

Edited by Enderg
Link to comment
Share on other sites

Doesn't having Apache 2 on the server mean it can run cgi scripts? ( I noticed that the server is on Linux but my script was for win, so I made a script for Linux. As a result, that machine code became much smaller and without "This program cannot be run in DOS mode".).

Link to comment
Share on other sites

On 4/1/2023 at 8:16 AM, Enderg said:

Doesn't having Apache 2 on the server mean it can run cgi scripts? ( I noticed that the server is on Linux but my script was for win, so I made a script for Linux. As a result, that machine code became much smaller and without "This program cannot be run in DOS mode".).

You can disable it...

Also, cgi is an technology that doesnt get used alot...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...