Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Question to CGI Applications

4 views
Skip to first unread message

Dominik Eckelt

unread,
Apr 22, 2005, 9:10:38 AM4/22/05
to
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?

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>

Fred Skrotzki

unread,
Apr 22, 2005, 1:09:29 PM4/22/05
to
You are assuming that CGP's web interface is a Full blown webserver which is is NOT. Last I checked it will not support integration of PHP.

I'm sure support will chime in saying something similar.

Nicolas Hatier

unread,
Apr 22, 2005, 2:14:40 PM4/22/05
to
CGP supports the integration of perl scripts as CGIs, so it should support PHP files as CGIs too. Of course it won't support it as Apache does, but you should still be able to serve them.
 
However, CGPro support CGI scripts only when they are located in the cgi-bin directory, for instance
 
 
will NOT be served by PHP.
 
 
The "CGI Directory" parameter is the hard path where CGI scripts are located, This path is relative to the CGPro base directory.
 
The URL to access the CGI scripts is always /cgi-bin/yourscript
 
Nicolas Hatier


Niversoft idées logicielles 
http://www.niversoft.com

Technical Support

unread,
Apr 23, 2005, 8:38:51 AM4/23/05
to
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.

0 new messages