Date: 11/30/00
- Next message: Anshuman Das: "[phplib] I am a linux redhat 6.2 user"
- Previous message: Dominic Paschke: "[phplib] Question regarding md5-Javascript-function!"
- In reply to: Christopher Vrooman: "[phplib] 'Un'expected response using crclogin w/ MD5.js"
- Next in thread: Leif Jakob: "Re: [phplib] PHP CGI"
- Reply: Leif Jakob: "Re: [phplib] PHP CGI"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'm a desparate man. I've spent 8 hours a day for a week and
am stuck. I have a PHP/PHPLIB site that tests quite well with
PHP as a module. I need to run PHP as a CGI to update user accounts in
MySql. I plagerized code from PHPLIB to update them, but can NOT get PHP
to execute as a CGI. I get the following message:
"Security Alert! PHP CGI cannot be accessed directly."
"This PHP CGI binary was compiled with force-cgi-redirect enabled.
"This variable is set, for example, by Apache's Action directive
redirect.
I've perused PHP lists, I've RTFM, php.net/security.php3, but need help.
I don't understand what it takes to execute PHP as a CGI.
Any help is greatly appreciated,
Donovan Wade
--------------------------------------------------------------
Failing Script: test.php
#!/usr/local/bin/php
<?php
phpinfo();
?>
RH 6.2
PHP 3.0.15 (same problem with 4.0.x)
PHPLIB 7.2x
Apache 1.3.12
httpd.conf:
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
<Directory "/usr/local/apache/cgi-bin">
AllowOverride None
Options Indexes FollowSymLinks ExecCGI
Order allow,deny
Allow from all
</Directory>
AddHandler cgi-script .cgi
AddType application/x-httpd-php3 .php3 .php .html
AddType application/x-httpd-php3-source .phps
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Anshuman Das: "[phplib] I am a linux redhat 6.2 user"
- Previous message: Dominic Paschke: "[phplib] Question regarding md5-Javascript-function!"
- In reply to: Christopher Vrooman: "[phplib] 'Un'expected response using crclogin w/ MD5.js"
- Next in thread: Leif Jakob: "Re: [phplib] PHP CGI"
- Reply: Leif Jakob: "Re: [phplib] PHP CGI"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

