Re: Error 500: Internal Server Error CGI program sent malformed or too big (>16384 bytes) HTTP headers: []

3,437 views
Skip to first unread message

Sergey Lyubka

unread,
Sep 15, 2013, 12:18:32 AM9/15/13
to mongoose-users
Try running your CGI script from the command prompt, and capture the output.


On Sun, Sep 15, 2013 at 12:10 AM, Martin ILLE <ille....@gmail.com> wrote:
I use this lastest version of Mongoose with this config as service:

cgi_interpreter C:\test\php\php-cgi.exe
index_files index.php
listening_ports 54321
request_timeout_ms 10000
document_root c:\test\web

When service is started and I open browser I got this:
Error 500: Internal Server Error
CGI program sent malformed or too big (>16384 bytes) HTTP headers: []


This is PHP I use as CGI: http://windows.php.net/downloads/releases/php-5.5.3-nts-Win32-VC11-x86.zip


Where is the problem?

--
You received this message because you are subscribed to the Google Groups "mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongoose-user...@googlegroups.com.
To post to this group, send email to mongoos...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/groups/opt_out.

Sergey Lyubka

unread,
Sep 15, 2013, 2:58:31 AM9/15/13
to mongoose-users
Yes I do have an idea :-)
What you see there is the exact reason why Mongoose is built with old version
of Microsoft Visual Studio, MSVC6.0

Here is the explanation:
  o Virtually every executable program on Windows is linked against C runtime library,
     which provides most basic functions like string manipulation functions, etc.
  o There is a stock runtime library, called MSVCRT.DLL (MicroSoft Visual C Run Time. DLL)
    that is shipped with absolutely every windows system
  o  Every release of Visual Studio ships it's own, versioned runtime, like MSVCR<version>.DLL
  o  Programs that are built with MSVC6.0 are linked against MSVCRT.DLL, and work
    on any Windows system
  o Programs what are built with newer Visual Studio, are linked against their versioned DLL,
   and may NOT work on systems that do not have that versioned DLL. You must locate that
   DLL (it may be in your PHP build tree) and copy to the system folder.



On Sun, Sep 15, 2013 at 7:37 AM, Martin ILLE <ille....@gmail.com> wrote:
Ok I tried it: http://prntscr.com/1rdo64
Problem seems to be with missing msvcr110.dll.
Do you have any idea please?


S pozdravom / Yours sincerely
Martin ILLE
+421 908 811 128
skype: martinille




On 15 September 2013 08:12, Sergey Lyubka <val...@gmail.com> wrote:
There, you run mongoose from the command line.
I am asking to run CGI script from the command line:
c:\>  cd path_to_cgi_directory
c:\cgi\directory> php-cgi.exe index.php


On Sun, Sep 15, 2013 at 6:56 AM, Martin ILLE <ille....@gmail.com> wrote:
How exactly do you mena run it from command line? This is how I run it: http://prntscr.com/1rdefa


S pozdravom / Yours sincerely
Martin ILLE
+421 908 811 128
skype: martinille




On 15 September 2013 07:56, Sergey Lyubka <val...@gmail.com> wrote:
Please run your script from the command line, as I've suggested.


On Sun, Sep 15, 2013 at 6:16 AM, Martin ILLE <ille....@gmail.com> wrote:
Ok I'm trying this command line: 
mongoose -cgi_interpreter C:\test\php\php-cgi.exe -listening_ports 1234 -document_root c:\test\web

No error immediately after running: http://prntscr.com/1rdefa
But when I open localhost I got this message: http://prntscr.com/1rde8b



S pozdravom / Yours sincerely
Martin ILLE
+421 908 811 128
skype: martinille


Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages