Jump to content
Fórum Script Brasil
  • 0
Sign in to follow this  

Iis X Php



instalei o php 4.3.10 pra rodar com o IIS 6.0

mas toda vez que acesso um script php aparece essa message:

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.

e agora? preciso de ajuda urgente!


Share this post

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

É so abrir o "php.ini" e desabilitar isso (porem deixando seu servidor mais inseguro)...

1- Procure o "php.ini" ele esta dentro da pasta do Windows em geral "C:\Window\php.ini"

2- Procure essa linha detro do "php.ini" -> "cgi.force_redirect = 1"

3- Coloque o valor dela em 0, desabilitando essa restrição -> "cgi.force_redirect = 0"

Não esqueça de descomentar ele caso possua um ";" na frente ...

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

Cloud Computing

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...