Jia, Yicheng | 18 Apr 2013 00:34

install mod_fastcgi to apache

Hi Folks,

 

I am new to fastcgi and today just downloaded and compiled the fastcgi module 2.4.0, by doing

1.       configure

2.       make & make install

 

I notice both “libcgi++.a” and “libcgi.a” are copied to “/usr/local/lib” directory after installation.

 

Now I want to add the module statically to my apache 2.2.6 package, so I can build a new apache server with mod_fastcgi statically linked in, however I couldn’t find a proper way to do it. By looking at the installation manual, I go to <apache_dir> and do “./configure --activate-module=src/modules/fcgi-2.4.0/libfastcgi.a” but it complains no such command option.   Can anyone help me? Thanks!

 

 

Best Regards!

Tony

 



This communication may contain information that is proprietary, confidential or otherwise exempt from disclosure. If you are not the intended recipient, please note that any dissemination, distribution, or copying of this communication is strictly prohibited. Persons receiving this communication in error should notify the sender immediately by telephone or by return e-mail and delete this message from his or her computer.

For Translation: http://www.fenwalinc.com/Pages/EmailDisclaimer.aspx
_______________________________________________
FastCGI-developers mailing list
FastCGI-developers@...
http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers
Ross | 7 Apr 2013 17:37
Picon

Re: Supress error 500 by baiduspider

On Sun, Apr 7, 2013 at 4:07 PM, Jay Sprenkle <jsprenkle@...> wrote:
> This is the simplest solution:
>
> cat error.log | grep -i "client stopped connection before send" >
> FilterError.log

Well, my logs are analyzed by OSSEC, so I have to patch either OSSEC
or mod_fastcgi anyway.

OSSEC parses all of my access.log's and reports things like status
500. So I need to get rid of it (after all it's not really the server
problem it's just the client killing the socket). And I want to keep a
record for this in error.log just in case (it isn't monitored by
OSSEC).

Here is what I have so far:

--- mod_fastcgi.c.orig  2013-04-06 12:33:07.747545365 +0300
+++ mod_fastcgi.c       2013-04-06 12:37:20.973544222 +0300
 <at>  <at>  -2679,8 +2679,13  <at>  <at> 
     }

     /* Process the fastcgi-script request */
