aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgi/README
blob: 734e4f0542687e4a99387caaf8f161196554038b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
These are for the case of running under a web server that doesn't support
PHP directly.  In the case that prompted this, thttpd is the server
software.  It'll likely work for others as well, none have been tested.

To install this -

* Copy both files to your web servers document root.
* php.cgi should be executable.
* add php.cgi to the base of your urls for PHP pages, so -
    http://example.com/my/php/project/index.php
  becomes -
    http://example.com/php.cgi/my/php/project/index.php
  Or for a typical apt-panopticon install -
    http//:example.com/php.cgi/apt-panopticon/apt-panopticon_cgp/index.php
* For apt-panopticon, pass --cgi to it, so it'll construct URLs properly.
* Your PHP code may need to be adjusted, cgp has already been adjusted.