CGI and PHP programs are programs that are run by a web server. The following rules apply when such programs are published on the DSV people.dsv.su.se web server:

  • CGI/PHP programs are allowed for all users on the people.dsv.su.se web server
  • CGI program files must have the extension "cgi" and PHP programs the extension "php".
  • CGI/PHP programs must be run on DSV's special application server "http://people.dsv.su.se/". For example, to run a CGI program in the file ~abcd1234/public_html/cgi-bin/count.cgi the following URL must be called: http://people.dsv.su.se/~abcd1234/cgi-bin/count.cgi.
  • CGI programs can be written in Perl, Java, Python, C, C++, etc.
  • Directories containing CGI/PHP programs must be executable by the owner (have the x-bit for the  owner set)
  • CGI/PHP programs must not use the setuid and the setgid.
  • The files must not be writeable by the group or by others.