01 Mar 08 _ Tutorial: Moving DigiShop to a New Server


By Christopher
in BlogTorials, DigiShop

I recently had the task of moving an installation of DigiShop from one server to another. Here’s how I did it, in ten easy steps:

1) Download all the DigiShop files.

Also download any other site files that need to move to the new server to a local copy on your computer. I found the easiest way to accomplish this is to SSH to the server, zip up the store directory and download the single tar.gz file. Here’s how:

  1. SSH to the server
  2. cd to the directory that holds the folder you want to compress
  3. at the command line type: tar cvf – directory to compress | gzip > newfilename.tar.gz (obviously, replace “directory to compress” with the name of the directory you want to compress and “newfilename” with the name you want to call the archive.)
  4. this will place the new archived file in the current directory.
  5. Then use a program like Transmit to SFTP to the server and download the archive to your computer. While you’re in there, you can use the secure copy command (scp) to send the archive directly to the new server.

2) Prep the new store database.

Use phpMyAdmin or another MySQL utility to create a new database and database user for DigiShop. Write down the database name and the database user name and password.

3) Update these DigiShop files with the new file paths and database information.

conf/config.app.bootstrap.ini.php
conf/config.app.root.ini.php
conf/gatewayConfiguration.inc.php
conf/config.app.settings.ini.php
secure/conf/config.app.root.ini.php
secure/webapp.php
lib/framework/config.framework.bootstrap.ini.php

Extract your local copy of the tar.gz file to edit these files. But save a copy of the archive for uploading to the sever in the next step.

4) Upload the updated files to the new server.

Use SFTP to send the tar.gz archive to the new server. Then login to the server command line via SSH and extract the archive file (gunzip yourachive.tar.gz then tar -xvf yourarchive.tar). IMPORTANT: you may need reset the permissions on the unarchived files. On Linux-based systems use the chown command to reset the file ownership and permissions (chown -R username:groupname directory). Check the permissions for all the files and directories that DigiShop likes to have write-able (chmod 777). Now switch back to SFTP and upload just the files you updated in the last step. Overwrite the files on the server with these updated versions.

5) Close the old store.

If you have a recent version of DigiShop you’re in luck, because there’s a little check-box that will take the store offline for you. It’s in the DigiShop admin control panel under Settings > General Settings.

If you don’t have this option (I didn’t), the easiest way to close up the store is to make a static version of the cart.php page, and put a “store closed” message on that page. Simply load up cart.php in a browser, view the source, and copy-paste the code into a text editor (I use TextWrangler). Then edit the code until you have a sufficiently formatted store closed message. SFTP to your site and rename cart.php to cart2.php (or whatever), and upload your “static” version of cart.php.

6) Download the DigiShop database.

Export your DigiShop MySQL database via phpMyAdmin, or another utility so that you have a .sql file containing the structure and contents of the DigiShop database.

7) Upload and update the DigiShop database.

Using phpMyAdmin or other MySQL utility, import the .sql file that you made during the last step to the database on the new server. IMPORTANT: Now you have to update several entries in the ds_settings table in the new database to match the settings that you used in the config.app.settings.ini.php file.

8 ) Transfer the SSL certificate to the new server.

This can be a tricky process. You should have a plan for this before you even start on Step 1.

9) Run some tests on the new store.

Try adding some items to your cart and completing a test transaction on the new server. Don’t forget to make sure the admin control panel is working properly.

10) Switch the domiain’s DNS to point to the new server.

You’re back open for business!

Spread the Word:
  • Slashdot
  • Digg
  • Facebook
  • Reddit
  • del.icio.us
  • StumbleUpon
  • Technorati
  • NewsVine



