| 11 | | WIP!! <!-- Ask Ramiro about his old instructions /> |
| | 11 | 1. Get Apache httpd. On Debian derivatives do |
| | 12 | {{{#!sh |
| | 13 | sudo apt-get install apache2 |
| | 14 | }}} |
| | 15 | 2. Get fateserver (from now on I'll assume fateserver is located under |
| | 16 | `/var/www/fateserver`). |
| | 17 | {{{#!sh |
| | 18 | cd /var/www |
| | 19 | git clone git://git.ffmpeg.org/fateserver |
| | 20 | }}} |
| | 21 | |
| | 22 | 3. Make /var/www/fateserver the root of the server. This is OS-dependant, but |
| | 23 | on Ubuntu you have to modify |
| | 24 | `/etc/apache2/sites-available/000-default.conf`: From |
| | 25 | {{{ |
| | 26 | DocumentRoot /var/www |
| | 27 | }}} |
| | 28 | to |
| | 29 | {{{ |
| | 30 | DocumentRoot /var/www/fateserver |
| | 31 | }}} |
| | 32 | |
| | 33 | 4. Allow CGI to be executed in Apache, add this to `/etc/apache2/apache2.conf`: |
| | 34 | {{{ |
| | 35 | LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so |
| | 36 | <Directory /var/www/fateserver> |
| | 37 | Options +ExecCGI |
| | 38 | AddHandler cgi-script .cgi .pl |
| | 39 | </Directory> |
| | 40 | }}} |
| | 41 | |
| | 42 | 5. Create an user for people to report using ssh with. |
| | 43 | {{{ |
| | 44 | sudo adduser fate |
| | 45 | }}} |
| | 46 | |
| | 47 | 6. In that user's .ssh/authorized_keys, add one entry for each submitter with |
| | 48 | the following: |
| | 49 | {{{ |
| | 50 | command="FATEDIR=/var/www/fateweb FATE_USER=<some identifier of your choice for that submitter> /var/www/fateweb/fate-recv.sh" <submitter's public key> |
| | 51 | }}} |
| | 52 | |
| | 53 | This makes sure they get identified for fateweb and they can only run that |
| | 54 | one command, so they don't get a shell. |
| | 55 | |
| | 56 | 7. Edit FATE.pm, set the $fatedir variable to the fateweb path |
| | 57 | {{{#!perl |
| | 58 | our $fatedir = "/var/www/fateweb"; |
| | 59 | }}} |
| | 60 | |
| | 61 | Note: |
| | 62 | fateserver can't be on a sub-dir. |
| | 63 | So it must be something like fate.ffmpeg.org, but can't be ffmpeg.org/fate. |
| | 64 | Otherwise the links are wrong and it won't load the CSS. |
| | 65 | Some tools are also needed on the server, like xz. |
| | 66 | |
| | 67 | Thanks to Ramiro Polla for writing this guide. Major update by Timothy Gu. |