Difference between revisions of "Moving NATS4"

From TMM Wiki
Jump to navigationJump to search
Line 3: Line 3:
 
}}
 
}}
  
Too Much Media will move your NATS installation to a new server for
+
We at Too Much Media offer the service of moving your [[NATS]] installation to a new server; this can be done for a cost of $300. If you would like your server to be moved by TMM techs, please [http://clients.toomuchmedia.com submit a support ticket]. Although we recommend that you use this service, we also offer instructions for moving your [[NATS]] installation by yourself.
$300. We recommend you use this service.  
 
  
The following steps describe moving NATS on your own. If you perform a server move on your own, there will be an hourly charge for any support required.  Note: these steps require some down time, but
+
The following instructions describe how to move NATS on your own. Although you can forgo our service fee by doing it yourself, please keep in mind that there will be an hourly charge for any support required during this process.
they guarantee database consistency and consistent service during the
 
DNS switch-over.
 
  
== Set up NATS on the New Server ==
+
'''Note''': These steps require some down time, but they will guarantee database consistency, as well as consistent service during the DNS switch-over.
  
<b>Please check the following wiki for mysql setup:</b> [http://wiki.toomuchmedia.com/index.php/NATS4_MySQL_Settings NATS4_MySQL_Settings]
+
== Setting up NATS on the New Server ==
 +
 
 +
<b>Please refer to the following wiki article for MySQL setup:</b> [http://wiki.toomuchmedia.com/index.php/NATS4_MySQL_Settings NATS4_MySQL_Settings]
  
 
- MySQL must also be accessible from the CLI, which may require changes to the my.cnf file
 
- MySQL must also be accessible from the CLI, which may require changes to the my.cnf file
Line 18: Line 17:
 
- Ensure that NO_UNSIGNED_SUBTRACTION is enabled
 
- Ensure that NO_UNSIGNED_SUBTRACTION is enabled
  
* Copy the NATS files to the new server. You can use the program <tt>rsync</tt>
+
 
* '''Please be sure to check to make sure all the correct symbolic links are set up in the nats/www/ directory.  These symbolic links should be:'''
+
* Copy all NATS files to your new server. You can use the program ''rsync'' to facilitate the process.
 +
* '''Please be sure to check to make sure all the correct symbolic links (symlinks) are set up in your nats/www/ directory.  These symbolic links should be:'''
 
<pre>track
 
<pre>track
 
strack
 
strack
Line 28: Line 28:
 
include
 
include
 
</pre>
 
</pre>
* '''If any of these symbolic links are not available or not set up correctly in your nats/www/ directory, please put in a support ticket'''
+
* '''If any of these symbolic links are not available or not set up correctly in your nats/www/ directory, please [http://clients.toomuchmedia.com put in a support ticket]'''
* Get a NATS license for your new server. Please [http://clients.toomuchmedia.com open a new ticket] and tell us with the zendid if you are using Zend, or the MAC address if you are using IonCube
+
* Get a NATS license for your new server. Please [http://clients.toomuchmedia.com open a new ticket] and tell us your the zendid if you are using Zend, or the MAC address if you are using IonCube.
* If you have Zend, you may need to set up the path to the zend license in the php.ini by adding the following line:
+
* If you have Zend, you may need to set up the path to the zend license in your php.ini file by adding the following line:
  
 
<pre>
 
<pre>
Line 37: Line 37:
  
 
* Change the paths in the ''includes/config.php'' file to be correct on the new server.
 
* Change the paths in the ''includes/config.php'' file to be correct on the new server.
* Change the MySQL connection information for the ''includes/config.php'' file on the new server so it can connect to the database on the original server. Test that NATS is working correctly using the IP address of the new server
+
* Change the MySQL connection information for the ''includes/config.php'' file on the new server so it can connect to the database on the original server, then test that NATS is working correctly by using the IP address of the new server.
  
 
At this point, NATS should work correctly on both servers and will use the database on the original server.
 
At this point, NATS should work correctly on both servers and will use the database on the original server.
Line 44: Line 44:
 
'''Your NATS program will be down during these steps.'''
 
'''Your NATS program will be down during these steps.'''
  
* Shut down the database on the original server. This makes NATS stop working.
+
* Shut down the database on your original server. This will make NATS stop working for the time being.
* Copy the database to the new server.
+
* Copy the database to the your server.
* Change the config.php file on the new server to use the new database and check that NATS is working correctly.
+
* Change the config.php file on your new server to use the new database and check that NATS is working correctly.
* Change the config.php file on the original server to connect to the new server's database.
+
* Change the config.php file on your original server to connect to the new server's database.
  
 
At this point, NATS should work correctly on both servers and will use the database on the new server.
 
At this point, NATS should work correctly on both servers and will use the database on the new server.

Revision as of 15:03, 27 July 2010

NATS 4
NATS Setup
Post-Installation Steps
Apache Configuration
MySQL Settings
Creating Admin Accounts
Multiple Server Setup
Using Memcached for Caching
File Upload Setup
Link Domain
HTTPS Setup
NATS4 Files and Directories
NATS4 Go Live Checklist
NATS3 to NATS4 Going Live Checklist
Moving NATS4
Members Admin
The Members Admin
View Member Details
Add Member
MySQL Auth
Mod Authn DB
Multisite Access
Member Logging
Member Password Retrieval
OpenID Connect
Mod Auth OpenIDC
ID Numbers

We at Too Much Media offer the service of moving your NATS installation to a new server; this can be done for a cost of $300. If you would like your server to be moved by TMM techs, please submit a support ticket. Although we recommend that you use this service, we also offer instructions for moving your NATS installation by yourself.

The following instructions describe how to move NATS on your own. Although you can forgo our service fee by doing it yourself, please keep in mind that there will be an hourly charge for any support required during this process.

Note: These steps require some down time, but they will guarantee database consistency, as well as consistent service during the DNS switch-over.

Setting up NATS on the New Server

Please refer to the following wiki article for MySQL setup: NATS4_MySQL_Settings

- MySQL must also be accessible from the CLI, which may require changes to the my.cnf file

- Ensure that NO_UNSIGNED_SUBTRACTION is enabled


  • Copy all NATS files to your new server. You can use the program rsync to facilitate the process.
  • Please be sure to check to make sure all the correct symbolic links (symlinks) are set up in your nats/www/ directory. These symbolic links should be:
track
strack
qtrack
ttrack
gallery
banner
include
  • If any of these symbolic links are not available or not set up correctly in your nats/www/ directory, please put in a support ticket
  • Get a NATS license for your new server. Please open a new ticket and tell us your the zendid if you are using Zend, or the MAC address if you are using IonCube.
  • If you have Zend, you may need to set up the path to the zend license in your php.ini file by adding the following line:
zend_optimizer.license_path=/path to nats/licenses/
  • Change the paths in the includes/config.php file to be correct on the new server.
  • Change the MySQL connection information for the includes/config.php file on the new server so it can connect to the database on the original server, then test that NATS is working correctly by using the IP address of the new server.

At this point, NATS should work correctly on both servers and will use the database on the original server.

Moving the Database to the New Server

Your NATS program will be down during these steps.

  • Shut down the database on your original server. This will make NATS stop working for the time being.
  • Copy the database to the your server.
  • Change the config.php file on your new server to use the new database and check that NATS is working correctly.
  • Change the config.php file on your original server to connect to the new server's database.

At this point, NATS should work correctly on both servers and will use the database on the new server.

Set up Crons and Billers

  • Remove the NATS cron from the old server
  • Set up a new cron on the new server; use the correct paths to nats and php
  • Tell your billers about your new IP address

Switch the DNS

  • Have your host switch the DNS name to the new server. Please open a new ticket when the DNS change is complete so we can update your NATS license.