Update:Remora Server Requirements: Difference between revisions

no edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= NOTE!!!!! =
This page is out of date and points to software that is no longer in use. For up-to-date information see
[http://zamboni.readthedocs.org/en/latest/ <b>this page</b>].
= Server Software =
= Server Software =
* [http://manual.cakephp.org/chapter/installing Cake requirements]
* [http://manual.cakephp.org/chapter/installing Cake requirements]
Line 4: Line 10:
** PHP5 >= 5.2.0
** PHP5 >= 5.2.0
** RDBMS (MySQL, PostgreSQL)
** RDBMS (MySQL, PostgreSQL)
* Remora requires few PHP modules:
* Remora requires a few PHP modules:
** [http://php.osuosl.org/manual/en/ref.gettext.php gettext]
** [http://php.osuosl.org/manual/en/ref.gettext.php gettext]
** [http://pear.php.net/package/Archive_Zip Archive_Zip-beta]
** [http://pear.php.net/package/Archive_Zip Archive_Zip-beta]
Line 22: Line 28:
* Check out the site from trunk (for now):
* Check out the site from trunk (for now):
  svn co http://svn.mozilla.org/addons/trunk/ /opt/yourpath
  svn co http://svn.mozilla.org/addons/trunk/ /opt/yourpath
* Set up the 'remora' and 'remora-test' databases and grant all privs for those DB's to a user:
* Set up the 'remora' and 'remora-test' databases and grant all privs for those databases to a user:
  mysql -p -D remora < site/app/config/sql/remora.sql
  mysql -p -D remora < site/app/config/sql/remora.sql
  mysql -p -D remora < site/app/tests/data/remora-test-data.sql
  mysql -p -D remora < site/app/tests/data/remora-test-data.sql
Line 33: Line 39:


=== CRON (staging only!) ===
=== CRON (staging only!) ===
* Repulls and reinserts 'remora' database contents every 5 hour
* Repulls and reinserts the 'remora' database contents every 5 hour
* Repulls and reinserts 'remora-test' database contents every 5 minutes
* Repulls and reinserts the 'remora-test' database contents every 5 minutes
* Auto-updates all code from / all the way down every 5 minutes
* Auto-updates all code from / all the way down every 5 minutes


Line 52: Line 58:
* app/tmp
* app/tmp


... so you`ll probably want to __chmod 777 /dir -R__ putting every listed directory instead of dir.
... so you`ll probably want to '''chmod -R 777 /dir''' putting every listed directory instead of dir.


== Configuration ==
== Configuration ==
Copy app/config/database.php.default to app/config/database.php and modify the default and test databases to be your database, but for the test database use a user with read-only privileges.
 
Copy <tt>app/config/database.php.default</tt> to <tt>app/config/database.php</tt> and modify the default and test databases to be your database, but for the test database use a user with read-only privileges.
To create a user with read-only privileges, execute this SQL command after replacing {variables}:
To create a user with read-only privileges, execute this SQL command after replacing {variables}:
:::GRANT SELECT ON {database} TO '{username}'@'localhost' IDENTIFIED BY '{password}';


First, import app/config/sql/remora.sql - this provides the schema and standard data for langs, translations, and addontypes.
  GRANT SELECT ON {database} TO '{username}'@'localhost' IDENTIFIED BY '{password}';
 
First, import <tt>app/config/sql/remora.sql</tt> - this provides the schema and standard data for langs, translations, and addontypes.


Then, import app/tests/remora-test-data.sql - this inserts more complete test data. Currently, addon id 7(MicroFarmer) is most complete.
Then, import <tt>app/tests/remora-test-data.sql</tt> - this inserts more complete test data. Currently, addon id 7(MicroFarmer) is the most complete.


= Installation Test =
= Installation Test =
If the installation is successful, all of the tests should pass in the installation test. The installation test can be found by going to ROOT/tests?case=installation.test.php where ROOT might be http://addons.mozilla.org
 
If the installation is successful, all of the tests should pass in the installation test. The installation test can be found by going to <tt>ROOT/tests?case=installation.test.php</tt> where ROOT might be <tt>http://addons.mozilla.org<tt> .


= Caveats =
= Caveats =
* All images are given 10 year expiration headers. To force an update for any images, you MUST change the filename/url. A common practice is to insert a timestamp in the filename or url. (addons.mozilla.org/img/logo_20071023.png).
* All images are given 10 year expiration headers. To force an update for any images, you MUST change the filename/url. A common practice is to insert a timestamp in the filename or url. (addons.mozilla.org/img/logo_20071023.png).
2

edits