php-install Digest 4 Aug 2003 16:47:07 -0000 Issue 1488

Topics (messages 11382 through 11388):

Security Alert when trying to access a php file
        11382 by: Jack
        11383 by: Bob G

PHP and Apache
        11384 by: antonio bernabei

Re: [PHP-WIN] Security Alert when trying to access a php file
        11385 by: Duane Lakoduk

Re: HELP PLEASE!?!
        11386 by: sven

Re: Java Extension for PHP
        11387 by: Isaac Moreno Cervera

SMTP in PHP.ini
        11388 by: Wential

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Dear all
I had install PHP to my Win2k Server which running IIS 5.0.
I had copied the 'php.ini-dist' to c:\winnt, php4ts.dll to
c:\winnt\system32.
Also had configurated the App Tab inside Internet Service manager.
Now when i try to access the php file through intranet, it keep prompts me
the following 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 <http://php.net/security.cgi-bin>.
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 <http://php.net/install.windows>."

I had check the php.ini which inside the c:\winnt, and turn the
cgi.force_redirection from 1 to 0, but still showing the same warning
again!!!

Can someone please tell me what to do?

Thx

Jack




--- End Message ---
--- Begin Message ---
Jack. I had exactly the same problem for weeks. Eventually I installed
Apache and the problem went away.
Regards
Bob

-----Original Message-----
From: Jack [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 9:25 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-INST] Security Alert when trying to access a php file


Dear all
I had install PHP to my Win2k Server which running IIS 5.0.
I had copied the 'php.ini-dist' to c:\winnt, php4ts.dll to
c:\winnt\system32.
Also had configurated the App Tab inside Internet Service manager.
Now when i try to access the php file through intranet, it keep prompts me
the following 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 <http://php.net/security.cgi-bin>.
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 <http://php.net/install.windows>."

I had check the php.ini which inside the c:\winnt, and turn the
cgi.force_redirection from 1 to 0, but still showing the same warning
again!!!

Can someone please tell me what to do?

Thx

Jack




--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
Hi,
I have a linux system and I try to install apache and php.
I followed the instructions to get a static version of apache and php.
But when I reach a .php page I get a message asking to download.
I made the checkings found around.
1. the httpd.conf file is the correct one (if I try to change sth in the
AddType line I see the changes)
2. the executable of httpd is the last one and and I see mod_php with the
command httpd -l
Any suggestions?
Thank you
Antonio Bernabei



--- End Message ---
--- Begin Message ---
If you read the php.ini file where the cgi.force_redirect variable is set,
it states that this MUST be turned off when running under IIS.
Try this

; 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

hth, Duane

-----Original Message-----
From: Jack [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 3:25 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-WIN] Security Alert when trying to access a php file


Dear all
I had install PHP to my Win2k Server which running IIS 5.0.
I had copied the 'php.ini-dist' to c:\winnt, php4ts.dll to
c:\winnt\system32.
Also had configurated the App Tab inside Internet Service manager.
Now when i try to access the php file through intranet, it keep prompts me
the following 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 <http://php.net/security.cgi-bin>.
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 <http://php.net/install.windows>."

I had check the php.ini which inside the c:\winnt, and turn the
cgi.force_redirection from 1 to 0, but still showing the same warning
again!!!

Can someone please tell me what to do?

Thx

Jack




--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---
this sounds like your apache doesn't know the .php-extension. and so tryies
to provide this unknown file via download. is there a line like this in your
httpd.conf?

AddType application/x-httpd-php .php

ciao SVEN

Ry On wrote:
> HI,
> I am currently running apache 2 on my XP box and i am having trouble
> getting PHP to work properly. I have read all of the message boards
> and FAQ's but i didn't see anything like this. Everytime i try to
> open up a simle script that i made in my browser, a box pops up that
> says 'save' 'open' 'more info' ect... but the script won't open in
> the browser. THanks
> Ry.
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software



--- End Message ---
--- Begin Message ---
Hi there,
Sorry for my english. I'm spanish.

I'm trying to run my Java classes through php. I've tried all the possible
settings in my php.ini file (I've read everything in php.net), and althought
php doesn't crash, the Java code does nothing. I get no errors neither
warnings but the Java classes seems not to run. And when I run that classes
from the command line they work.
However, if I run this piece of code (that it's very similar to mine):

<?php
$systemInfo = new Java("java.lang.System");
print "Total seconds since January 1, 1970:
".$systemInfo->currentTimeMillis();
?>

It works perfectly!!! Why my classes don't work? I'm sure it isn't the
CLASSPATH. And PHP settings in php.ini seems to be OK.

And there is more. If after a while, I reload the page I get a PHP Fatal
Error because it can't create a JVM. I've seen this issue in lots of sites
but it seems that no-one has solved it on Windows. Did anybody find a
solution?

I've also tried to run "java myclass" from "system" and "exec" PHP commands
with no success.

Can anybody help me, please?

Thanks a lot.

Running:        W2K, SP3.
                Apache 1.3.27.
                PHP 4.3.1.
                J2RE v1.4.1_01.

Isaac


--- End Message ---
--- Begin Message ---
Besides enabling SMTP to for Win32 email in PHP.ini, I need to add
script to use a log on name and password (Authentication) to use the
SMTP server. Does anyone have that script?

Thanks!


--- End Message ---

Reply via email to