Hello,

Sean Gabriel Heacock wrote:
On Thu, 2006-04-27 at 09:55 -0700, [EMAIL PROTECTED] wrote:

The best thing I can see would be to probably have  per user:group
processor instances of fastcgi, which will probably require hacking on it
instead, non the less I thought I'd ask.


Yeah that's the same conclusion I've come to.  I've been thinking about
hacking fastcgi myself, actually.


You can try to use mod_fcgid 1.08 (http://fastcgi.coremail.cn/download.htm) instead of mod_fastcgi with this patch.

--
Best regards,
Roman Shishnev,
----------------------------------------------------------
http://www.active.by
e-mail: mailto:[EMAIL PROTECTED]
diff -Nru a/arch/unix/fcgid_pm_unix.c b/arch/unix/fcgid_pm_unix.c
--- a/arch/unix/fcgid_pm_unix.c	2006-01-22 16:16:41.000000000 +0200
+++ b/arch/unix/fcgid_pm_unix.c	2006-03-16 15:37:11.017876466 +0200
@@ -284,8 +284,8 @@
 
 	/* Make dir for unix domain socket */
 	if ((rv = apr_dir_make_recursive(get_socketpath(main_server),
-									 APR_UREAD | APR_UWRITE | APR_UEXECUTE,
-									 configpool)) != APR_SUCCESS
+		    APR_UREAD | APR_UWRITE | APR_UEXECUTE | APR_GREAD | APR_GWRITE | APR_GEXECUTE |
+		    APR_WREAD | APR_WWRITE | APR_WEXECUTE, configpool)) != APR_SUCCESS
 		|| chown(get_socketpath(main_server), unixd_config.user_id,
 				 -1) < 0) {
 		ap_log_error(APLOG_MARK, APLOG_ERR, rv, main_server,
@@ -306,7 +306,7 @@
 	/* Create mutex for pipe reading and writing */
 	if ((rv =
 		 apr_global_mutex_create(&g_pipelock, tmpnam(g_pipelock_name),
-								 APR_LOCK_DEFAULT,
+								 APR_LOCK_FCNTL,
 								 main_server->process->pconf)) !=
 		APR_SUCCESS) {
 		ap_log_error(APLOG_MARK, APLOG_EMERG, rv, main_server,
diff -Nru a/arch/unix/fcgid_proc_unix.c b/arch/unix/fcgid_proc_unix.c
--- a/arch/unix/fcgid_proc_unix.c	2006-01-22 16:16:41.000000000 +0200
+++ b/arch/unix/fcgid_proc_unix.c	2006-03-16 12:44:58.000000000 +0200
@@ -206,7 +206,7 @@
 	}
 
 	/* Bind the socket */
-	omask = umask(0077);
+	omask = umask(0000);
 	retcode = bind(unix_socket, (struct sockaddr *) &unix_addr,
 				   sizeof(unix_addr));
 	umask(omask);
diff -Nru a/arch/unix/fcgid_proctbl_unix.c b/arch/unix/fcgid_proctbl_unix.c
--- a/arch/unix/fcgid_proctbl_unix.c	2006-01-22 16:16:41.000000000 +0200
+++ b/arch/unix/fcgid_proctbl_unix.c	2006-03-16 12:44:40.000000000 +0200
@@ -45,7 +45,7 @@
 	/* Create global mutex */
 	if ((rv =
 		 apr_global_mutex_create(&g_sharelock, tmpnam(g_sharelock_name),
-								 APR_LOCK_DEFAULT,
+								 APR_LOCK_FCNTL,
 								 main_server->process->pconf)) !=
 		APR_SUCCESS) {
 		ap_log_error(APLOG_MARK, APLOG_EMERG, rv, main_server,
_______________________________________________
Peruser mailing list
[email protected]
http://www.telana.com/mailman/listinfo/peruser

Reply via email to