Results 1 to 10 of 10

Thread: Php Running Error (Solved)

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    762

    Cool Php Running Error (Solved)

    hi
    i install php from php.net

    but when i run my page i get this error




    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.




    i also set the status for cgi on php.ini like this:
    ; cgi.force_redirect= 0

    but i still get error

    plz any one tell me wot i do for it.
    Last edited by shahid; Nov 23rd, 2002 at 04:55 AM.

  2. #2
    Lively Member scoutt's Avatar
    Join Date
    Aug 2002
    Posts
    84
    you need to delete the ; in front of it
    Just Imagine what you can do with the power of php.

    257 Tutorials and counting.
    529 Snippets and growing.

    Add yours today @
    SnippetLibrary.com

  3. #3
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    What OS are you trying to run this on and which download from php.net did you select?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    762

    Cool

    thx for replay

    ok budy i try to delete the ; sign and try again...

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    762

    Cool

    thank you for replaying


    i m using windows98 with Personal web server.

    php version 4.2

    i download the installer from www.php.net/downloads

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    762

    Cool

    Originally posted by scoutt
    you need to delete the ; in front of it

    I do this but i still get the same.

    i try this
    ;cgi.force_redirect=0
    and also
    cgi.force_redirect=0

    but the same error message i get.

  7. #7
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    What all did you change when you installed it/set it up?

    There's not much you have to change. Are you sure you didn't mess something up in the installation?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    762

    Cool

    ye i installed properly

    at installation time it's ask about server
    what server u installed i select pws

    here is the link from where i download the file

    http://www.php.net/get_download.php?...-installer.exe

    if u have a installation file for win98,pws plz

    attach here
    thx

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    762

    Cool

    i remove this ;

    ;cig.force_redirect=0

    now it's shows as

    cig.force_redirect=0

    now i m getting this error



    CGI Error
    The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:



    wot do u say about it?

  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    762

    Cool

    hi the problem has been solved now php is running

    thnak you so much

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width