Confirmed users
3,727
edits
(Created page with "= Notes for installing Sync Server on Red Had Enterprise Linux 6 for 64-Bit systems = REF: http://docs.services.mozilla.com/howtos/run-sync.html == General Notes == * The "Build...") |
No edit summary |
||
| Line 1: | Line 1: | ||
= Notes for installing Sync Server on Red | = Notes for installing Sync Server on Red Hat Enterprise Linux 6 for 64-Bit systems = | ||
REF: http://docs.services.mozilla.com/howtos/run-sync.html | REF: http://docs.services.mozilla.com/howtos/run-sync.html | ||
| Line 58: | Line 58: | ||
$ make -v | $ make -v | ||
Note: For the more manual installation steps, using /usr/local/src as a working directory | Note: For the more manual installation steps, using /usr/local/src as a working directory, although this can be any location you choose. | ||
* Install SetupTools | * Install SetupTools | ||
| Line 77: | Line 77: | ||
$ sudo yum install python-devel-2.6.6-20.el6.x86_64 | $ sudo yum install python-devel-2.6.6-20.el6.x86_64 | ||
* Install GCC, which is required for MySQL-Python | |||
* | |||
$ cd /usr/local/src | $ cd /usr/local/src | ||
$ sudo yum install gcc | $ sudo yum install gcc | ||
| Line 90: | Line 88: | ||
gcc (GCC) 4.4.5 20110214 (Red Hat 4.4.5-6) | gcc (GCC) 4.4.5 20110214 (Red Hat 4.4.5-6) | ||
* | * Start up MySQL | ||
sudo /etc/init.d/mysqld start | sudo /etc/init.d/mysqld start | ||
* | * Configure MySQL with a password and a test DB for Sync. | ||
mysql -u root -p | mysql -u root -p | ||
There may be no password (or a "blank" password) | There may be no password (or a "blank" password) | ||
| Line 105: | Line 103: | ||
mysql> \quit | mysql> \quit | ||
Note: mysql-server install usually prints several lines that show how to do initial setup, so those steps could also be followed instead of | Note: mysql-server install usually prints several lines that show how to do initial setup, so those steps could also be followed instead of the listed above. | ||
* Next, clone and build the sync server | * Next, clone and build the sync server | ||
Installing to an open folder for now: /opt/sync | |||
$ mkdir /opt/sync | |||
$ cd /opt/sync | |||
$ hg clone https://hg.mozilla.org/services/server-full | $ hg clone https://hg.mozilla.org/services/server-full | ||
$ cd server-full | $ cd server-full | ||
$ make build | $ make build | ||
* | * Install mysql-devel (which is a prereq for MySQL-Python) | ||
$ sudo yum install mysql-devel | $ sudo yum install mysql-devel | ||
* | * Install MySQL-Python | ||
$ cd /opt/sync/server-full | $ cd /opt/sync/server-full | ||
$ bin/easy_install MySQL-Python | $ bin/easy_install MySQL-Python | ||
* | * Configure server-full/etc/sync.conf to use MySQL | ||
Change the two "sqluri" lines to match the following (or similar): | Change the two "sqluri" lines to match the following (or similar): | ||
sqluri = mysql://root:mozroot@localhost/syncdb | sqluri = mysql://root:mozroot@localhost/syncdb | ||
* | * Run the following command (see the wiki page) for more information | ||
$ bin/paster serve development.ini | |||
$ | |||
* If the Server is running correctly, you should see something like this | |||
Starting server in PID 3568. | |||
serving on 0.0.0.0:5000 view at http://127.0.0.1:5000 | |||
= Rebuilding and Deploying the Sync Server = | = Rebuilding and Deploying the Sync Server = | ||
* Kill the Sync Server process | * Kill the Sync Server process | ||
$ kill -9 <PID> | $ kill -9 <PID> | ||
(Leave MySQL running) | (Leave MySQL running) | ||
* Save the Sync Server directory and its contents | * Save the Sync Server directory and its contents | ||
(this in case | (this in case you want to keep various snapshots) | ||
$ mv server-full server-full-<DATE> | $ mv server-full server-full-<DATE> | ||
(example: mv server-full server-full-08012011) | (example: mv server-full server-full-08012011) | ||
* Repeat the build and deploy steps from above | * Repeat the build and deploy steps from above | ||
* Make the necessary changes in the server-full/etc/sync.conf file: | * Make the necessary changes in the server-full/etc/sync.conf file: | ||
* Change the sqluri | * Change the sqluri entries | ||
* Restart the server | * Restart the server | ||
For more advanced configurations, including web server support, please see the following documentation: | For more advanced configurations, including web server support, please see the following documentation: | ||
| Line 174: | Line 148: | ||
For a more technical overview of Sync Server and an introduction to Mozilla Services, please see the following documentation: | For a more technical overview of Sync Server and an introduction to Mozilla Services, please see the following documentation: | ||
* http://docs.services.mozilla.com | * http://docs.services.mozilla.com | ||