root / pykota / trunk / cgi-bin / README @ 2019

Revision 2019, 2.2 kB (checked in by jalet, 20 years ago)

dumpykota.cgi was added to allow the use of dumpykota through the web.
This makes real time interfacing with the third party software phpPrintAnalyzer
a breeze !

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1# $Id$
2
3PyKota - Print Quota for CUPS and LPRng
4
5(c) 2003-2004 Jerome Alet <alet@librelogiciel.com>
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
19
20====================================================================
21
22This directory contains CGI scripts which you may find useful to
23put on a web server along with PyKota command line tools.
24
25Be sure to restrict access to these CGI scripts as necessary.
26
27If you protect access to printquota.cgi with user+password
28authentication, the REMOTE_USER CGI environment variable
29is honored, so an user can only see his own quota report, but
30not other users' quota.
31
32To make dumpykota.cgi work, you have to ensure that your web server
33runs it as a PyKota administrator. This means that dumpykota.cgi
34when run must be able to read the pykotadmin.conf file. There are
35several ways to do so, one of them is to put the user your web
36server normally runs as into the pykota group (which must be allowed
37to read pykotadmin.conf), then restart your web server :
38           
39            $ adduser www-data pykota
40            $ /etc/init.d/apache restart
41           
42This is probably not the safest way though, so you may want to           
43restrict access further with an username and password, or use
44Apache's suExec mechanism to directly run this particular
45script as the pykota system user. Please refer to your web
46server's documentation for details.
47       
48The web server doesn't need to be a print server nor a PyKota
49Storage Backend server, but it must contain a correctly configured
50PyKota installation.
51
52====================================================================
Note: See TracBrowser for help on using the browser.