delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/14/15:30:56

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <42D6BCE0.6090408@familiehaase.de>
Date: Thu, 14 Jul 2005 21:28:32 +0200
From: "Gerrit P. Haase" <gerrit AT familiehaase DOT de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511
MIME-Version: 1.0
To: "Dr. Volker Zell" <Dr DOT Volker DOT Zell AT oracle DOT com>, Cygwin <cygwin AT cygwin DOT com>
Subject: Re: CGI problems whith latest apache2
References: <87pstlpslc DOT fsf AT vzell-de DOT de DOT oracle DOT com> <42D64762 DOT 7070607 AT familiehaase DOT de> <42D64B54 DOT 6000001 AT familiehaase DOT de> <42D64F21 DOT 90704 AT familiehaase DOT de> <871x61id37 DOT fsf AT vzell-de DOT de DOT oracle DOT com>
In-Reply-To: <871x61id37.fsf@vzell-de.de.oracle.com>
X-IsSubscribed: yes

Dr. Volker Zell wrote:

>>>>>>Gerrit P Haase writes:
> 
> 
>     > P.S.: Have you checked file / directory permissions?  Under which user
>     > account is httpd running, this user has access too?
> 
> 06:06 PM [508]> grep "User " /etc/apache2/httpd.conf 
> #  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
> User vzell
> 
> 06:06 PM [509]> grep "Group " /etc/apache2/httpd.conf 
> #  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
> #  when the value of (unsigned)Group is above 60000; 
> #  don't use Group #-1 on these systems!
> Group admin


$ grep "User " /etc/apache2/httpd.conf
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
User Apache

$ grep "Group " /etc/apache2/httpd.conf
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  when the value of (unsigned)Group is above 60000;
#  don't use Group #-1 on these systems!
Group services


> 06:05 PM [506]> procps aux --forest | grep httpd2
> vzell     2120  0.0  0.7   6912  8016 ?        Ss   Aug30   0:00 /usr/sbin/httpd2 -k start 
> vzell     2024  0.0  0.7   6928  7892 ?        S    Aug30   0:00  \_ /usr/sbin/httpd2 -k start 
> vzell     2156  0.0  0.7   6908  7872 ?        S    Aug30   0:00  \_ /usr/sbin/httpd2 -k start 
> vzell      148  0.0  0.7   6924  7888 ?        S    Aug30   0:00  \_ /usr/sbin/httpd2 -k start 
> vzell     2428  0.0  0.1   2656  1520 tty3     S    21:47   0:00          |       \_ grep httpd2 

Aug30 there.  Welcome in the past.


$ procps aux --forest | grep httpd2
gerrit    1103  0.0  0.1   1432  1956 tty1     S    21:06   0:00      \_ 
grep httpd2
gerrit    2022  0.0  0.7   6400  8076 ?        Ss   Jul10   0:01 
/usr/sbin/httpd2 -k start
gerrit    2247  0.0  0.7   6352  7632 ?        S    Jul10   0:00  \_ 
/usr/sbin/httpd2 -k s
gerrit    1129  0.0  0.7   6316  7592 ?        S    Jul10   0:00  \_ 
/usr/sbin/httpd2 -k s
gerrit    1051  0.0  0.7   6316  7596 ?        S    Jul10   0:00  \_ 
/usr/sbin/httpd2 -k s
gerrit    1189  0.0  0.7   6316  7596 ?        S    Jul10   0:00  \_ 
/usr/sbin/httpd2 -k s
...

Interesting, I started it from the shell with 'apachectl -k start'
and it doesn't switch the user.

> 06:07 PM [512]> ls -lsaitR /srv
> /srv:
> total 4
> 1407374883553285 4 drwxrwxr-x+ 15 root  root  4096 Jul 14 08:23 ../
>  281474977276901 0 drwxr-xr-x+  4 vzell admin    0 Jun 24 08:21 www/
>  281474977276900 0 drwxr-xr-x+  3 vzell admin    0 Jun 24 08:21 ./
> 
> /srv/www:
> total 12
> 281474977276939  0 drwxr-xr-x+ 2 vzell admin     0 Jul 14 18:08 cgi-bin/
> 281474977276902 12 drwxr-xr-x+ 2 vzell admin 12288 Jul  9 12:39 htdocs/
> 281474977276901  0 drwxr-xr-x+ 4 vzell admin     0 Jun 24 08:21 ./
> 281474977276900  0 drwxr-xr-x+ 3 vzell admin     0 Jun 24 08:21 ../
> 
> /srv/www/cgi-bin:
> total 5
> 281474977276939 0 drwxr-xr-x+ 2 vzell admin   0 Jul 14 18:08 ./
> 281474977276940 1 -rwxr-xr-x+ 1 vzell admin 288 Jul  9 12:14 printenv*
> 281474977276941 4 -rwxr-xr-x+ 1 vzell admin 779 Jun 24 08:21 test-cgi*
> 281474977276901 0 drwxr-xr-x+ 4 vzell admin   0 Jun 24 08:21 ../


This looks fine to me.

I saw similar problems with the first versions of Apache2 I compiled
myself, so I never was able to use it.


- Of course you have checked the FAQ:
   http://httpd.apache.org/docs/misc/FAQ-F.html#premature-script-headers
- The script is running from the shell?
- cygserver is running and was not restarted after apache2 was
   fired up?


Sorry if this doesn't help much,
Gerrit

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019