* CGI problems whith latest apache2
@ 2005-07-14 10:49 Dr. Volker Zell
2005-07-14 11:08 ` Gerrit P. Haase
0 siblings, 1 reply; 7+ messages in thread
From: Dr. Volker Zell @ 2005-07-14 10:49 UTC (permalink / raw)
To: Cygwin List
Hi list
I get Internal Server Error's when trying to run any CGI script with
latest apache2. Can anybody confirm this ?
http://vzell-de.de.oracle.com:81/cgi-bin/test-cgi
/var/log/apache2/error_log:
[Wed Jul 13 14:29:46 2005] [info] mod_unique_id: using ip addr 169.254.25.129
[Wed Jul 13 14:29:47 2005] [notice] Digest: generating secret for digest authentication ...
[Wed Jul 13 14:29:47 2005] [notice] Digest: done
[Wed Jul 13 14:29:47 2005] [info] mod_unique_id: using ip addr 169.254.25.129
[Wed Jul 13 14:29:48 2005] [notice] Apache/2.0.54 (Unix) DAV/2 configured -- resuming normal operations
[Wed Jul 13 14:29:48 2005] [info] Server built: Jun 22 2005 18:26:34
[Wed Jul 13 14:29:48 2005] [debug] /home/max/devel/cygpkg/.mk-apache2/httpd-2.0.54/server/mpm/prefork/prefork.c(956): AcceptMutex: sysvsem (default: sysvsem)
[Thu Jul 14 12:50:35 2005] [error] [client 169.254.25.129] Premature end of script headers: test-cgi
Ciao
Volker
--
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: CGI problems whith latest apache2
2005-07-14 10:49 CGI problems whith latest apache2 Dr. Volker Zell
@ 2005-07-14 11:08 ` Gerrit P. Haase
2005-07-14 11:25 ` Gerrit P. Haase
0 siblings, 1 reply; 7+ messages in thread
From: Gerrit P. Haase @ 2005-07-14 11:08 UTC (permalink / raw)
To: Dr. Volker Zell; +Cc: Cygwin List
Servus Volker,
> Hi list
>
> I get Internal Server Error's when trying to run any CGI script with
> latest apache2. Can anybody confirm this ?
Basic cgi (test-cgi) scripts are working for me try this t.pl: [1].
I have not tried to activate my mailing list adminstration interface,
but I think it should work when setting up my alias domains
correctly, at least the login page of the ml interface is displayed.
However I have the annoying problem that transmission stops after
every 8k when running Apache2 on my NT4 server and connecting from
remote, anyway running on W2K works fine.
[1]:
#!/usr/bin/perl
print <<EndeMarke
Content-type: text/html
<HTML>
<HEAD><TITLE>hello world</TITLE>
</HEAD>
<BODY bgcolor="lightblue">
<H1>hello world</H1>
</BODY>
</HTML>
EndeMarke
> http://vzell-de.de.oracle.com:81/cgi-bin/test-cgi
Cannot access this.
> /var/log/apache2/error_log:
>
> [Wed Jul 13 14:29:46 2005] [info] mod_unique_id: using ip addr 169.254.25.129
> [Wed Jul 13 14:29:47 2005] [notice] Digest: generating secret for digest authentication ...
> [Wed Jul 13 14:29:47 2005] [notice] Digest: done
> [Wed Jul 13 14:29:47 2005] [info] mod_unique_id: using ip addr 169.254.25.129
> [Wed Jul 13 14:29:48 2005] [notice] Apache/2.0.54 (Unix) DAV/2 configured -- resuming normal operations
> [Wed Jul 13 14:29:48 2005] [info] Server built: Jun 22 2005 18:26:34
> [Wed Jul 13 14:29:48 2005] [debug] /home/max/devel/cygpkg/.mk-apache2/httpd-2.0.54/server/mpm/prefork/prefork.c(956): AcceptMutex: sysvsem (default: sysvsem)
> [Thu Jul 14 12:50:35 2005] [error] [client 169.254.25.129] Premature end of script headers: test-cgi
>
> Ciao
> Volker
Tschüssi,
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: CGI problems whith latest apache2
2005-07-14 11:08 ` Gerrit P. Haase
@ 2005-07-14 11:25 ` Gerrit P. Haase
2005-07-14 11:41 ` Gerrit P. Haase
0 siblings, 1 reply; 7+ messages in thread
From: Gerrit P. Haase @ 2005-07-14 11:25 UTC (permalink / raw)
To: Cygwin List; +Cc: Dr. Volker Zell
Gerrit P. Haase wrote:
> Servus Volker,
>
>> Hi list
>>
>> I get Internal Server Error's when trying to run any CGI script with
>> latest apache2. Can anybody confirm this ?
>
>
> Basic cgi (test-cgi) scripts are working for me try this t.pl: [1].
> I have not tried to activate my mailing list adminstration interface,
> but I think it should work when setting up my alias domains
> correctly, at least the login page of the ml interface is displayed.
>
> However I have the annoying problem that transmission stops after
> every 8k when running Apache2 on my NT4 server and connecting from
> remote, anyway running on W2K works fine.
>
> [1]:
This works for me too:
#!/usr/bin/perl
##
## printenv -- demo CGI program which just prints its environment
##
print "Content-type: text/plain\n\n";
foreach $var (sort(keys(%ENV))) {
$val = $ENV{$var};
$val =~ s|\n|\\n|g;
$val =~ s|"|\\"|g;
print "${var}=\"${val}\"\n";
}
# 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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: CGI problems whith latest apache2
2005-07-14 11:25 ` Gerrit P. Haase
@ 2005-07-14 11:41 ` Gerrit P. Haase
2005-07-14 16:06 ` Dr. Volker Zell
0 siblings, 1 reply; 7+ messages in thread
From: Gerrit P. Haase @ 2005-07-14 11:41 UTC (permalink / raw)
To: Dr. Volker Zell; +Cc: Cygwin List
Hi Volker,
>>> I get Internal Server Error's when trying to run any CGI script with
>>> latest apache2. Can anybody confirm this ?
>> Basic cgi (test-cgi) scripts are working for me try this t.pl: [1].
>> I have not tried to activate my mailing list adminstration interface,
>> but I think it should work when setting up my alias domains
>> correctly, at least the login page of the ml interface is displayed.
>> [...]
>> [1]:
CGI.pm works for me too:
#!/usr/bin/perl -w
use CGI; # load CGI routines
$q = new CGI; # create new CGI object
print $q->header, # create the HTTP header
$q->start_html('hello world'), # start the HTML
$q->h1('hello world'), # level 1 header
$q->end_html; # end the HTML
# Gerrit
P.S.: Have you checked file / directory permissions? Under which user
account is httpd running, this user has access too?
--
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: CGI problems whith latest apache2
2005-07-14 11:41 ` Gerrit P. Haase
@ 2005-07-14 16:06 ` Dr. Volker Zell
2005-07-14 19:30 ` Gerrit P. Haase
0 siblings, 1 reply; 7+ messages in thread
From: Dr. Volker Zell @ 2005-07-14 16:06 UTC (permalink / raw)
To: cygwin
>>>>> 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
06:06 PM [510]> cat /etc/passwd
system::18:544:,S-1-5-18:/home/system:/bin/bash
root:*:544:544:,S-1-5-32-544::
admin:unused_by_nt/2000/xp:500:513:Dr. Volker Zell,U-vzell-de\Administrator,S-1-5-21-1085693837-1141710521-909380691-500:/home/Administrator:/bin/bash
guest:unused_by_nt/2000/xp:501:513:U-vzell-de\Guest,S-1-5-21-1085693837-1141710521-909380691-501:/home/Guest:/bin/bash
vzell:unused_by_nt/2000/xp:1000:513:Dr. Volker Zell,U-vzell-de\vzell,S-1-5-21-1085693837-1141710521-909380691-1000:/home/vzell:/bin/bash
sshd:unused_by_nt/2000/xp:1004:513:sshd privsep,U-vzell-de\sshd,S-1-5-21-1085693837-1141710521-909380691-1004:/var/empty:/bin/false
06:07 PM [511]> cat /etc/group
root:S-1-5-32-544:0:
system:S-1-5-18:18:
admin:S-1-5-21-1085693837-1141710521-909380691-513:513:
admins:S-1-5-32-544:544:
Backup Operators:S-1-5-32-551:551:
guests:S-1-5-32-546:546:
Power Users:S-1-5-32-547:547:
Replicator:S-1-5-32-552:552:
users:S-1-5-32-545:545:
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
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 ../
Ciao
Volker
--
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: CGI problems whith latest apache2
2005-07-14 16:06 ` Dr. Volker Zell
@ 2005-07-14 19:30 ` Gerrit P. Haase
2005-07-20 11:30 ` Dr. Volker Zell
0 siblings, 1 reply; 7+ messages in thread
From: Gerrit P. Haase @ 2005-07-14 19:30 UTC (permalink / raw)
To: Dr. Volker Zell, Cygwin
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: CGI problems whith latest apache2
2005-07-14 19:30 ` Gerrit P. Haase
@ 2005-07-20 11:30 ` Dr. Volker Zell
0 siblings, 0 replies; 7+ messages in thread
From: Dr. Volker Zell @ 2005-07-20 11:30 UTC (permalink / raw)
To: Cygwin
>>>>> Gerrit P Haase writes:
> Sorry if this doesn't help much,
Problem solved. After a rebaseall, CGI with apache2 works like a charm.
> Gerrit
Ciao
Volker
--
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-07-20 11:30 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-14 10:49 CGI problems whith latest apache2 Dr. Volker Zell
2005-07-14 11:08 ` Gerrit P. Haase
2005-07-14 11:25 ` Gerrit P. Haase
2005-07-14 11:41 ` Gerrit P. Haase
2005-07-14 16:06 ` Dr. Volker Zell
2005-07-14 19:30 ` Gerrit P. Haase
2005-07-20 11:30 ` Dr. Volker Zell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).