eg-252:deployment
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
eg-252:deployment [2008/11/05 21:51] – eechris | eg-252:deployment [2011/01/14 12:45] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Deploying Your Drupal Website ====== | ||
+ | Dr Jobling has made some notes on the procedure to adopt in order to move your Drupal web site from the staging server on the private ICCT network to the deployment server on eespectre.swan.ac.uk. | ||
+ | |||
+ | ===== Preparations ===== | ||
+ | |||
+ | Before you move the web site there are a few things that have to be done on your staging server. These instructions assume that you are logged into your staging machine as administrative user //icct//, you are using the XAMPP system installed in ''/ | ||
+ | |||
+ | ==== Step 1: Turn off Clean URLs ==== | ||
+ | |||
+ | Login to http:// | ||
+ | |||
+ | ==== Step 2: Export Your Drupal Database ==== | ||
+ | |||
+ | - Open phpMyAdmin (http:// | ||
+ | - Use the export option to create a copy of the database as an SQL query file. | ||
+ | - Select the option to create a gzipped file ('' | ||
+ | - When prompted save the result to your '' | ||
+ | |||
+ | ==== Step 3: Make a tar archive of your Drupal directory ==== | ||
+ | |||
+ | Follow the following script to create a tar archive of your Drupal installation (includes all uploaded files, themes and modules, and maintains file permissions): | ||
+ | |||
+ | cd / | ||
+ | tar cvfz ~icct/ | ||
+ | ===== Set Up on the Deployment Host ===== | ||
+ | |||
+ | Your group' | ||
+ | * Team Alpha: http:// | ||
+ | * Team Bravo: http:// | ||
+ | * Team Charlie: http:// | ||
+ | * Team Delta: http:// | ||
+ | * Team Echo: http:// | ||
+ | * Team Foxtrot: http:// | ||
+ | * Team Golf: http:// | ||
+ | |||
+ | For this to work, Dr Jobling will need to create a user account for each group and a MySQL database for your Drupal site. The user account will be alpha2010, bravo2010, charlie2010 etc. The database will be '' | ||
+ | |||
+ | ===== Deploying Your Drupal Site ===== | ||
+ | |||
+ | |||
+ | ==== Step 4: Deploy the Database ==== | ||
+ | |||
+ | * Open phpMyAdmin on // | ||
+ | * Select the '' | ||
+ | * Use import to upload your SQL data from your Desktop into your new database on // | ||
+ | ==== Step 5: Upload and Deploy Your Drupal Site ==== | ||
+ | |||
+ | |||
+ | For this step you will use //scp// to copy your archived Drupal site to // | ||
+ | |||
+ | You should note that on // | ||
+ | |||
+ | * Copy your archived Drupal site using the command '' | ||
+ | * Use //ssh// to login to your account on // | ||
+ | |||
+ | icct@icct-host: | ||
+ | (password) | ||
+ | group2008@eespectre: | ||
+ | group2008@eespectre: | ||
+ | |||
+ | You now have to make a couple of edits to your Drupal settings files. | ||
+ | - Edit '' | ||
+ | - Edit '' | ||
+ | ==== Step 7: Go to your Deployed Drupal Site ==== | ||
+ | |||
+ | If all has gone well, you should be able to access your deployed Drupal web site at http:// | ||
+ | |||
+ | You should now be able to re-enable smart URLs and continue to add users and content. | ||
+ | |||
+ | To install new themes and modules you can use either //scp// or an FTP client to upload modules and thmes to your new site, or you can //ssh// into your account on // | ||
+ | ===== Some Additional Tips ===== | ||
+ | |||
+ | If you are going to customize your themes, create a site-specific themes directory ('' | ||
+ | |||
+ | If you want to administer your Drupal site from a windows machine, acquire a copy of [[http:// | ||
+ | |||
+ | If you need to make changes to the PHP and CSS code for theming and site configuration, | ||
+ | * for //vi// type '' | ||
+ | * for //emacs// type '' | ||
+ | Both editors are light-years ahead of //nano// for serious code editing, both are also available for windows, and both work in an terminal window and so are accessible from within an //ssh// session. | ||
+ | |||
+ | For those of you who like to watch, there' |
eg-252/deployment.txt · Last modified: 2011/01/14 12:45 by 127.0.0.1