forked from blackav/ejudge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.RUS
83 lines (75 loc) · 5.28 KB
/
INSTALL.RUS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
-*- mode: text; mode: auto-fill; coding: utf-8 -*-
$Id$
Очень краткое руководство по установке ejudge
=============================================
В данном разделе описывается установка ejudge с минимальным
ручным конфигурированием. Если данный вариант установки не
сработал на Вашей системе или Вас не устраивают настройки по
умолчанию, читайте далее более полное руководство по
инсталляции.
Итак, по шагам:
1. Создайте пользователя ejudge с домашним каталогом
/home/ejudge. Желательно, чтобы для пользователя ejudge была
создана группа ejudge. Если Вы не знаете, как создавать новых
пользователей, обратитесь, пожалуйста, к документации по Вашей
системе.
2. Создайте каталог /home/judges, владельцем которого является
пользователь ejudge. Для создания каталога Вам могут
потребоваться привилегии пользователя root. Для создания
каталогов достаточно выполнить следующие команды из-под root:
mkdir /home/judges
chown ejudge:ejudge /home/judges
3. Перейдите снова в домашний каталог и разархивируйте ejudge
cd ~
tar xvfz EJUDGE-ARCH-DIR/ejudge-VERSION.tgz
cd ejudge
4. Сконфигурируйте ejudge
./configure --prefix=/home/ejudge/inst-ejudge --enable-contests-home-dir=/home/judges --with-httpd-cgi-bin-dir=CGI-BIN-DIR --with-httpd-htdocs-dir=HTDOCS-DIR --enable-ajax --enable-hidden-server-bins --enable-local-dir=/var/lib/ejudge
Здесь CGI-BIN-DIR - это каталог CGI скриптов веб сервера
(например, это может быть /home/httpd/cgi-bin), HTDOCS-DIR -
корень документов веб сервера (например, /home/httpd/html).
Чтобы уточнить эти пути обратитесь к документации по Вашей
версии Linux.
5. Скомпилируйте и проинсталлируйте систему:
make
make install
6. Запустите программу ejudge-setup, перейдите в раздел
"Administrator identity", заполните требуемые поля:
./ejudge-setup
Admin ID: 1
Admin Login: ejudge
Admin e-mail: YOUR-E-MAIL
Admin name: Ejudge administrator
Admin password: PASSWORD
Затем сгенерируйте настроечный скрипт с помощью "Save setup
script". При выборе этого пункта меню будет запрошено имя
скрипта, назовите его ejudge-install.sh.
7. Зайдите в меню "Setup compilers" и проверьте, что пути к
компиляторам и интерпретаторам языков программирования были
определены правильно. При необходимости внесите исправления.
8. Из-под пользователя root выполните настроечный скрипт.
su -
cd ~ejudge/ejudge
./ejudge-install.sh
9. Скопируйте необходимые файлы в дерево веб-сервера. Для этого
с правами пользователя root выполните команду
ejudge-upgrade-web
10. Запустите систему. Запуск программ должен выполняться из-под
пользователя ejudge:
ejudge-control start
Убедитесь, что права доступа к каталогу /home/ejudge позволяют
читать файлы в нём всем пользователям. Некоторые дистрибутивы
Linux создают домашний каталог пользователей с правами 0700.
В этом случае CGI-программы и необходимые библиотеки просто
окажутся недоступными для web-сервера. Права на домашний каталог
пользователя ejudge необходимо установить в 0755 или 0775.
Для дистрибутивов Fedora Core убедитесь, что подсистема SELinux
отключена. Для этого проверьте содержимое файла
/etc/selinux/config. Для подробной информации, или если Вы
хотите настроить SELinux для работы ejudge, обратитесь к
документации на SELinux (man selinux).
Установка системы ejudge завершена. Теперь можно в строке URL
браузера (естественно, httpd-сервер должен быть запущен) указать
http://localhost/cgi-bin/serve-control.
Для подробного описания процесса инсталляции обратитесь к
wiki-документации на сайте www.ejudge.ru.