@@ -35,7 +35,7 @@ For your convenience, the following command will install the necessary
35
35
software on the DOMjudge server as mentioned above when using Debian
36
36
GNU/Linux, or one of its derivative distributions like Ubuntu::
37
37
38
- sudo apt install libcgroup-dev make acl zip unzip pv mariadb-server apache2 \
38
+ sudo apt install libcgroup-dev make acl zip unzip pv mariadb-server nginx \
39
39
php php-fpm php-gd php-cli php-intl php-mbstring php-mysql \
40
40
php-curl php-json php-xml php-zip composer ntp python3-yaml php-bcmath
41
41
@@ -46,7 +46,7 @@ Red Hat Enterprise Linux and Rocky Linux (before V9)::
46
46
php-gd php-cli php-intl php-mbstring php-mysqlnd php-fpm \
47
47
php-xml php-zip composer chronyd python3-pyyaml php-bcmath
48
48
49
- `nginx ` can be used as an alternate web server.
49
+ `apache2 ` can be used as an alternate web server.
50
50
51
51
The packages `libcgroup-dev ` (`libcgroup-devel ` on Fedora) and `make ` are
52
52
:ref: `judgehost software requirements <judgehost_software >`, but also
@@ -109,24 +109,7 @@ with it. Refer to the documentation of your web server and PHP for
109
109
details. In the examples below, replace |phpversion | with the PHP version
110
110
you're installing.
111
111
112
- To configure the Apache web server for DOMjudge, use the Apache
113
- configuration snippet from ``etc/apache.conf ``. It contains
114
- examples for configuring the DOMjudge pages with an alias directive,
115
- or as a virtualhost, optionally with TLS; it also contains PHP and security
116
- settings. Reload the web server for changes to take effect.
117
-
118
- .. parsed-literal ::
119
-
120
- ln -s <DOMSERVER_INSTALL_PATH>/etc/apache.conf /etc/apache2/conf-available/domjudge.conf
121
- ln -s <DOMSERVER_INSTALL_PATH>/etc/domjudge-fpm.conf /etc/php/|phpversion |/fpm/pool.d/domjudge.conf
122
- a2enmod proxy_fcgi setenvif rewrite
123
- a2enconf php\ |phpversion |-fpm domjudge
124
- # Edit the file /etc/apache2/conf-available/domjudge.conf and
125
- # /etc/php/\ |phpversion |/fpm/pool.d/domjudge.conf to your needs
126
- service php\ |phpversion |-fpm reload
127
- service apache2 reload
128
-
129
- An nginx webserver configuration snippet is also provided in
112
+ To configure the nginx web server for DOMjudge, use the nginx configuration snippet in
130
113
``etc/nginx-conf ``. You still need ``htpasswd `` from ``apache2-utils ``
131
114
though. To use this configuration, perform the following steps:
132
115
@@ -150,6 +133,23 @@ On Fedora, use the following nginx configuration steps:
150
133
systemctl restart php-fpm.service
151
134
systemctl restart nginx.service
152
135
136
+ To configure the Apache web server for DOMjudge, use the Apache
137
+ configuration snippet from ``etc/apache.conf ``. It contains
138
+ examples for configuring the DOMjudge pages with an alias directive,
139
+ or as a virtualhost, optionally with TLS; it also contains PHP and security
140
+ settings. Reload the web server for changes to take effect.
141
+
142
+ .. parsed-literal ::
143
+
144
+ ln -s <DOMSERVER_INSTALL_PATH>/etc/apache.conf /etc/apache2/conf-available/domjudge.conf
145
+ ln -s <DOMSERVER_INSTALL_PATH>/etc/domjudge-fpm.conf /etc/php/|phpversion |/fpm/pool.d/domjudge.conf
146
+ a2enmod proxy_fcgi setenvif rewrite
147
+ a2enconf php\ |phpversion |-fpm domjudge
148
+ # Edit the file /etc/apache2/conf-available/domjudge.conf and
149
+ # /etc/php/\ |phpversion |/fpm/pool.d/domjudge.conf to your needs
150
+ service php\ |phpversion |-fpm reload
151
+ service apache2 reload
152
+
153
153
The judgehosts connect to DOMjudge via the DOMjudge API so need
154
154
to be able to access at least this part of the web interface.
155
155
0 commit comments