- System Concepts
- Managing Programming Contests
- Mooshak interfaces
- Frequently asked questions
|
Setup and initial testes FAQ
- I get a server error after accessing Mooshak's initial page
This probably means that your Apache configuration does not support a
/cgi-bin/ directory for users. To allow programs to be executed in
this directory you should include these lines in the Apache
configuration file e restart the server.
<Directory /home/*/public_html/cgi-bin>
Options +ExecCGI -Includes -Indexes
SetHandler cgi-script
</Directory>
When I use the save command in the admin's screen I get an error message
Mooshak's scripts and data files are installed in a certain OS
user's home - by default mooshak - and the CGI scripts should run
with the same user. The suexec module of Apache runs
CGI scripts in users directories as the corresponding and ensures that
scripts cannot be invoked by other users. Mooshak expects
suexec in order to run properly.
If you have this kind of error then you probably don't have
suexec installed. Some distributions install
suexec by default when you install Apache. Sometimes you
may need to recompile Apache with a certain configuration
Of course that you can just give all permissions to all data files by
executing chmod -R 777 data command in Mooshak's home
directory but I advise you against it. You will be compromising your
contest security.
I am using Fedora Core 3 and when Mooshak calls gcc to compile C/C++
programs it produces either Internal Error or SegFault, but the
programs compile on the shell
People using Mooshak reported that starting Apache in init.d, i.e.,
httpd start , intead of startssl solved this
problem. Apparently this script sets important environment variables
|