Hello community,

here is the log from the commit of package apache2-mod_fcgid.2204 for 
openSUSE:12.2:Update checked in at 2013-11-13 11:31:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.2:Update/apache2-mod_fcgid.2204 (Old)
 and      /work/SRC/openSUSE:12.2:Update/.apache2-mod_fcgid.2204.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "apache2-mod_fcgid.2204"

Changes:
--------
New Changes file:

--- /dev/null   2013-10-11 12:16:15.204037506 +0200
+++ 
/work/SRC/openSUSE:12.2:Update/.apache2-mod_fcgid.2204.new/apache2-mod_fcgid.changes
        2013-11-13 11:31:44.000000000 +0100
@@ -0,0 +1,242 @@
+-------------------------------------------------------------------
+Tue Nov  5 14:14:58 CET 2013 - [email protected]
+
+- flawed patch apache2-mod_fcgid-CVE-2013-4365-bnc844935.diff
+  revised: loop counter handled incorrectly, leading to SEGV and
+  "Premature end of script headers" errors. [bnc#844935]
+  CVE-2013-4365
+
+-------------------------------------------------------------------
+Mon Oct 21 15:16:53 CEST 2013 - [email protected]
+
+- apache2-mod_fcgid-CVE-2013-4365-bnc844935.diff fixes a heap
+  overflow identified by CVE-2013-4365 [bnc#844935].
+
+-------------------------------------------------------------------
+Mon Feb 13 10:44:06 UTC 2012 - [email protected]
+
+- patch license to follow spdx.org standard
+
+-------------------------------------------------------------------
+Sat Sep 17 11:16:14 UTC 2011 - [email protected]
+
+- Remove redundant tags/sections from specfile
+- Use %_smp_mflags for parallel build
+
+-------------------------------------------------------------------
+Sat Dec  4 13:20:55 UTC 2010 - [email protected]
+
+- update to 2.3.6
+  *) SECURITY: CVE-2010-3872 (cve.mitre.org)
+     Fix possible stack buffer overwrite.
+  *) Change the default for FcgidMaxRequestLen from 1GB to 128K.
+     Administrators should change this to an appropriate value based on
+     site requirements.
+  *) Allow FastCGI apps more time to exit at shutdown before being
+     forcefully killed.
+  ...and more fixes, see
+  
http://svn.apache.org/viewvc/httpd/mod_fcgid/tags/2.3.6/CHANGES-FCGID?view=markup
+- adjust the somewhat outdated example config file
+
+-------------------------------------------------------------------
+Thu Aug  5 01:06:32 UTC 2010 - [email protected]
+
+- update to version 2.3.5
+  mod_fcgid is now an official apache project. During the migration
+  the name of the configuration directives has changed. Please see
+
+  /usr/share/doc/packages/apache2-mod_fcgid/CHANGES-FCGID
+
+  to update your config to the new version.
+- adapted config to the new directives
+
+-------------------------------------------------------------------
+Fri Mar  7 16:57:07 CET 2008 - [email protected]
+
+- added directory for the sharedmemory path and the sockets
+  (bnc#365113)
+
+-------------------------------------------------------------------
+Tue Oct 30 14:00:50 CET 2007 - [email protected]
+
+- update to version 2.2
+  - Support configuration "PassHeader". Thank Hans Christian
+    Saustrup for the suggestion.
+  - Support apr_shm_remove() in httpd.2.0.X. Thank Hans Christian
+    Saustrup for bug report.
+  - Support configuration "TimeScore". Thank Tim Jensen for the
+    patch.
+  - Support new configurations "MaxRequestInMem" and
+    "MaxRequestLen"
+    - If the length of http request longer than "MaxRequestInMem",
+      it will store in tmp file.
+    - It the length of http request longer than "MaxRequestLen", it
+      will return internal server error.
+    Thank Gabriel Barazer(gabriel at oxeva.fr) for the bug report.
+    Thank Steffen(info at apachelounge.com) for the help on this
+    issue.
+  - Fix miner Sanity check bug. Thank Yuya Tanaka for bug report
+- added SharememPath to the config (#337566)
+
+-------------------------------------------------------------------
+Tue Aug  7 19:59:48 CEST 2007 - [email protected]
+
+- remove "Provides: apache2-mod_fastcgi", since the package is
+  revived
+
+-------------------------------------------------------------------
+Tue Jul 31 18:07:43 CEST 2007 - [email protected]
+
+- don't package INSTALL.txt
+- ran dos2unix on the documentation tarball to avoid warnings from
+  rpmlint
+
+-------------------------------------------------------------------
+Mon Apr 16 10:47:38 CEST 2007 - [email protected]
+
+- update to version 2.1
+  - Add missing config.m4 and Makefile.in for static linking
+    Thank Mark Drago for notice
+  - FCGIWrapper disallowed in .htaccess
+    Thank Balinares for patch
+  - Bug fix. Authoritative flag reversed
+    Thank Chris Darroch for the patch
+  - Support arguments in FCGIWrapper
+    Thank Andre Nathan for suggestion and great help on testing it.
+  - Support new config "SharememPath", which specifies the location
+    of share memory path.
+  - Check running user is root or not, while suexec is enabled.
+    Thank Chris Holleman for the bug report.
+  - Bug fix. Should not pass respond to auth checkers.
+    Thank Szabolcs Hock for bug report.
+- rediffed patches:
+  mod_fcgid.2.0-warnings.patch => mod_fcgid.2.1-warnings.patch
+- synced docs from the website
+
+-------------------------------------------------------------------
+Wed Nov 29 21:22:00 CET 2006 - [email protected]
+
+- update to version 2.0
+  o Support FastCGI Authorizer protocols now.
+  o Add apxs compile instruction in INSTALL.txt.
+    Thank Hans Christian Saustrup, hc at saustrup.net for the suggestion.
+  o Bug fix. (Win32 only) PHP script can not create socket on Win32.
+    Thank bbscool at zjip.com for the bug report and the help.
+  o GREAT patchs from Robert L Mathews, rob at tigertech.com
+    Fix compile warnings
+    Adds a MaxRequestsPerProcess parameter that allows mod_fcgid
+    to exit after handling a certain number of requests
+    Close socket before fork 
+    avoid the 1-second sleep the first time a process is spawned
+  o Print warning log while read data error from FastCGI process.
+  o Apply patch from Scott Lamb, Fix mod_fcgid 1.10 warnings on x86_64
+- removed mod_fcgid.1.07-printf_warnings.patch
+- rediffed patches:
+  mod_fcgid.1.10-warnings.patch => mod_fcgid.2.0-warnings.patch
+  mod_fcgid.1.07-suse_paths.patch => mod_fcgid.2.0-suse_paths.patch
+
+-------------------------------------------------------------------
+Thu Oct 19 15:25:16 CEST 2006 - [email protected]
+
+- fix missing return value of is_kill_allowed()
+
+-------------------------------------------------------------------
+Tue Oct 17 17:33:51 CEST 2006 - [email protected]
+
+- build the module for all MPMs, not only for prefork
+
+-------------------------------------------------------------------
+Wed Aug 30 14:43:15 CEST 2006 - [email protected]
+
+- Fix the php example in the config
+
+-------------------------------------------------------------------
+Wed Aug 30 14:37:40 CEST 2006 - [email protected]
+
+- mark sample conf file file as config(noreplace)
+
+-------------------------------------------------------------------
+Wed Aug 30 14:25:21 CEST 2006 - [email protected]
+
+- minor typo fix for the sample config
+
+-------------------------------------------------------------------
+Wed Aug 30 03:06:11 CEST 2006 - [email protected]
+
+- Update to 1.10:
+  o Use poll() instead of select() in UNIX. "It becomes problematic
+    on apache2 with large number of logfiles. Apache2 calls poll()
+    (when OS supports it), and in that case it doesn't need to be
+    recompiled with larger FD_SETSIZE. select() is still limited
+    to FD_SETSIZE."
+    Thank Piotr Gackiewicz gacek at intertele.pl for the patch.
+  o Bug fix: "Some requests fail with HTTP 500 and no errorlog
+    entry is generated"
+    Thank Piotr Gackiewicz gacek at intertele.pl for the patch.
+  o Use anonymouse share memeory to make OS X happy.
+    Thank andkjar at obtech.net for the patch.
+  o Add config.m4, mod_fcgid now can be static linked in
+    httpd (See INSTALL.txt)
+
+-------------------------------------------------------------------
+Sun Jun 18 10:45:21 CEST 2006 - [email protected]
+
+- Update to 1.09:
+  o Add configuration DefaultMinClassProcessCount(default 3).
+    Idle fastcgi will not be killed if their count less than
+    DefaultMinClassProcessCount.
+    (Thank Finn Smith, finn at timeghost.net for suggestion)
+  o Add configuration PHP_Fix_Pathinfo_Enable(default 0). If
+    you are using PHP and set cgi.fix_pathinfo=1 in php.ini,
+    please add "PHP_Fix_Pathinfo_Enable 1" in httpd.conf.
+    (Thank Florian Munz, flo at myhosting.de for bug report)
+  o Split error log whle '\r' or '\n' are inside the text send
+    to "stderr". (Thank frederic at jolliton.com for the patch)
+  Additionally from 1.08:
+  o apr_bucket_copy() does not work with buckets from mod_ssl,
+    use apr_bucket_heap_create() instead
++++ 45 more lines (skipped)
++++ between /dev/null
++++ and 
/work/SRC/openSUSE:12.2:Update/.apache2-mod_fcgid.2204.new/apache2-mod_fcgid.changes

New:
----
  apache2-mod_fcgid-CVE-2013-4365-bnc844935.diff
  apache2-mod_fcgid.changes
  apache2-mod_fcgid.conf
  apache2-mod_fcgid.spec
  mod_fcgid-2.3.5_suse_paths.patch
  mod_fcgid-2.3.6.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ apache2-mod_fcgid.spec ++++++
#
# spec file for package apache2-mod_fcgid
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           apache2-mod_fcgid
%define apxs    /usr/sbin/apxs2
%define apache_libexecdir       %(%{apxs} -q LIBEXECDIR)
%define apache_sysconfdir       %(%{apxs} -q SYSCONFDIR)
%define apache_mmn        %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && 
$MMN)
#
Version:        2.3.6
Release:        0
#
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  apache2-devel
Requires:       %{apache_mmn}
Requires:       apache2
#
Url:            http://httpd.apache.org/mod_fcgid/
Source:         
http://mirror.synyx.de/apache/httpd/mod_fcgid/mod_fcgid-%{version}.tar.bz2
Source1:        apache2-mod_fcgid.conf
Patch:          mod_fcgid-2.3.5_suse_paths.patch
Patch1:         apache2-mod_fcgid-CVE-2013-4365-bnc844935.diff
#
Summary:        Alternative FastCGI module for Apache2
License:        GPL-2.0+
Group:          Productivity/Networking/Web/Servers

%description
What is mod_fcgid? It is a binary compatibility alternative to Apache
module mod_fastcgi.

mod_fcgid has a new process management strategy, which concentrates on
reducing the number of fastcgi server, and kick out the corrupt fastcgi
server as soon as possible.

To load the module into Apache, run the command "a2enmod fcgid" as
root.

See /etc/apache2/conf.d/mod_fcgid.conf and
/usr/share/doc/packages/apache2-mod_fcgid for configuration.

%prep
%setup -n mod_fcgid-%{version}
%patch
%patch1 -p0

%build
APXS="%{apxs}-prefork" ./configure.apxs
make %{?_smp_mflags}

%install
%makeinstall
%{__install} -D -m 0644 %{S:1}              
%{buildroot}%{apache_sysconfdir}/conf.d/mod_fcgid.conf
%{__install} -d -m 0755 %{buildroot}/var/lib/apache2/fcgid/

%files
%defattr(-,root,root)
%{apache_libexecdir}/mod_fcgid.so
%config(noreplace) %{apache_sysconfdir}/conf.d/mod_fcgid.conf
%doc CHANGES-FCGID LICENSE-FCGID NOTICE-FCGID README-FCGID STATUS-FCGID
%dir %{_datadir}/apache2/manual/
%dir %{_datadir}/apache2/manual/mod/
%{_datadir}/apache2/manual/mod/mod_fcgid*
%attr(750,wwwrun,www) /var/lib/apache2/fcgid/

%changelog
++++++ apache2-mod_fcgid-CVE-2013-4365-bnc844935.diff ++++++

Heap overflow fix reported and resolved by Robert Matthews <rob tigertech.com>.



diff -rNU 150 ../mod_fcgid-2.3.6-o/modules/fcgid/fcgid_bucket.c 
./modules/fcgid/fcgid_bucket.c
--- ../mod_fcgid-2.3.6-o/modules/fcgid/fcgid_bucket.c   2010-11-04 
13:10:10.000000000 +0100
+++ ./modules/fcgid/fcgid_bucket.c      2013-11-05 14:12:36.000000000 +0100
@@ -1,283 +1,285 @@
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 
 #include "fcgid_bucket.h"
 #include "fcgid_protocol.h"
 #include "fcgid_bridge.h"
 
 #define FCGID_FEED_LEN 8192
 static apr_status_t fcgid_feed_data(fcgid_bucket_ctx * ctx,
                                     apr_bucket_alloc_t * bucketalloc,
                                     char **buffer, apr_size_t * bufferlen)
 {
     apr_status_t rv;
 
     if (!ctx->buffer) {
         *buffer = apr_bucket_alloc(FCGID_FEED_LEN, bucketalloc);
 
         *bufferlen = FCGID_FEED_LEN;
         if ((rv =
              proc_read_ipc(&ctx->ipc, *buffer,
                            bufferlen)) != APR_SUCCESS) {
             ctx->has_error = 1;
             apr_bucket_free(*buffer);
             return rv;
         }
 
         ctx->buffer =
             apr_bucket_heap_create(*buffer, FCGID_FEED_LEN,
                                    apr_bucket_free, bucketalloc);
         if (*bufferlen != FCGID_FEED_LEN) {
             apr_bucket *buckettmp;
 
             apr_bucket_split(ctx->buffer, *bufferlen);
             buckettmp = APR_BUCKET_NEXT(ctx->buffer);
             apr_bucket_delete(buckettmp);
         }
     } else {
         apr_bucket_read(ctx->buffer, (const char **) buffer, bufferlen,
                         APR_BLOCK_READ);
     }
     return APR_SUCCESS;
 }
 
 static void fcgid_ignore_bytes(fcgid_bucket_ctx * ctx,
                                apr_size_t ignorebyte)
 {
     apr_bucket *buckettmp;
 
     if (ignorebyte == ctx->buffer->length) {
         apr_bucket_destroy(ctx->buffer);
         ctx->buffer = NULL;
     } else {
         apr_bucket_split(ctx->buffer, ignorebyte);
         buckettmp = ctx->buffer;
         ctx->buffer = APR_BUCKET_NEXT(ctx->buffer);
         apr_bucket_delete(buckettmp);
     }
 }
 
 static apr_status_t fcgid_header_bucket_read(apr_bucket * b,
                                              const char **str,
                                              apr_size_t * len,
                                              apr_read_type_e block)
 {
     fcgid_bucket_ctx *ctx = (fcgid_bucket_ctx *) b->data;
     apr_status_t rv;
     apr_size_t hasread, bodysize;
     FCGI_Header header;
     apr_bucket *curbucket = b;
 
     /* Keep reading until I get a fastcgi header */
     hasread = 0;
     while (hasread < sizeof(header)) {
         char *buffer;
         apr_size_t bufferlen, putsize;
 
         /* Feed some data if necessary */
         if ((rv =
              fcgid_feed_data(ctx, b->list, &buffer,
                              &bufferlen)) != APR_SUCCESS)
             return rv;
 
         /* Initialize header */
         putsize = fcgid_min(bufferlen, sizeof(header) - hasread);
         memcpy((apr_byte_t *)&header + hasread, buffer, putsize);
         hasread += putsize;
 
         /* Ignore the bytes that have read */
         fcgid_ignore_bytes(ctx, putsize);
     }
 
     /* Get the body size */
     bodysize = header.contentLengthB1;
     bodysize <<= 8;
     bodysize += header.contentLengthB0;
 
     /* Handle FCGI_STDERR body, write the content to log file */
     if (header.type == FCGI_STDERR) {
         char *logbuf = apr_bucket_alloc(APR_BUCKET_BUFF_SIZE, b->list);
         char *line;
+       apr_size_t hasput = 0;
 
         memset(logbuf, 0, APR_BUCKET_BUFF_SIZE);
 
         hasread = 0;
         while (hasread < bodysize) {
             char *buffer;
             apr_size_t bufferlen, canput, willput;
 
             /* Feed some data if necessary */
             if ((rv =
                  fcgid_feed_data(ctx, b->list, &buffer,
                                  &bufferlen)) != APR_SUCCESS) {
                 apr_bucket_free(logbuf);
                 return rv;
             }
 
             canput = fcgid_min(bufferlen, bodysize - hasread);
             willput =
-                fcgid_min(canput, APR_BUCKET_BUFF_SIZE - hasread - 1);
-            memcpy(logbuf + hasread, buffer, willput);
+                fcgid_min(canput, APR_BUCKET_BUFF_SIZE - hasput - 1);
+            memcpy(logbuf + hasput, buffer, willput);
             hasread += canput;
+            hasput += willput;
 
             /* Ignore the "canput" bytes */
             fcgid_ignore_bytes(ctx, canput);
         }
 
         /* Now I get the log data, write log and release the buffer */
         line = logbuf;
         while (*line) {
             char *end = strpbrk(line, "\r\n");
 
             if (end != NULL) {
                 *end = '\0';
             }
             ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, ctx->ipc.request,
                           "mod_fcgid: stderr: %s", line);
             if (end == NULL) {
                 break;
             }
             ++end;
             line = end + strspn(end, "\r\n");
         }
 
         apr_bucket_free(logbuf);
     }
 
     /* if( header.type==FCGI_STDERR ) */
     /* Now handle FCGI_STDOUT */
     else if (header.type == FCGI_STDOUT) {
         hasread = 0;
         while (hasread < bodysize) {
             char *buffer;
             apr_size_t bufferlen, canput;
             apr_bucket *buckettmp;
 
             /* Feed some data if necessary */
             if ((rv =
                  fcgid_feed_data(ctx, b->list, &buffer,
                                  &bufferlen)) != APR_SUCCESS)
                 return rv;
 
             canput = fcgid_min(bufferlen, bodysize - hasread);
 
             /* Change the current bucket to refer to what we read */
             buckettmp = ctx->buffer;
             if (canput == (bodysize - hasread)) {
                 apr_bucket_split(ctx->buffer, canput);
                 ctx->buffer = APR_BUCKET_NEXT(ctx->buffer);
                 APR_BUCKET_REMOVE(buckettmp);
             } else {
                 /* canput==bufferlen */
                 ctx->buffer = NULL;
             }
 
             APR_BUCKET_INSERT_AFTER(curbucket, buckettmp);
             curbucket = buckettmp;
             hasread += canput;
         }                       /* while( hasread<bodysize ) */
     }
 
     /* if( header.type==FCGI_STDOUT ) */
     /* Now FCGI_END_REQUEST */
     else if (header.type == FCGI_END_REQUEST) {
         /* Just ignore the body */
         hasread = 0;
         while (hasread < bodysize) {
             char *buffer;
             apr_size_t bufferlen, canignore;
 
             /* Feed some data if necessary */
             if ((rv =
                  fcgid_feed_data(ctx, b->list, &buffer,
                                  &bufferlen)) != APR_SUCCESS)
                 return rv;
 
             canignore = fcgid_min(bufferlen, bodysize);
             hasread += canignore;
 
             /* Ignore the bytes */
             fcgid_ignore_bytes(ctx, canignore);
         }
     }
 
     /* Now ignore padding data */
     hasread = 0;
     while (hasread < header.paddingLength) {
         char *buffer;
         apr_size_t bufferlen, canignore;
 
         /* Feed some data if necessary */
         if ((rv =
              fcgid_feed_data(ctx, b->list, &buffer,
                              &bufferlen)) != APR_SUCCESS)
             return rv;
 
         canignore = fcgid_min(bufferlen, header.paddingLength - hasread);
         hasread += canignore;
 
         /* Ignore the bytes */
         fcgid_ignore_bytes(ctx, canignore);
     }
 
     /* Tail another fastcgi header bucket if it's not ending */
     if (header.type != FCGI_END_REQUEST) {
         apr_bucket *headerbucket =
             ap_bucket_fcgid_header_create(b->list, ctx);
         APR_BUCKET_INSERT_AFTER(curbucket, headerbucket);
     } else {
         /* Release the process ASAP */
         if ((rv = apr_pool_cleanup_run(ctx->ipc.request->pool,
                                        ctx,
                                        bucket_ctx_cleanup)) != APR_SUCCESS)
             return rv;
     }
 
     b = apr_bucket_immortal_make(b, "", 0);
     return apr_bucket_read(b, str, len, APR_BLOCK_READ);
 }
 
 apr_bucket *ap_bucket_fcgid_header_make(apr_bucket * b,
                                         fcgid_bucket_ctx * ctx)
 {
     b->length = (apr_size_t) (-1);
     b->start = -1;
     b->data = ctx;
     b->type = &ap_bucket_type_fcgid_header;
 
     return b;
 }
 
 apr_bucket *ap_bucket_fcgid_header_create(apr_bucket_alloc_t * list,
                                           fcgid_bucket_ctx * ctx)
 {
     apr_bucket *b = apr_bucket_alloc(sizeof(*b), list);
 
     APR_BUCKET_INIT(b);
     b->free = apr_bucket_free;
     b->list = list;
     return ap_bucket_fcgid_header_make(b, ctx);
 }
 
 const apr_bucket_type_t ap_bucket_type_fcgid_header = {
     "FCGID_HEADER", 5, APR_BUCKET_DATA,
     apr_bucket_destroy_noop,
     fcgid_header_bucket_read,
     apr_bucket_setaside_notimpl,
     apr_bucket_split_notimpl,
     apr_bucket_copy_notimpl
 };
