Toon posts:

php4.3.4+iis6 -->force redirect enabled

Pagina: 1
Acties:

Verwijderd

Topicstarter
Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.

For more information as to why this behaviour exists, see the manual page for CGI security.

For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.
dit krijg je te zien al je op ene link klikt op deze page : http://213.51.18.24/


iemand enig id hoe ik dit kan fixen??

heb al geprobeert de zipped variant aan de praat te krijgen: hielp niets, ook al geprobeert de map te deleten (hielp niet)

de setup NOG ene keer te "draaien" : hielp niet

wat ge googled : kom er ook hier mee niet uit

kan iemand mij helpen?? _/-\o_

mvg


michael

[ Voor 1% gewijzigd door Verwijderd op 16-01-2004 19:59 . Reden: me naam ge-edit :P ]


  • Harm
  • Registratie: Mei 2002
  • Niet online
php.ini editen oid?

  • Joni
  • Registratie: Oktober 2002
  • Niet online
Heb je in "%systemroot%\php.ini" cgi.force_redirect wel goed ingesteld?
quote: %systemroot%php.ini
; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers. Left undefined, PHP turns this on by default. You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
cgi.force_redirect = 0
edit:
Alweer spuit 11. :( :P

[ Voor 9% gewijzigd door Joni op 16-01-2004 20:04 ]


Verwijderd

Topicstarter
hmm, weet niet of dat zin heeft: in dat error msg staat "apache" DIT IS EEN WINDOWS2003 SERVER MET iis6 (GEEN APACHE 1 / 2)


verder heb ik meerdere php.ini filez..


nml..

\documents and settings\administrator\windows\php.ini
(laatste keer hier mee ge-instaleerd)

en dan ook nog uns in ..

\rob\windows\php.ini & \Michael\windows\php.ini

kan ik die laatste 2 gewoon deleten?

en me path naar me wwwroot is gewoon de default nml c:'inetpub\wwwroot

moet ik dat , dan invullen bij dat variable gebeuren??

Verwijderd

Topicstarter
dit heb ik..

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
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"  
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =

; Directory in which the loadable extensions (modules) reside.
extension_dir = "./"

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
enable_dl = On

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers.  Left undefined, PHP turns this on by default.  You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
; cgi.force_redirect = 1
cgi.force_redirect = 0


; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape 
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution.  Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
; cgi.redirect_status_env = ;

; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
; this to 1 will cause PHP CGI to fix it's paths to conform to the spec.  A setting
; of zero causes PHP to behave as before.  Default is zero.  You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
; cgi.fix_pathinfo=0

; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
; security tokens of the calling client.  This allows IIS to define the
; security context that the request runs under.  mod_fastcgi under Apache
; does not currently support this feature (03/17/2002)
; Set to 1 if running under IIS.  Default is zero.
; fastcgi.impersonate = 1;

; cgi.rfc2616_headers configuration option tells PHP what type of headers to
; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
; is supported by Apache. When this option is set to 1 PHP will send
; RFC2616 compliant header.
; Default is zero.
;cgi.rfc2616_headers = 0

Verwijderd

Topicstarter
; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution. Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
; cgi.redirect_status_env = ;
hier gaat het duidelijk om..
enig id wat ik hier moet neer zetten?

Verwijderd

hierbij is google en de faq waar het duidelijk instaat weer eens je beste vriend.
zulke simpele dingen kan je namelijk erg makkelijk zelf oplossen en je hebt er gelijk weer wat van geleerd dan

Verwijderd

Topicstarter
ff ene paar kleine vraagjes

1) het php.ini file staat un i me docs and settings kan ik die php.ini file verplaatsen naar c:\windows ?

2)welke faq?? install.txt in de php instll map??

3) plz ene draadje @google

thnx

michael

Verwijderd

Topicstarter
hij doet et weer :S en aleen ff php.ini file ge moved van \windows\phph (uit me docs & settings map) naar me c:\windows\php.ini :S

najah toch thnx 4 all
Pagina: 1