phpMyAdmin - administration of MySQL over the Web

Georgian Version

Rules of creation and manipulation of CGI programs on SaNet's webserver.

1. CGI programs can be written on Perl, PHP or Unix shell script languages and also may be any executable compiled/linked for FreeBSD v5.0.

*Our server are running PHP 4.4.0

*For security reasons, our server have PHP configured with register_globals set to "Off" (this is PHP's default setting). If you have PHP scripts that use this function, please reconfigure those scripts so that they do not require register_globals http://www.php.net/manual/ru/security.globals.php

*For security purposes, we are running PHP in Safe Mode. Safe Mode is an essential security feature for a shared server environment. It prevents unauthorized users from employing PHP scripts to access other users' data and possibly gain access to their files.
Here's The PHP Group's documentation on Safe Mode. http://www.php.net/manual/ru/features.safe-mode.php http://www.php.net/manual/ru/features.safe-mode.functions.php

*PHP is installed as CGI module
Any php scripts shoud have (#!/usr/local/bin/php) as the first line (similiar to CGI scripts...)

EXAMPLE:
The contents of this file are:

#!/usr/local/bin/php
<?php
  print ("Hello World ");
?>

2. CGI programs must fall into following naming convention:
a) Perl script files must have extention *.pl
b) PHP script files must have extention *.php
c) Any other executable files must have extention *.cgi

Example: myguestbook.pl, mypoll.cgi, sample.php

3. CGI programs must reside under "cgi-bin" directory located under your home directory automatically created when your site has been registered.

4. Any attempt of CGI programs to access files located other than under home directory will be automatically blocked.

5. Any attempt of CGI programs to create/access sockets will be automatically blocked.

6. Root directory for any CGI programs will be automatically shifted one level upper the home directory. (Example: if your home directory is "/myhome" then root directory will be "/").

7. CGI programs may use following utilities, libraries and subprograms.

8. There is no way to see webserver access and error log files. Any massages of CGI program directed to standard error stream will be automatically saved into "error_log" file in working directory.

9. Any CGI program running more than 30 seconds will be automatically stopped.

10. Total amount of memory that occupied by CGI program is limited to 8Mb.

11. Total amount of files simultanously opened by CGI program limited to 16.

12. Total amount of processes simultanously forked by CGI program limited to 32.

13. Total amount of stack memory occupied by CGI program is limited to 2Mb.