CGI problems whith latest apache2
Gerrit P. Haase
gerrit@familiehaase.de
Thu Jul 14 19:30:00 GMT 2005
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/
More information about the Cygwin
mailing list