Socorro/SocorroUI/Installation: Difference between revisions

no edit summary
No edit summary
Line 100: Line 100:
<code>
<code>
  a+rw application/logs application/cache
  a+rw application/logs application/cache
</code>
= Dump Files =
Socorro UI needs to access the processed dump files via HTTP. You will need to setup Apache or some other system to ensure that dump files may be accessed at http://example.com/dumps/<UUID>.jsonz . This can be accomplished via mod_rewrite rules, just like in the next section "Serving Raw dump files".
Example config:
[http://code.google.com/p/socorro/source/browse/trunk/webapp-php/docs/processeddumps.mod_rewrite.txt processeddumps.mod_rewrite.txt]
= Raw Dump Files =
When a user is logged in to Socorro UI as an admin, they may view raw crash dump files. These raw crashes can be served up by Apache by adding the following rewrite rules. The values should match the values in the middleware code at scripts/config/commonconfig.py settings. Links to raw dumps are available in the http://example.com/report/index/{uuid} crash report pages.
Example config:
[http://code.google.com/p/socorro/source/browse/trunk/webapp-php/docs/rawdumps.mod_rewrite.txt webapp-php/docs/rawdumps.mod_rewrite.txt]
= Web Services =
Many parts of Socorro UI rely on web services provided by the Python-based middleware layer.
== Middleware ==
Copy the scripts/config/webservices.py file, edit it accordingly and execute the script to listen on the indicated port.
<code>
cp scripts/config/webservices.py-dist scripts/config/webservices.py
vim scripts/config/webservices.py
python scripts/webservices.py 8083
</code>
== Socorro UI ==
Copy application/config/webserviceclient.php, edit the file and change $config['socorro_hostname'] to contain the proper hostname and port number.  If necessary, update $config['basic_auth']
<code>
cp application/config/webserviceclient.php-dist application/config/webserviceclient.php
vim application/config/webserviceclient.php
</code>
</code>
1,241

edits