[apache - php] POST not allowed

Pagina: 1
Acties:

  • whitehouse
  • Registratie: Maart 2000
  • Laatst online: 25-08 22:31
ik krijg de volgende melding als ik een mail-form gemaakt in php wil uitvoeren (lokaal op apache server..)
waarom kan ik geen POST doen ??

Method Not Allowed
The requested method POST is not allowed for the URL /mailing.php.


--------------------------------------------------------------------------------

Apache/1.3.12 Server

  • Dennis
  • Registratie: Februari 2001
  • Laatst online: 00:15
En is er geen regelnummer met daarbij behorend stukje code?

Verwijderd

En als je een willekeurig ander phpscriptje probeert met een POST form?

  • Bosmonster
  • Registratie: Juni 2001
  • Laatst online: 29-08 19:47

Bosmonster

*zucht*

Op Windows of *nix?

Verwijderd

Het is niet zo heel belangrijk of het is pauze...

  • ACM
  • Registratie: Januari 2000
  • Niet online

ACM

Software Architect

Werkt hier

Apache kan _per_ methode instellen of het wel of niet mag en onder welke restricties.

Loop je .htaccess en httpd.conf es na wat die ene directory betreft.

Dit heeft waarschijnlijk niet zoveel met php te maken.

  • whitehouse
  • Registratie: Maart 2000
  • Laatst online: 25-08 22:31
apache op windows 2k

daarnaast staat dit in mijn http.conf ..

#<Directory "C:/Program Files/Apache/users">
# AllowOverride FileInfo AuthConfig Limit
# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
# <Limit GET POST OPTIONS PROPFIND>
# Order allow,deny
# Allow from all
# </Limit>
# <LimitExcept GET POST OPTIONS PROPFIND>
# Order deny,allow
# Deny from all
# </LimitExcept>
#</Directory>

moet ik deze aanpassen ??

  • ACM
  • Registratie: Januari 2000
  • Niet online

ACM

Software Architect

Werkt hier

Op maandag 14 januari 2002 13:16 schreef whitehouse het volgende:
moet ik deze aanpassen ??
# is een commentaar teken...

Dus die "zooi daar" heeft geen negatieve (noch positieve) invloed op de werking van apache...

  • whitehouse
  • Registratie: Maart 2000
  • Laatst online: 25-08 22:31
ok..hier komt de source.. kan iemand mij dan vertellen waar het aan ligt ? ik heb geen pop dichtgegooid (en ook niet geopend..)
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
ServerType standalone
ServerRoot "d:\oracle8i\Apache\Apache"
PidFile logs\httpd.pid
ScoreBoardFile logs\httpd.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MaxRequestsPerChild 0
ThreadsPerChild 50
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
LoadModule mime_magic_module modules/ApacheModuleMimeMagic.dll
LoadModule anon_auth_module modules/ApacheModuleAuthAnon.dll
LoadModule cern_meta_module modules/ApacheModuleCERNMeta.dll
LoadModule digest_module modules/ApacheModuleDigest.dll
LoadModule expires_module modules/ApacheModuleExpires.dll
LoadModule headers_module modules/ApacheModuleHeaders.dll
LoadModule proxy_module modules/ApacheModuleProxy.dll
LoadModule rewrite_module modules/ApacheModuleRewrite.dll
LoadModule speling_module modules/ApacheModuleSpeling.dll
LoadModule status_module modules/ApacheModuleStatus.dll
LoadModule usertrack_module modules/ApacheModuleUserTrack.dll
LoadModule perl_module     modules\ApacheModulePerl.DLL
LoadModule ssl_module      modules\ApacheModuleSSL.DLL
ClearModuleList
AddModule mod_mime_magic.c
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_rewrite.c
AddModule mod_speling.c
AddModule mod_status.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_so.c
AddModule mod_setenvif.c
AddModule mod_auth_anon.c
AddModule mod_cern_meta.c
AddModule mod_digest.c
AddModule mod_expires.c
AddModule mod_headers.c
AddModule mod_proxy.c
AddModule mod_usertrack.c
AddModule mod_perl.c
AddModule mod_ssl.c
ExtendedStatus On
Port 80
Listen 80
Listen 443
ServerAdmin you@your.address
ServerName celly
DocumentRoot "d:\php"
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory "d:\oracle8i\Apache\Apache\htdocs">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
UserDir "d:\oracle8i\Apache\Apache\users\"
DirectoryIndex index.html
AccessFileName .htaccess
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>
UseCanonicalName On
TypesConfig conf\mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
    MIMEMagicFile conf\magic
</IfModule>
HostnameLookups Off
ErrorLog logs\error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs\access_log common
ServerSignature On
Alias /icons/ "d:\oracle8i\Apache\Apache\icons/"
Alias /jservdocs/ "d:\oracle8i\Apache\Jserv\docs/"
<Directory "icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
ScriptAlias /cgi-bin/ "d:\oracle8i\Apache\Apache\cgi-bin/"
<Directory "d:\oracle8i\Apache\Apache\cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>
IndexOptions FancyIndexing
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif

ReadmeName README
HeaderName HEADER

IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

AddEncoding x-compress Z
AddEncoding x-gzip gz tgz


AddLanguage en .en
AddLanguage fr .fr
AddLanguage de .de
AddLanguage da .da
AddLanguage el .el
AddLanguage it .it


LanguagePriority en fr de


AddType application/x-tar .tgz

BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0

BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from localhost celly
</Location>

joes.garage_sale.com


AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl


<IfModule mod_ssl.c>
SSLPassPhraseDialog  builtin
SSLSessionCache    dbm:logs\ssl_scache
SSLSessionCacheTimeout  300
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLLog  logs/ssl_engine_log
SSLLogLevel warn
</IfModule>

<VirtualHost _default_:443>
DocumentRoot "d:\oracle8i\Apache\Apache\htdocs"
ServerName celly
ServerAdmin you@your.address
ErrorLog logs/error_log
TransferLog logs/access_log
SSLEngine on
ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile \conf\ssl.crt\server.crt
SSLCertificateKeyFile conf\ssl.key\server.key
+StrictRequire
<Files ~ "\.(cgi|shtml)$">
    SSLOptions +StdEnvVars
</Files>
<Directory "cgi-bin">
    SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>                      

Alias /perl/ "d:\oracle8i\Apache\Apache/cgi-bin/"

<Location /perl>
    SetHandler  perl-script
    PerlHandler Apache::Registry
    AddHandler perl-script .pl
    Options +ExecCGI
    PerlSendHeader On
</Location>

include "d:\oracle8i\Apache\Jserv\conf\jserv.conf"

include "d:\oracle8i\Apache\Apache\conf\oracle_apache.conf"

Verwijderd

Doe even normaal zeg, je hoeft heus je hele config niet te posten. En is het wel nodig, zet er dan even tussen [ code ] en [/ code ] tags (zonder spaties).

  • Wacky
  • Registratie: Januari 2000
  • Laatst online: 30-08 10:27

Wacky

Dr. Lektroluv \o/

Op maandag 14 januari 2002 17:50 paste whitehouse zijn httpd.conf:
Sjz, moet dat nou echt :?

  • whitehouse
  • Registratie: Maart 2000
  • Laatst online: 25-08 22:31
tja..anders is het moeilijk de fout aan te wijzen..
excuses voor de lange post

Verwijderd

Heeft GoT geen char-limiet voor posts?

  • Engineer
  • Registratie: Juni 2001
  • Laatst online: 04-05 00:03

Engineer

Software

.

[ Voor 98% gewijzigd door Engineer op 13-10-2018 15:55 ]


  • Engineer
  • Registratie: Juni 2001
  • Laatst online: 04-05 00:03

Engineer

Software

.

[ Voor 99% gewijzigd door Engineer op 13-10-2018 15:55 ]


Verwijderd

Op maandag 14 januari 2002 18:17 schreef hdd het volgende:

[..]

65565 tekens oid. maar ik neem aan dat hij geen 65k aan tekst gaat posten..
Zijn post was 23.2kB (23,773 Bytes), 10kB limiet lijkt mij beter.

  • whitehouse
  • Registratie: Maart 2000
  • Laatst online: 25-08 22:31
zo beter ??

  • man-o-script
  • Registratie: Juni 2001
  • Laatst online: 14-09 16:27
waarom zo zeuren over een post?
dan scroll je maar wat verder naar beneden, sjees

//


Verwijderd

Op maandag 14 januari 2002 18:26 schreef whitehouse het volgende:
zo beter ??
Ja :)

Maar waarschijnlijk is het niet nodig om je hele httpd.conf hier te posten, laat staan dat iemand dat allemaal gaat doorspitten.

Verwijderd

Op maandag 14 januari 2002 18:33 schreef man-o-script het volgende:
waarom zo zeuren over een post?
dan scroll je maar wat verder naar beneden, sjees
Over de post-limiet ging al helemaal niet over whitehouse's post, maar over GoT.

Ik zie het niet als "zeuren" maar als kritiek waar een user van kan leren, net zoals ik dat van anderen krijg. Het is geenzins zeikerig bedoeld.

En vanaf nu maar weer on-topic. :)

  • whitehouse
  • Registratie: Maart 2000
  • Laatst online: 25-08 22:31
heeft iemand een stukje "post" code voor mij die ik kan inserten in de httpd.conf ??

  • ACM
  • Registratie: Januari 2000
  • Niet online

ACM

Software Architect

Werkt hier

Ok, het klinkt misschien heel lullig, maar je had die httpd.conf niet hoeven posten ;)

Daar zit iig geen foute config in, wat je wellicht eerst es moet proberen is je apache upgraden naar 1.3.22 het kan best zijn dat dit gewoon een bug is...

Verwijderd

Ik heb ook versie Apache 1.3.22, en ik heb hetzelfde probleem.
Dus als iemand een idee heeft :?

  • MikeN
  • Registratie: April 2001
  • Laatst online: 13-09 17:41
Op maandag 14 januari 2002 23:41 schreef ACM het volgende:
Ok, het klinkt misschien heel lullig, maar je had die httpd.conf niet hoeven posten ;)

Daar zit iig geen foute config in, wat je wellicht eerst es moet proberen is je apache upgraden naar 1.3.22 het kan best zijn dat dit gewoon een bug is...
http://httpd.apache.org/docs/misc/FAQ.html#POSTnotallowed

Het komt dus doordat PHP totaal niet geconfigureerd is...... |:(
Je moet PHP wel aanzetten in je httpd.conf, ik zie hier nergens een loadmodule/addmodule/addtype staan met php erbij. Dus ff hier kijken.....

[edit]
Owja, ACM, tis dus wel een foute config :P
[edit2]
Dus toch goed, dat regeltje in je sig :P
Pagina: 1