Skip to content

Commit 193b458

Browse files
committed
Add instructions on enabling the necessary apache2 modules.
1 parent 4ade83f commit 193b458

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,13 @@ sudo apt install nodejs
126126

127127
4. Copy `webwork3/dist/spa` to `/var/www/html/webwork3` (or create a link).
128128

129-
5. Copy `conf/apache2/webwork3-apache2.dist.conf` to `conf/apache2/webwork3-apache2.conf`, and create a link to that
129+
5. Enable the necessary apache2 modules.
130+
131+
```sh
132+
sudo a2enmod headers proxy proxy_http rewrite
133+
```
134+
135+
6. Copy `conf/apache2/webwork3-apache2.dist.conf` to `conf/apache2/webwork3-apache2.conf`, and create a link to that
130136
file in `/etc/apache2/conf-enabled`. This can be accomplished by executing the following commands from the webwork3
131137
directory.
132138

@@ -135,16 +141,16 @@ cp conf/apache2/webwork3-apache2.dist.conf conf/apache2/webwork3-apache2.conf
135141
sudo ln -s $(pwd)/conf/apache2/webwork3-apache2.conf /etc/apache2/conf-enabled
136142
```
137143

138-
6. Restart apache2 with `sudo systemctl restart apache2`.
144+
7. Restart apache2 with `sudo systemctl restart apache2`.
139145

140-
7. Set up permissions for the api with the following commands executed from the webwork3 directory.
146+
8. Set up permissions for the api with the following commands executed from the webwork3 directory.
141147

142148
```sh
143149
sudo chown -R youruser:www-data logs
144150
sudo chmod g+rw logs/*
145151
```
146152

147-
8. Copy `conf/apache2/webwork3.dist.service` to `conf/apache2/webwork3.service` and modify `WorkingDirectory` with the
153+
9. Copy `conf/apache2/webwork3.dist.service` to `conf/apache2/webwork3.service` and modify `WorkingDirectory` with the
148154
correct path to the webwork3 location. Make sure to uncomment the hypnotoad `pid_file` setting in the `webwork3.yml`
149155
file. Then enable and start the webwork3 api service by executing the following from within the `webwork3`
150156
directory.
@@ -154,15 +160,15 @@ sudo systemctl enable $(pwd)/conf/apache2/webwork3.service
154160
sudo systemctl start webwork3
155161
```
156162

157-
9. Set up permissions for the renderer with the following commands executed from the renderer directory.
163+
10. Set up permissions for the renderer with the following commands executed from the renderer directory.
158164

159165
```sh
160166
sudo chown -R youruser:www-data logs
161167
sudo chmod g+rw logs/standalone_results.log
162168
sudo chmod -R g+rw lib/WeBWorK/tmp/* lib/WeBWorK/htdocs/tmp/*
163169
```
164170

165-
10. Copy `conf/apache2/renderer.dist.service` to `conf/apache2/renderer.service` and modify `WorkingDirectory` in the
171+
11. Copy `conf/apache2/renderer.dist.service` to `conf/apache2/renderer.service` and modify `WorkingDirectory` in the
166172
copied file with the correct path to the webwork3 location. Add `pid_file => '/var/run/webwork3/renderer.pid'` and
167173
`proxy => 1` to the hypnotoad configuration in the `render_app.conf` file. Then enable and start the renderer
168174
service by executing the following from within the `webwork3` directory.
@@ -174,4 +180,4 @@ sudo systemctl start renderer
174180

175181
Note that anytime the server is rebooted the webwork3 api and renderer services will be automatically started.
176182

177-
11. Visit `localhost/webwork3`.
183+
12. Visit `localhost/webwork3`.

0 commit comments

Comments
 (0)