How to setup PHP in the WWW Proxy Server?

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

How to setup PHP in the WWW Proxy Server?

Postby ImmediateAction » Jun 15 07 9:59 pm

I am having problems trying to setup PHP with WinGate, so if anyone knows how to actually do it then any comments would be appreciated.

I download the latest verison of PHP and install it with the webserver option "Other CGI"
http://www.php.net/get/php-5.2.3-win32- ... m/a/mirror

I open the PHP.ini and uncomment then set
cgi.force_redirect = 0

Then to WinGates WWW Proxy Server - Web Server I :
Add a second one (Default is Reject)

General Tab:
Server Root = C:\Web
Default Filename = index.php
Permint Dir Browsing = unchecked.
Enable CGI= checked.
CGI Directory = C:\PHP

Hosts tab:
www.immediateaction.com
Then I enter it into my hosts file and associate to my ip address that the proxy is listening on. (this is all being tested on one comptuer with no proxy server specified in IE).

Then I click on the Settings button and enter the extension as php and then browse to the php-cgi.exe path.


When I open Internet Explorer and naviagate to www.immediateaction.com I get a blank page returned; it should return the output of a phpinfo(). With the Task Manager open I can see the php-cgi.exe get started. I can still call HTML (with no php code in it) fine.



Anyone know what I am doing wrong?
Every ordinary person is responsible for the rise and fall of his country. - Chinese proverb
ImmediateAction
 
Posts: 58
Joined: Apr 23 05 11:42 am

Postby ImmediateAction » Jun 15 07 10:31 pm

Solved by installing PHP Version 5.1.2 over top of PHP Version 5.2.3
Every ordinary person is responsible for the rise and fall of his country. - Chinese proverb
ImmediateAction
 
Posts: 58
Joined: Apr 23 05 11:42 am

Postby adrien » Jun 22 07 10:49 pm

also, normally it is required to set an association between .php and php.exe, so that WinGate will launch PHP.exe for .php URLs.

the CGI path information in the settings was really for old-style .EXE CGI programs where the URL you entered would contain the name of the EXE that would be loaded. This isn't really required for PHP.

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland


Return to WinGate

Who is online

Users browsing this forum: Google [Bot] and 7 guests

cron