You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2017/06/26 15:44:21 UTC
svn commit: r1799930 - in /httpd/test/framework/trunk/scripts: fcgi.pl fpm.sh
Author: jim
Date: Mon Jun 26 15:44:21 2017
New Revision: 1799930
URL: http://svn.apache.org/viewvc?rev=1799930&view=rev
Log:
initial commit... the shell script needs to be
updated to point to the correct location for
the PHP scripts
Added:
httpd/test/framework/trunk/scripts/fcgi.pl (with props)
httpd/test/framework/trunk/scripts/fpm.sh (with props)
Added: httpd/test/framework/trunk/scripts/fcgi.pl
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/scripts/fcgi.pl?rev=1799930&view=auto
==============================================================================
--- httpd/test/framework/trunk/scripts/fcgi.pl (added)
+++ httpd/test/framework/trunk/scripts/fcgi.pl Mon Jun 26 15:44:21 2017
@@ -0,0 +1,25 @@
+#!/usr/bin/env perl
+use FCGI;
+use Socket;
+use FCGI::ProcManager;
+use Data::Dumper;
+
+$num_args = $#ARGV + 1;
+if ($num_args != 1) {
+ print "\nUsage: fcgi.pl <socket>\n";
+ exit 1;
+}
+
+$proc_manager = FCGI::ProcManager->new( {n_processes => 1} );
+$socket = FCGI::OpenSocket( $ARGV[0], 10 );
+$request = FCGI::Request( \*STDIN, \*STDOUT, \*STDERR, \%req_params,
+$socket, &FCGI::FAIL_ACCEPT_ON_INTR );
+$proc_manager->pm_manage();
+if ($request) {
+ while ( $request->Accept() >= 0 ) {
+ $proc_manager->pm_pre_dispatch();
+ print("Content-type: text/plain\r\n\r\n");
+ print Dumper(\%req_params);
+ }
+}
+FCGI::CloseSocket($socket);
Propchange: httpd/test/framework/trunk/scripts/fcgi.pl
------------------------------------------------------------------------------
svn:executable = *
Added: httpd/test/framework/trunk/scripts/fpm.sh
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/scripts/fpm.sh?rev=1799930&view=auto
==============================================================================
--- httpd/test/framework/trunk/scripts/fpm.sh (added)
+++ httpd/test/framework/trunk/scripts/fpm.sh Mon Jun 26 15:44:21 2017
@@ -0,0 +1 @@
+php-fpm70 -p /usr/local2/php-fpm
Propchange: httpd/test/framework/trunk/scripts/fpm.sh
------------------------------------------------------------------------------
svn:executable = *