I have tried to configure PHP the same way, but I get the following when I access the page
http://server.domain.dom:port/cgi-bin/test.php
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’m using a precompiled version of PHP for my server. Is this something that has to be compile in, or can I change a setting on CGP?
Thanks
Wayne Johnston
Ripon Medical Center
Hello, on 22.04.2005 17:10, Dominik Eckelt at d...@n-d-e.de wrote:
> Hello List,
>
> I am sure somebody already asked a similar
question, unfortunately I
> did not find a thread in the message history.
>
> Anyway: Following Problem:
>
> I have PHP documents which should be served
by the CG HTTP server.
> I compiled stand alone executables of PHP4
and PHP5, PHP4 documents
> end with .php and PHP5 with .php5.
>
> The executables are in the /var/CommuniGate/cgi-bin/
folder.
>
> The thing is that CG does not use this
settings (I think). Because
> when I request a *.php document, I get the
plain file without code
> interpretation from PHP.
>
> Even when I set the log levels to maximum I
can not see that CG
> executes the PHP application.
> What is wrong here?
CGPro does not have a PHP processor built into it.
So you can use the php
scripts only as CGI ones, using a php
preprocessor.
For this in WebAdmin -> Settings -> WebUser
-> CGI applications you need to
specify the path to the directory with the scripts
(e.g.
/var/CommuniGate/cgi-bin/), extension-processor
pairs (e.g. php ->
/usr/bin/php) and then refer to those scripts as
if they were CGIs:
<http://cgpro.server:user_port/cgi-bin/script.php>
This should work.
> You find a screenshot of my (simple setting)
here:
> http://tobias-schwarzbach.de/~niki/b1.png
--
Best regards,
Dmitry Akindinov
=======================================================================
When answering to letters sent to you by the tech.support
staff, make
sure the original message you have received is
included into your reply.