Leave a Reply

  • guitar modification parts
  • butcher paper roll dispenser
  • makers of dog kennels
  • credit card debt relief program
  • billet grills
  • studio rta the bug computer desk
  • shark cordless cyclonic hand vacuum
  • toastmaster parts toaster
  • men's suits shirts barney
  • saucony shoes outlet stores
  • 1 2 decorative square post caps
  • fruit of the loom union suits
  • maine snowmobile insurance requirements
  • boyne mountain grand lodge and spa
  • triple pet natural toothpaste
  • used kids dirt bikes for sale
  • 30 inch slide in electric range
  • create pdf word embed fonts
  • wholesale jelly jars
  • water as fuel denny klein
  • couch replacement pillows
  • coleman bayside elite replacement parts
  • sponge bob crabby patty candy
  • wholesale winter gloves hats
  • best at home treatment for blackheads
  • tub refinishing pgh pa
  • tile shower seat vintage
  • caught wearing high heels split skirt
  • kawasaki kx85 parts and exploded view
  • india and business dress
  • kid's camp crafts
  • cuff bracelets wholesale
  • golf gps systems reviews
  • wholesale patio pool furniture
  • crystal on the plaza
  • global travel shoes
  • spectrum products tanning bed
  • 84 wide wooden window blinds
  • consigning my lilly pulitzer clothes
  • no smoking rooms in boston hotels
  • aubrey organics skin cleanser
  • home decor liquidators furniture and flooring
  • hair regrowth products reviews
  • black bean corn citrus vinegar
  • jt paintball gear
  • how to create finger nail designs
  • popup tent cleaning
  • knife sound editing
  • hippie chick costumes
  • miniature surveillance cameras detection
  • hd high def video edit
  • recycle styrofoam cups
  • bamboo patio door blinds
  • money order promise rings
  • resurfacing bathtubs
  • mens star earrings
  • spray face foundation
  • remote home thermostats
  • phoenix skin rejuvenation
  • shower enclosures walls
  • kawasaki 440 aircraft engine parts
  • women's clothing sleep shirts
  • material requirements planning mrp systems
  • cryoserver back email compliance archiving message
  • home flea infestation
  • cuisinart 9-speed hand mixer brushed chrome
  • wholesale military surgical caps
  • nike drawstring backpack lavender
  • acutane colon problems
  • mercedes 320 wagon tires
  • ucla womens basketball camps
  • vida international fruta
  • kids camp crafts
  • compliance corporate email
  • good feet store onalaska wi
  • coach purse party
  • women's shoulder handbags
  • diy exterior patio blinds
  • pivot tub shower enclosures
  • dog harness and collar
  • shoi racing helmets
  • free shawl knit patterns
  • thyme essential oil price
  • tubeless bicycle wheels road
  • black edition magazine man swimsuit
  • 5 star car wax
  • italian charm bracelets wholesale
  • sleep t shirts
  • audio cards upside down
  • dell 5100cn colour network laser printer
  • fj cruiser trailer hitch receivers
  • sell structured settlement payment
  • organizational monitor stands
  • prom decorations and costumes
  • cats on behavior medication
  • golf palm computer gps system
  • budget wedding planning checklist
  • movie theater popcorn maker canada
  • water pump 3-inch suction hose
  • invest in stocks cheap
  • nike max air inline skates
  • star wars galactic heroes bedding comforter
  • airsoft outfitters gear
  • cheap new chevy trucks
  • discounted airfares cheapest airfares erfurt
  • floral furniture throws
  • schutt baseball equipment
  • acrobat distiller settings for news print
  • 2.4 to 3.8 s10 truck conversion
  • westgate villia resorts
  • fuzzy bunny slippers adult
  • shock doctor mouth pieces
  • midwest family vacations
  • red kap highland uniform shirts
  • play euchre free online
  • rockport shoes rosemont
  • elo entuitive touchscreen drivers
  • decorative garden pond fountains
  • kids online cake decorating games
  • america west airlines dividend miles program
  • in kind giving from popcorn company
  • camera ccd industrial
  • outdoor furniture pool harrows
  • raymond waites spring garland
  • lil boosie new mixtapes
  • household and cleaning forum
  • video piggy 1.3.0 crack