This is an old revision of the document!
Directory structure with permissions
The file permissions are the same as were there on lthcwww.
The directory "/var/www/demos/encoding" has permission
drwxr-sr-x 4 rathi ipgdemos 4096 2008-08-22 12:15 maxwell
This is the directory structure of "/var/www/demos/maxwell"
with permissions.
drwxr-sr-x 2 rathi ipgdemos 4096 2008-07-24 15:28 images -rw-r--r-- 1 rathi ipgdemos 37775 2008-08-15 20:24 index.php -rw-r--r-- 1 rathi ipgdemos 4650 2008-07-24 15:28 js_top.js -rw-r--r-- 1 rathi ipgdemos 32043 2008-08-14 16:51 lthc_index.php -rwxrwxrwx 1 rathi ipgdemos 15 2008-07-24 15:28 maxwell_link_cmd drwxr-sr-x 2 rathi ipgdemos 4096 2008-07-24 15:49 sim
The file "lthc_index.php" has the old lthc way of giving inputs.
Important lines in index.php
Line 46 to 396: The code is about checking the validity of the polynomials.
Line 554 to 573: parameters are written if there is an input from the user.
Line 574: Execution of the command to generate the image.
Line 580: pbm to gif generated.
Line 594: gif is displayed.
Location of files related to execution and writing
The directory "/var/www/demos/files/encoding" has permission
drwxrwsrwx 2 apache ipgdemos 20480 2008-08-17 18:06 encoding
Inside the directory "/var/www/demos/files/encoding" there are
two files for a seesion.
- param contains the parameter of the ensembles and suffixed by session id.
- gif file It is the gif image of the triangulated matrix and its name is
based on the session id. All these files have permissions: "-rw-r--r--".
Important Remark
There should be a "crone" job deleting the files in "/var/www/demos/files/encoding".
Right now the ".pbm" file, which is the output for the triangulated matrix, is generated
in the directory "/var/www/demos/encoding". Its naming is not based on session id. I do not
'know if it is very crucial, but will be better to name it also according to the session id.
Then we give give both the matrix and triangulated matrix to the user as a text file.
There are some 777 permissions which should be taken care of. These are there on lthcwww as well,
so I did not try to change them.