[toc]
Mooshak is an online judge platform. It is used to manage and create programming contests. We can extend it for new types of contests. You can also customize mooshak for new programming languages. You can face many problems with the installation of mooshak. So, in this post I will go Step-by-Step on how to install mooshak on your system .
Note : This installation guide is for Ubuntu / linux platform.
Step 1: Install Apache & TCL ( Requirements of Mooshak )
sudo su
sudo apt-get install apache2 apache2-suexec sudo apt-get install tcl xsltproc lpr rsync gcc libxml2-utils
a2enmod userdir a2enmod suexec
If you don’t see any error after this step then Go to STEP 3 below.
If after executing ( a2enmod suexec ), you might get the following error:
ERROR: Config file suexec.conf is not enabled. /etc/apache2/mods-enabled/suexec.conf is a real file, not touching it
Then follow these steps :
We will store them in mods-available instead of mods-enabled. Then, create a symlink in mods-enabled that will point to the file stored in mods-available.
1. First of all remove the original:
mv /etc/apache2/mods-enabled/suexec.conf /etc/apache2/mods-available/
2. After that create the symbolic link:
ln -s /etc/apache2/mods-available/suexec.conf /etc/apache2/mods-enabled/suexec.conf
http://mooshak.dcc.fc.up.pt/download/mooshak-1.5.2.tgz
Now, go to Directory where we have downloaded Mooshak and extract it.
tar -xzvf mooshak-1.5.2.tgz cd mooshak-1.5.2
tar xvf source.tgz cd lib/apache/ sudo cp 67* /etc/apache2/mods-enabled/userdir.conf sudo cp 69* /etc/apache2/mods-enabled/suexec.conf sudo cp /etc/apache2/mods-enabled/userdir.conf /etc/apache2/mods-available/userdir.conf sudo cp /etc/apache2/mods-enabled/suexec.conf /etc/apache2/mods-available/suexec.conf
Your apache file will be in /etc/apache2 directory with name httpd.conf or apache2.conf. Open your apache config file and add the following lines.
<directory /home/*/cgi-bin> Options +ExecCGI </directory>
Change the following line (line 151 or line 153)
set fd [ open “| lsof” ]
to
set fd [ open “| /usr/bin/lsof” ]
cd mooshak-1.5.2 sudo su ./install --config-suexec ./install
service apache2 restart
voila this is it.
Either use http://127.0.0.1/~mooshak or localhost/~mooshak to run Mooshak
Choose any contest
Default Username of Mooshak : admin
Default Password of Mooshak : admin
This is how we can install mooshak on Linux or Ubuntu platform.
Yes Bank, located in Mumbai, India, was formed in 2004 by Rana Kapoor and Ashok…
While we are moving toward a cashless economy, we cannot entirely remove cash deposits. After…
IDBI bank customers have access to Internet Banking. It allows them to access and manage…
The State Bank of India is one of the major public sector banks in India.…
IndusInd Bank Limited is a Mumbai-based Indian financial services company. Commercial, transactional, and electronic banking…
Indian Bank is a prominent nationalized bank. It is owned by the Government of India's…