++++++ apache2-mod_fcgid.conf ++++++
################################################################################
##
## Sample config for apache2_mod-fcgid
##
## Most lines, that are commented out, reflect the default values.
##
## See http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html for the real 
documentation
##

<IfModule fcgid_module>
##
## An idle fastcgi application will be terminated after IdleTimeout seconds.
##
#FcgidIdleTimeout 300

##
## The scan interval for idle fastcgi applications in seconds.
##
#FcgidIdleScanInterval 120

##
## a fastcgi application will be terminated if handing a single request longer
## than busy timeout. Value in seconds.
##
#FcgidBusyTimeout 300

##
## The scan interval for busy timeout fastcgi applications. Value in seconds.
##
#FcgidBusyScanInterval 120

##
## The scan interval for exit pending fastcgi applications. fastcgi applications
## will be terminated within this scanning. Value in seconds.
##
#FcgidErrorScanInterval 3

##
## The scan interval for zombie process. Value in seconds.
##
#FcgidZombieScanInterval 3

##
##
## A fastcgi application will be terminated if lifetime expired, even no error
## is detected. Value in seconds.
##
#FcgidProcessLifeTime 3600

##
## The directory to put the UNIX domain socket. (UNIX only)
##
FcgidIPCDir /var/lib/apache2/fcgid/

##
## The share memory file path.
##
FcgidProcessTableFile /var/lib/apache2/fcgid/shm

##
## The spawn-speed control score up water limit. Score increases while a process
## is spawned or terminated, and decreases as time progresses; while the score 
is
## higher than SpawnScoreUpLimit, the spawning will be held for a while. The
## higher this number is, the higher speed of the spawning can be.
##
#FcgidSpawnScoreUpLimit 10

##
## The weight of spawning.  This weight will be plused to the spawn-control
## score on every spawn. The higher this number is, the lower speed of spawning
## can be.
##
#FcgidSpawnScore 1

##
## The weight of termination. This weight will be plused to the score while
## fastcgi process terminates. The higher this number is, the lower speed of
## spawning can be.
##
#FcgidTerminationScore 2

##
## The max count of total fastcgi process count.
##
#FcgidMaxProcesses 1000

##
## The maximum number of fastcgi application instances allowed to run for any
## one fastcgi application.
##
#FcgidMaxProcessesPerClass 100

##
## The default environment variables before a fastcgi application is spawned.
## You can use this configuration more than once.
##
#FcgidInitialEnv  env_name [ env_value ]

##
## The communication timeout to a fastcgi application. Please increase this
## value if your CGI have a slow initialization or slow respond. Value in
## seconds.
##
#FcgidIOTimeout 40

