Update:Archive/2.0/Installation: Difference between revisions

no edit summary
No edit summary
 
(17 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Update:Home_Page|Update: Home Page]] » Installation Guide
{{AmoArchive}}


= Check out code from CVS =
= Check out code from CVS =
* v1: /mozilla/webtools/update -rMOZILLA_UPDATE_1_0_BRANCH
 
* v2: /mozilla/webtools/addons
== v1 ==
<pre>
cvs co -P -d v1 -rMOZILLA_UPDATE_1_0_BRANCH mozilla/webtools/update  
</pre>
 
== v2 ==
<pre>
cvs co -P -d v2 mozilla/webtools/addons
</pre>


For CVS instructions, see the [http://developer.mozilla.org/en/docs/Mozilla_Source_Code_Via_CVS devmo page on CVS].
For CVS instructions, see the [http://developer.mozilla.org/en/docs/Mozilla_Source_Code_Via_CVS devmo page on CVS].


= v2 Installation =
= Server Requirements =
== Core ==
== v1 and v2 ==
Without these, the application will not run.
* A server
* A server
* mysqld
* mysqld
Line 15: Line 22:
* php4.x
* php4.x
* php-mysql
* php-mysql
== v1 ==
* zzlib PHP extension (for inflating xpi's in additem.php)
== v2 ==
* Smarty
* PEAR::DB
* PEAR::DB
* Smarty


== Enhancements ==
== v2 Enhancements ==
Without these, the app will still run, but it will be slower than optimal.  We should plan on managing these, even if it is a PITA.
Without these, the app will still run, but it will be slower than optimal.  We should plan on managing these, even if it is a PITA.
* phpa
* APC 3.x.x
* memcached
* memcached
* PECL PHP memcache extension (--enable-memcache[=DIR])
* PECL PHP memcache extension (--enable-memcache[=DIR])


== Server Config ==
== v2 Server Notes ==
* Apache
* Apache
** Prod
** Prod
Line 34: Line 46:
** 4.1.x+
** 4.1.x+
** When we move things forward we will need to import a mysqldump from production
** When we move things forward we will need to import a mysqldump from production
** We then will need to run ./shared/sql/v2.sql
** <strike>We then will need to run ./shared/sql/v2.sql</strike> -- This was already completed in the v2 release, so if you have an access to the chameleon dump, using that should be adequate.
* PHP
* PHP
** php-mysql - PHP packages for mysql support, this is a basic package
** php-mysql - PHP packages for mysql support, this is a basic package
Line 45: Line 57:
*** In the past, it was helpful to just make symlink that was /usr/local/share/php/Smarty --> /usr/local/share/php/Smarty-2.x.x
*** In the past, it was helpful to just make symlink that was /usr/local/share/php/Smarty --> /usr/local/share/php/Smarty-2.x.x
*** When you configure the application, you will point at the '''lib directory''' not the base directory for Smarty -- so be aware of the distinction.
*** When you configure the application, you will point at the '''lib directory''' not the base directory for Smarty -- so be aware of the distinction.
** zzlib (optional, for v1 only -- iguana)
 
*** zzlib is required for extraction of XPIs for the v1 developers tools, and probably only needs to be installed on Iguana for use with these tools.
= v1 Installation =
*** As we plan out the rewrite for the developer tools, removing this dependency is a primary goal... :)
* copy core/config-dist.php -> core/config.php
* Fill in the proper variables, see the comments in config.php for help
* Your server needs to have a previews directory containing add-on previews
* Find this directory (or contact morgamic if you don't have it)
* Symlink the previews directory from ./images:
<pre>
$ ln -s /data/previews/ previews
</pre>
* Your server needs to have a files directory containing the right .xpi's
* You'll want to do something similar to set up the xpi directory:
<pre>
$ ln -s /data/amo/files/ files
</pre>
 
= v2 Installation =


== Application Config ==
== Application Config ==
Line 73: Line 99:
* ./public/htdocs/htaccess.dist
* ./public/htdocs/htaccess.dist
** Copy to .htaccess then set the rewrite base to the proper value.
** Copy to .htaccess then set the rewrite base to the proper value.
* ./shared/bin/config.php
 
** Copy config-dist.php to config.php and provide writeable DB information (don't use the SLAVE!).
== Previews ==
* As with v1 you will have to create a symlink to the previews directory from images/:
<pre>
$ cd public/htdocs/images
$ ln -s /data/previews/ previews
</pre>
canmove, Confirmed users, Bureaucrats and Sysops emeriti
1,043

edits