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?
You find a screenshot of my (simple setting) here:
http://tobias-schwarzbach.de/~niki/b1.png
Thanks,
Dominik
#############################################################
This message is sent to you because you are subscribed to
the mailing list <CGat...@mail.stalker.com>.
To unsubscribe, E-mail to: <CGateP...@mail.stalker.com>
To switch to the DIGEST mode, E-mail to <CGatePr...@mail.stalker.com>
To switch to the INDEX mode, E-mail to <CGatePr...@mail.stalker.com>
Send administrative queries to <CGatePro...@mail.stalker.com>
I'm sure support will chime in saying something similar.
> 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.