Toon posts:

PHP+IIS6 werkt niet meer?

Pagina: 1
Acties:
  • 60 views sinds 30-01-2008

Verwijderd

Topicstarter
als ik http://213.51.18.24/index.php doe, krijg ik het volgende:

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.

het enige wat ik heb gedaan is de installer gerun-ed and net na de install zei ie de extensie .php op welke dinge moet ik dat toepassen en toen heb ik o.a.

http://213.51.18.24/tweakers/php.jpg

die dingen aan gevinkt (allemaal)

de vorige keer dat i php deed instaleren had ik dit probleem niet, hij vroeg toen ook niets van nodes etc, duz weet niet wat ik nu moet doen.. _/-\o_


[update] ; 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 = 1

; 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 [/update]

dit heb ik gevonden in \php\backup de cgi stond eerst op 0 heb het nu in 1 veranderd

maar ik weet niet wat ik dan als variable moet invoeren.....

[ Voor 41% gewijzigd door Verwijderd op 21-06-2003 20:03 ]


  • Hmmbob
  • Registratie: September 2001
  • Laatst online: 21:28
er staat letterlijk:
; **You CAN safely turn this off for IIS, in fact, you MUST.**
; cgi.force_redirect = 1
cgi.force_redirect = 1
er staat dus, dat je die optie UIT moet zetten...

conclusie, maak van de 1 een 0

offtopic:
Wat doet dit eigenlijk in PMG?

[ Voor 19% gewijzigd door Hmmbob op 21-06-2003 20:07 . Reden: conclusie toegevoegd ]

Sometimes you need to plan for coincidence


Verwijderd

Topicstarter
dat HAD ik al... en toen kreeg ik die erro NOG steeds, heb net de php setup NOG een keer gerunned

de setup heeft schijnbaar ingesteld dat php via CGi loopt >> 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

duz die 0 moet duz zowiezo een 1 zijn, verder moet ik dan nog een variable hebben (zie boven)

>> oops sry, verkeerder topic :P (d8 teveel aan me post over me mobo )

plz zet et ff naar het goede thnx

[ Voor 91% gewijzigd door Verwijderd op 21-06-2003 20:13 ]


  • sds
  • Registratie: Juni 2002
  • Laatst online: 01-08 11:02

sds

Je hebt ook een error gekregen met die installer als het goed is (kreeg ik in ieder geval wel maar dat is al lang geleden), die installer werkt niet met iis6 of dat moeten ze ondertussen gefixt hebben.
Maar in ieder geval op http://www.php.net/manual/en/install.iis.php staat hoe je php als isapi onder iis6 aan de gang krijgt (bij de User Contributed Notes).

  • dion_b
  • Registratie: September 2000
  • Laatst online: 00:33

dion_b

Moderator Harde Waren

say Baah

Wat doet dit idd in PMG :?

Ik zou'm kunnen moven naar de zachte waren, maar het antwoord is al gegeven zie ik :z

verkeerder forum- dicht

Oslik blyat! Oslik!


Dit topic is gesloten.