Changeset 2019

Show
Ignore:
Timestamp:
01/08/05 20:13:11 (20 years ago)
Author:
jalet
Message:

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 !

Location:
pykota/trunk
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/cgi-bin/README

    r1266 r2019  
    2424 
    2525Be sure to restrict access to these CGI scripts as necessary. 
     26 
    2627If you protect access to printquota.cgi with user+password 
    2728authentication, the REMOTE_USER CGI environment variable 
     
    2930not other users' quota. 
    3031 
     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         
    3148The web server doesn't need to be a print server nor a PyKota  
    3249Storage Backend server, but it must contain a correctly configured  
  • pykota/trunk/setup.py

    r1952 r2019  
    2424# 
    2525# $Log$ 
     26# Revision 1.61  2005/01/08 19:13:11  jalet 
     27# dumpykota.cgi was added to allow the use of dumpykota through the web. 
     28# This makes real time interfacing with the third party software phpPrintAnalyzer 
     29# a breeze ! 
     30# 
    2631# Revision 1.60  2004/11/21 21:50:02  jalet 
    2732# Introduced the new pkmail command as a simple email gateway 
     
    290295data_files.append((os.sep.join([directory, "conf"]), ["conf/README", "conf/pykota.conf.sample", "conf/pykotadmin.conf.sample"])) 
    291296 
    292 data_files.append((os.sep.join([directory, "cgi-bin"]), ["cgi-bin/README", "cgi-bin/printquota.cgi"])) 
     297data_files.append((os.sep.join([directory, "cgi-bin"]), ["cgi-bin/README", "cgi-bin/printquota.cgi", "cgi-bin/dumpykota.cgi"])) 
    293298 
    294299data_files.append((os.sep.join([directory, "logos"]), glob.glob(os.sep.join(["logos", "*.jpeg"])) + glob.glob(os.sep.join(["logos", "*.png"])) + glob.glob(os.sep.join(["logos", "*.xcf"]))))