-    if ((ret = do_work(r, fr)) != OK)
+    if ((ret = do_work(r, fr)) != OK) {
+        if (ret == 53) {
+            ap_log_rerror(FCGI_LOG_ERR_NOERRNO, r, "FastCGI:
Suppressed error 53");
+            return OK;
+        }
         return ret;
+    }

     /* Special case redirects */
     ret = post_process_for_redirects(r, fr);

It doesn't work. Can you help me with this patch please?
Ross | 7 Apr 2013 07:26
Picon

Supress error 500 by baiduspider

Hello.

Since recent upgrade of mod_fastcgi I keep getting this:

FastCGI: client stopped connection before send body completed
FastCGI: client stopped connection before send body completed
Handler for fastcgi-script returned invalid result code 53

This is caused by baiduspider and ancient IEs. It seems that they
close the socket before server could send the data. This result in
error 500.

Could you please help me suppress this error (I don't want to see it
in access.log as I get an email for every such an error) while still
logging the event in error.log?
Udo Schroeter | 16 Mar 2013 17:21
Picon

Getting request headers (sent by the browser)

Hey all,

I'm using the Java reference implementation from fastcgi.com. What I can't figure out (neither from the white paper nor from looking at the code itself) is:

How can I get at the actual header variables sent by the browser to the webserver? From what I can tell they're not in the input stream...

I'm sorry if I missed something obvious, but I'm stuck and a little hint would be greatly appreciated.

Thanks,

Udo
_______________________________________________
FastCGI-developers mailing list
FastCGI-developers@...
http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers
kevin | 5 Mar 2013 12:14
Picon

Fastcgi issues

Hi all,
 
Appologies if tis is not the right mailing list – most of the communications I’ve seen have been to do with C programming...
 
... but can anyone help with memory / execution errors when using PHP on a server running as FASTCGI. (or recommend another source of help).
 
Thanks
_______________________________________________
FastCGI-developers mailing list
FastCGI-developers@...
http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers
Abc Def | 5 Mar 2013 07:39
Picon
Favicon

Session Management

Hi,

I am new in FastCGI programming using C. I am using nginx Web Server. I have been trying to store session for a user as he logs in, but apart from using cookies I am not able to find any other way. I tried googling regarding this issue where I found some links talking about session affinity. Can anyone tell me how will session affinity be implemented? The basic problem which I was facing is that if I use socket file descriptor returned by OS_Accept or try to store information in some environment variable then that information gets lost in next call to FCGX_Accept.

Any kind of help is most welcome.


Regards.
_______________________________________________
FastCGI-developers mailing list
FastCGI-developers@...
http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers
Picon

failed to build cgi-fcgi on windows


Hi All,

I am new to FastCGI and working on very basic POC application using it.

I downloaded source fcgi-2.4.1-SNAP-0311112127 and tried to compile it. I could compile libfcgi but not able to load

cgifcgi.dsp in VS 10.

I am getting error as :

fcgi-2.4.1-SNAP-0311112127\Win32\cgifcgi.dsp : error  : Project upgrade failed.

Can anybody please let me know where I can get updated project file or some pointers in this regard.

Thanks in advance.

Regards,
Harshad

_______________________________________________
FastCGI-developers mailing list
FastCGI-developers@...
http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers
Picon

can a httpd fcgi module start sending generated response while the request message body is still being transmitted to the app?

Hi all!

I was trying to send a (chunked-encoding) answer that was being
generated after each chunk of the POST-ed message body was being
received. I tried with both mod_fcgid and mod_proxy_fcgi and
both seem to buffer output until all POSTed message body was
delivered to the application
(they just passed back what was generated after the headers were
accepted, but not after the body started coming. In fact, mod_fcgid
kept crashing if much of the response was building up)

So is this the typical way httpd's fcgi modules handle communication
with a fcgi content generator? won't alternate write/read over
the STDOUT_FILENO that connect the server with the app? (i.e. treat
it as a bidirectinal pipe or open another unidirectional pair?)
If so, have you heard of any better httpd module that can solve this?

any answer/idea or pointer will be greatly appreciated!

best regards

Tand Read
Joana Santos | 12 Jan 2013 12:14
Picon

Problem Debug FastCGI

Hi,

i'm trying to debug my fastcgi with dbg .

When attaching the process i get the error:

Attaching to process 4912
Reading symbols from /home/joana/public_html/testfcgi/Echofastcpp.fcgi...done.
Reading symbols from /usr/lib/libfcgi++.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libfcgi++.so.0
Reading symbols from /usr/lib/i386-linux-gnu/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libstdc++.so.6
Reading symbols from /lib/i386-linux-gnu/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/i386-linux-gnu/libgcc_s.so.1
Reading symbols from /lib/i386-linux-gnu/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/i386-linux-gnu/libc.so.6
Reading symbols from /usr/local/lib/libfcgi.so.0...done.
Loaded symbols for /usr/local/lib/libfcgi.so.0
Reading symbols from /lib/i386-linux-gnu/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/i386-linux-gnu/libm.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
0x00e2e416 in __kernel_vsyscall ()


What am i doing wrong ?



thanks,
Joana



_______________________________________________
FastCGI-developers mailing list
FastCGI-developers@...
http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers
Joana Santos | 8 Jan 2013 09:44
Picon

FASTCGI - How to Debug C++ fastfcgi

Hi,

I'm new in fastcgi/cgi development and i'm new in c++ development too.

The IDE i'm using is eclipse.
I'm using apache2 web server installed in one XUbuntu virtual machine.

In my FastCGI i'm using fcgi_stdio .

Sometimes i get internal server error in my fastcgi script and if i go to apache log i don't find enough information to locate my error.
I think my problem could have something about memory allocation.

If i create a console application project and put my classes there all works fine.
But when i call my classes from the fastcgi sometimes i receive an Internal server error.

I would like some help to :

 - debug my fastcgi script and be able to simulate GET, POST and PUT requests (i'm developing an web application that submits ajax requests.)

 - how to catch this kind of error in my fastcgi and treat it.


thanks,
Joana





_______________________________________________
FastCGI-developers mailing list
FastCGI-developers@...
http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers
Jesse | 7 Jan 2013 14:00

Hello

I am happy to use fcgi-devkit. I want to write some applications with it. I found that the fcgi to c++ interface is not so convenient, so I want to wrap fcgiapp.h or else. Do I need to start a new project or should I contribute my code to fcgi-devkit?

_______________________________________________
FastCGI-developers mailing list
FastCGI-developers@...
http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers

Gmane