Mail Archives: cygwin/2001/12/08/10:59:09
I am having problems setting permissions for CGI, Please help. I get the
error:
Method Not Allowed
The requested method POST is not allowed for the URL /cgi-bin/hello.pl.
Apache/1.3.22 Server at MERLIN Port 80
Following are the setup parameters & permissions:
the cgi-bin directory is located in g:\u\html\dphone\cgi-bin - dos notation
permissions on hello.pl file
-rwxr-xr-x 1 Administ None 103 Dec 8 08:38 hello.pl
permissions on cgi-bin directory
drwxr-xr-x 13 Administ None 81920 Dec 7 15:03 cgi-bin
The Hello.pl file contains
#!/bin/perl.exe
use CGI;
print header ( );
print "[whatever you'd like to say]" ;
httpd.conf cgi settings
ScriptAlias /cgi-bin/ "/cygdrive/g/u/html/dphone/cgi-bin/"
#
# "/usr/local/apache/cgi-bin" should be changed to whatever your
ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/cygdrive/g/u/html/dphone/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
ExecCGI
</Directory>
# To use CGI scripts:
#
AddHandler cgi-script .cgi .pl cgi pl
<Directory "/cygdrive/g/u/html/dphone/cgi-bin">
Options +ExecCGI
</Directory>
cygcheck -s -v -r produces
Cygnus Win95/NT Configuration Diagnostics
Current System Time: Sat Dec 08 08:40:32 2001
Windows 2000 Server Ver 5.0 build 2195 Service Pack 2
Path: F:\cygwin\usr\local\bin
F:\cygwin\bin
F:\cygwin\bin
f:\Perl\bin\
d:\WINNT\system32
d:\WINNT
d:\WINNT\System32\Wbem
d:\Program Files\Microsoft SQL Server\80\Tools\BINN
d:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT
d:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
d:\Program Files\Microsoft Visual Studio\Common\Tools
f:\Program Files\Microsoft Visual Studio\VC98\bin
SysDir: D:\WINNT\System32
WinDir: D:\WINNT
HOME = `F:\cygwin\home\Administrator'
MAKE_MODE = `unix'
PWD = `/home/Administrator'
USER = `Administrator'
!:: = `::\'
ALLUSERSPROFILE = `D:\Documents and Settings\All Users'
APPDATA = `D:\Documents and Settings\Administrator\Application Data'
COMMONPROGRAMFILES = `D:\Program Files\Common Files'
COMPUTERNAME = `MERLIN'
COMSPEC = `D:\WINNT\system32\cmd.exe'
HOMEDRIVE = `D:'
HOMEPATH = `\'
INCLUDE = `F:\Program Files\Microsoft Visual
Studio\VC98\atl\include;F:\Program Files\Microsoft Visual
Studio\VC98\mfc\include;F:\Program Files\Microsoft Visual
Studio\VC98\include'
LIB = `F:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;F:\Program
Files\Microsoft Visual Studio\VC98\lib'
LOGONSERVER = `\\MERLIN'
MSDEVDIR = `D:\Program Files\Microsoft Visual Studio\Common\MSDev98'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/usr/bin'
OS2LIBPATH = `D:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PERL5LIB = `F:\Program Files\Komodo '
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 3 Stepping 1, AuthenticAMD'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0301'
PROGRAMFILES = `D:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
SHLVL = `1'
SYSTEMDRIVE = `D:'
SYSTEMROOT = `D:\WINNT'
TEMP = `d:\DOCUME~1\ADMINI~1\LOCALS~1\Temp'
TERM = `cygwin'
TMP = `d:\DOCUME~1\ADMINI~1\LOCALS~1\Temp'
USERDOMAIN = `MERLIN'
USERNAME = `Administrator'
USERPROFILE = `D:\Documents and Settings\Administrator'
WINDIR = `D:\WINNT'
_ = `/usr/bin/cygcheck'
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
(default) = `/cygdrive'
cygdrive flags = 0x00000022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrd
er\Start Menu\Programs\Cygnus Solutions
(default) = (unsupported type)
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
(default) = `F:/cygwin'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
(default) = `F:/cygwin/bin'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
(default) = `F:/cygwin/lib'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
a: fd N/A N/A
c: hd NTFS 4996Mb 37% CP CS UN PA FC Pro
d: hd NTFS 3051Mb 71% CP CS UN PA FC Svr
e: cd CDFS 544Mb 100% CS DN60AENU2
f: hd NTFS 4996Mb 88% CP CS UN PA FC Install
g: hd NTFS 4996Mb 62% CP CS UN PA FC Webs
h: hd NTFS 4094Mb 1% CP CS UN PA FC New Volume
i: hd NTFS 10595Mb 58% CP CS UN PA FC Database
j: hd NTFS 5310Mb 1% CP CS UN PA FC New Volume
k: hd NTFS 133Mb 2% CP CS UN PA FC New Volume
. /cygdrive user binmode,noumount
F:/cygwin / system binmode
F:/cygwin/bin /usr/bin system binmode
F:/cygwin/lib /usr/lib system binmode
Found: F:\cygwin\bin\bash.exe
Found: F:\cygwin\bin\cat.exe
Found: F:\cygwin\bin\cpp.exe
Found: F:\cygwin\bin\find.exe
Found: F:\cygwin\bin\gcc.exe
Found: F:\cygwin\bin\gdb.exe
Found: F:\cygwin\bin\ld.exe
Found: F:\cygwin\bin\ls.exe
Found: F:\cygwin\bin\make.exe
Found: F:\cygwin\bin\sh.exe
56k 2000/12/03 F:\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0
"cygbz21.0.dll" v0.0 ts=2000/11/20 17:53
821k 2001/11/19 F:\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0
"cygcrypto.dll" v0.0 ts=2001/11/19 17:42
1050k 2001/11/16 F:\cygwin\bin\cygcurl-2.dll - os=4.0 img=1.0 sys=4.0
"cygcurl-2.dll" v0.0 ts=2001/11/16 13:22
45k 2001/04/25 F:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
"cygform5.dll" v0.0 ts=2001/4/25 0:28
34k 2001/09/30 F:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
"cygform6.dll" v0.0 ts=2001/9/29 21:43
18k 2000/10/23 F:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm.dll" v0.0 ts=2000/10/22 21:26
17k 2001/06/28 F:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
"cyghistory4.dll" v0.0 ts=2001/1/6 22:34
21k 2001/06/28 F:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
"cyghistory5.dll" v0.0 ts=2001/6/27 21:27
21k 2001/06/20 F:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
"cygintl.dll" v0.0 ts=2001/6/20 12:09
81k 2000/12/05 F:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
"cygitcl30.dll" v0.0 ts=2000/11/25 19:43
35k 2000/12/05 F:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
"cygitk30.dll" v0.0 ts=2000/11/25 19:43
45k 2001/07/04 F:\cygwin\bin\cygjbig1.dll - os=4.0 img=1.0 sys=4.0
"cygjbig1.dll" v0.0 ts=2001/7/3 22:25
119k 2001/06/06 F:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0
"cygjpeg6b.dll" v0.0 ts=2001/6/5 23:27
26k 2001/04/25 F:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
"cygmenu5.dll" v0.0 ts=2001/4/25 0:27
19k 2001/09/30 F:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
"cygmenu6.dll" v0.0 ts=2001/9/29 21:43
156k 2001/04/25 F:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
"cygncurses++5.dll" v0.0 ts=2001/4/25 0:29
175k 2001/09/30 F:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
"cygncurses++6.dll" v0.0 ts=2001/9/29 21:45
226k 2001/04/25 F:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
"cygncurses5.dll" v0.0 ts=2001/4/25 0:17
201k 2001/09/30 F:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
"cygncurses6.dll" v0.0 ts=2001/9/29 21:42
15k 2001/04/25 F:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
"cygpanel5.dll" v0.0 ts=2001/4/25 0:27
12k 2001/09/30 F:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
"cygpanel6.dll" v0.0 ts=2001/9/29 21:43
163k 2001/05/06 F:\cygwin\bin\cygpng2.dll - os=4.0 img=1.0 sys=4.0
"cygpng2.dll" v0.0 ts=2001/5/5 23:05
108k 2001/06/28 F:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
"cygreadline4.dll" v0.0 ts=2001/1/6 22:34
135k 2001/06/28 F:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
"cygreadline5.dll" v0.0 ts=2001/6/27 21:27
231k 2001/11/19 F:\cygwin\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0
"cygssl.dll" v0.0 ts=2001/11/19 17:42
390k 2000/12/05 F:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
"cygtcl80.dll" v0.0 ts=2000/11/25 19:39
5k 2000/12/05 F:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
10k 2000/12/05 F:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
"cygtclreg80.dll" v0.0 ts=2000/11/25 19:39
245k 2001/06/12 F:\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0
"cygtiff3.dll" v0.0 ts=2001/6/12 12:25
623k 2000/12/05 F:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
"cygtk80.dll" v0.0 ts=2000/11/25 19:43
41k 2001/07/04 F:\cygwin\bin\cygXpm-noX4.dll - os=4.0 img=1.0 sys=4.0
"cygXpm-noX4.dll" v0.0 ts=2001/7/3 20:21
45k 2001/07/04 F:\cygwin\bin\cygXpm-X4.dll - os=4.0 img=1.0 sys=4.0
"cygXpm-X4.dll" v0.0 ts=2000/11/19 20:45
49k 2001/02/03 F:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
"cygz.dll" v0.0 ts=2001/2/3 14:35
714k 2001/11/14 F:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
"cygwin1.dll" v0.0 ts=2001/11/13 22:16
Cygwin DLL version info:
DLL version: 1.3.5
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 47
Shared data: 3
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin
Program options name: Program Options
Cygwin mount registry name: mounts v2
Cygdrive flags: cygdrive flags
Cygdrive prefix: cygdrive prefix
Cygdrive default prefix:
Build date: Tue Nov 13 23:16:25 EST 2001
CVS tag: cygwin-1-3-5-2
Shared id: cygwin1S3
Cygwin Package Information
Last downloaded files to:
Last downloaded files from: ˜$?
Package Version
ash 20011018-1
autoconf 2.52-1
automake 1.5-1
bash 2.05a-2
binutils 20011002-1
bison 1.28-1
byacc 0.0
bzip2 1.0.1-6
clear 1.0
cpio 2.4.2
cron 3.0.1-5
crypt 1.0-1
ctags 5.0.1-1
curl 7.9.1-1
cvs 1.11.0-1
cygrunsrv 0.94-2
cygwin 1.3.5-3
dejagnu 20010117-1
diff 0.0
expect 20010117-1
file 3.33-1
fileutils 4.1-1
findutils 0.0
flex 2.5.4-1
gawk 3.0.4-1
gcc 2.95.3-5
gdb 20010428-3
gdbm 1.8.0-3
gettext 0.10.38-2
ghostscript 6.51-1
gperf 0.0
grep 2.4.2-1
groff 1.17.2-1
gzip 1.3-1
indent 2.2.6-2
inetutils 1.3.2-15
irc 20010101-1
jbigkit 1.2-4
jpeg 6b-4
less 358-3
libncurses5 5.2-1
libncurses6 5.2-2
libpng 1.0.11-1
login 1.4-2
lynx 2.8.4-1
m4 0.0
make 3.79.1-4
man 1.5g-2
mingw 20010917-1
mingw-runtime 1.1-1
mt 2.0.1-1
mutt 1.2.5i-5
nano 1.0.6-1
ncftp 3.0.2-2
ncurses 5.2-7
newlib-man 20001118-1
opengl 1.1.0-5
openssh 3.0.1p1-1
openssl 0.9.6b-2
patch 2.5-2
pcre 3.4-2
perl 5.6.1-2
popt 1.6.1-1
postgresql 7.1.3-1
python 2.1.1-2
readline 4.2-3
regex 4.4
rsync 2.4.6-2
rxvt 2.7.2-6
sed 3.02-1
sh-utils 2.0-2
sharutils 4.2.1-1
squid 2.4-STABLE20010508
ssmtp 2.38.7-3
tar 1.13.19-1
tcltk 20001125-1
tcsh 6.10.00-3
termcap 20010825-1
terminfo 5.2-1
tetex-beta 20001218-1
texinfo 4.0-4
textutils 2.0.16-1
tiff 3.5.6beta-2
time 1.7-1
unzip 5.41-1
vim 6.0.93-1
w32api 1.1-1
wget 1.7-1
which 1.5-1
xpm-nox 4.1.0-1
zip 2.3-1
zlib 1.1.3-6
Use -h to see help about each section
perl -v gives
This is perl, v5.6.1 built for cygwin-multi
httpd - l produces
$ /usr/local/apache/bin/httpd -l
Compiled-in modules:
http_core.c
mod_so.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
I used the following configure command when installing Apache
./configure --enable-module=most --enable-shared=max
and this was the resulting output
Configuring for Apache, Version 1.3.22
+ using installation path layout: Apache (config.layout)
Creating Makefile
Creating Configuration.apaci in src
+ enabling mod_so for DSO support
Creating Makefile in src
+ configured for Cygwin platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ checking for system header files
+ adding selected modules
o rewrite_module uses ConfigStart/End
disabling DBM support for mod_rewrite
(perhaps you need to add -ldbm, -lndbm or -lgdbm to EXTRA_LIBS)
o dbm_auth_module uses ConfigStart/End
+ using builtin Expat
+ enabling generation of Apache core as DLL
+ checking sizeof various data types
+ doing sanity check on compiler and options
Creating Makefile in src/support
Creating Makefile in src/regex
Creating Makefile in src/os/cygwin
Creating Makefile in src/ap
Creating Makefile in src/main
Creating Makefile in src/lib/expat-lite
Creating Makefile in src/modules/standard
Creating Makefile in src/modules/proxy
I ran make twice and then ran make install. I saw no errors in either.
Thanks
Mike Willhite
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -