| 57 | # Reduce MacClients |
| 58 | sed -i 's|150|20|' /etc/apache2/apache2.conf |
| 59 | |
| 60 | adduser --system --disabled-password pootle |
| 61 | addgroup pootle |
| 62 | |
| 63 | cd /var/www |
| 64 | ln -s /usr/local/lib/python2.6/dist-packages/pootle |
| 65 | chgrp pootle /var/www/pootle/po |
| 66 | |
| 67 | cat << EOF > "/etc/apache2/sites-available/pootle" |
| 68 | WSGIScriptAlias /pootle /var/www/pootle/wsgi.py |
| 69 | |
| 70 | WSGIDaemonProcess pootle processes=2 threads=3 stack-size=1048576 maximum-requests=5000 inactivity-timeout=900 display-name=%{GROUP} |
| 71 | WSGIProcessGroup pootle |
| 72 | |
| 73 | Alias /pootle/assets /var/www/pootle/assets |
| 74 | <Directory /var/www/Pootle/assets> |
| 75 | Order deny,allow |
| 76 | Allow from all |
| 77 | </Directory> |
| 78 | |
| 79 | Alias /pootle/export /var/www/pootle/po |
| 80 | <Directory /var/www/pootle/po> |
| 81 | Order deny,allow |
| 82 | Allow from all |
| 83 | </Directory> |
| 84 | EOF |
| 85 | |
| 86 | a2ensite pootle |
| 87 | /etc/init.d/apache2 restart |
| 88 | |