An online programming assignment grading system.
For running CRJudge, a Linux server with following requirements is needed:
php
shell command)
You should be able to run php
from command line. In Ubuntu you need to install php5-cli
package.mysqli
extension for PHP) or PostgreSql databaseecho shell_exec("php -v");
gcc
, g++
, javac
, java
, python2
, python3
commands)perl
installed for more precise time and memory limit and imposing size limit on output of submitted code.system
and application
somewhere outside your public directory, and enter their full path in index.php
file.
$system_path = '/home/mohammad/secret/system';
$application_folder = '/home/mohammad/secret/application';
application/config/database.php
. You can use a prefix for your table names.
/* Enter database connection settings here: */
'dbdriver' => 'postgre', // database driver (mysqli, postgre)
'hostname' => 'localhost', // database host
'username' => `, // database username
'password' => `, // database password
'database' => `, // database name
'dbprefix' => 'crj_', // table prefix
/**********************************************/
application/cache/Twig
writable by php.tester
and assignments
somewhere outside your public directory. Then save their full path in Settings
page. These two folders must be writable by PHP. Submitted files will be stored in assignments
folder. So it should be somewhere not publicly accessible.Important: Secure CRJudge
Now that you have installed CRJudge, you may want to: