PDA

Click to See Complete Forum and Search --> : Php Running Error (Solved)


shahid
Nov 19th, 2002, 11:47 PM
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.

scoutt
Nov 20th, 2002, 09:38 AM
you need to delete the ; in front of it

The Hobo
Nov 20th, 2002, 01:13 PM
What OS are you trying to run this on and which download from php.net did you select?

shahid
Nov 20th, 2002, 11:16 PM
thx for replay

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

shahid
Nov 20th, 2002, 11:19 PM
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

shahid
Nov 22nd, 2002, 09:50 PM
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.

The Hobo
Nov 22nd, 2002, 10:06 PM
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?

shahid
Nov 23rd, 2002, 12:15 AM
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?df=php-4.2.3-installer.exe

if u have a installation file for win98,pws plz

attach here
thx

shahid
Nov 23rd, 2002, 03:08 AM
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?

shahid
Nov 23rd, 2002, 03:54 AM
hi the problem has been solved now php is running

thnak you so much