##
## CGI output cache buffer size. Value in bytes.
##
#FcgidOutputBufferSize 65536

##
## Associate .fcgi files with mod_fcgid
##
#AddHandler fcgid-script .fcgi

##
## PHP via FastCGI
##
## uncomment the following line if you want to handle php via mod_fcgid
## see http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#examples
##
#<FilesMatch "\.php$">
#    AddHandler fcgid-script .php
#    Options +ExecCGI
#    FcgidWrapper /srv/www/cgi-bin/php5 .php
#</FilesMatch>
##
</IfModule>
# End of <IfModule fcgid_module>

##
################################################################################

++++++ mod_fcgid-2.3.5_suse_paths.patch ++++++
Index: configure.apxs
===================================================================
--- configure.apxs.orig
+++ configure.apxs
@@ -39,6 +39,7 @@ rel_libexecdir=`$APXS -q exp_libexecdir
 rel_sysconfdir=`$APXS -q exp_sysconfdir | sed -e "s#^$rel_fix_prefix/##;"`
 rel_logfiledir=`$APXS -q exp_logfiledir | sed -e "s#^$rel_fix_prefix/##;"`
 httpd_conffile=`$APXS -q exp_sysconfdir`/`$APXS -q progname`.conf
+mpm_includedir=`$APXS -q exp_includedir`
 
 if test -z "$AWK"; then
     AWK=`$APXS -q AWK`
@@ -55,6 +56,7 @@ for i in Makefile build/Makefile modules
         -e "s#^\(srcdir\)=.*#\1=$srcdir$l_r#;" \
         -e "s#^\(builddir\)=.*#\1=$builddir$l_r#;" \
         -e "s#^\(rel_libexecdir\)=.*#\1=$rel_libexecdir#;" \
+        -e "s#^\(mpm_includedir\)=.*#\1=$mpm_includedir#;" \
         -e "s#^\(rel_sysconfdir\)=.*#\1=$rel_sysconfdir#;" \
         -e "s#^\(rel_logfiledir\)=.*#\1=$rel_logfiledir#;" \
         -e "s#^\(httpd_conffile\)=.*#\1=$httpd_conffile#;" \
Index: modules/fcgid/Makefile.apxs
===================================================================
--- modules/fcgid/Makefile.apxs.orig
+++ modules/fcgid/Makefile.apxs
@@ -15,7 +15,7 @@ fcgid_builddir=../..
 fcgid_srcdir=../..
 builddir=.
 srcdir=.
-
+mpm_includedir="$(shell $(APXS) -q exp_includedir)"
 CLEAN_TARGETS = *.loT
 include $(exp_installbuilddir)/special.mk
 
@@ -23,6 +23,6 @@ all: local-shared-build all-recursive
 
 #   additional defines, includes and libraries
 DEFS=-DFCGID_APXS_BUILD
-INCLUDES=-I$(builddir) -I$(srcdir) -I$(fcgid_srcdir)/include
+INCLUDES=-I$(builddir) -I$(srcdir) -I$(fcgid_srcdir)/include 
-I$(mpm_includedir)
 #LIBS=-Lmy/lib/dir -lmylib
 
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to