PHP support on zoo has ended. Sites migrated to silk hosting should see improved performance, security, and deployment flexibility.

Migrating sites to silk

Migrating your exising site involves roughly the following:

  1. Request a silk hosting site. You can obtain a silk account by emailing a request to Systems Architecture & Administration. If you need compatibility with PHP 5.3 and/or Magicscript, make sure to mention this.

  2. Copy your content.

  3. Adapt your site to silk.

    • PHP version: During initial migration, you might want to use the same version of PHP as found on zoo, and can configure your site to use PHP 5.3. Note that PHP 5.3 support will end on May 24, 2019, so you should plan an upgrade before then.
    • Magicscript: Silk hosts support Magicscript, though it is not enabled by default. If required, you can enable Magicscript for your site.
    • Filesystem paths: If your code refers to any resources by their full filesystem path, those paths might need updating. In particular, if your site accesses a WebDB MySQL database, you will probably need a new location to store your database credentials.
    • URLs: Your silk site has URLs starting with http://<netid>.w3.uvm.edu. If you need to redirect people from an old zoo site or maintain your www.uvm.edu URLs, you can do so as shown below.

Upgrading PHP

To ease migration from zoo, you might choose for your silk site to use PHP 5.3. PHP 5.3 support will end on May 24, 2019, and the second stage after migration is an upgrade to PHP 5.5 or newer. The work involved varies depending on your site. For most people, moving to PHP 5.5 includes at least updating your WebDB credentials.

Redirecting page requests

You can redirect people who encounter your old URLs to your silk site by creating/editing a file named .htaccess in your site on zoo, adding something like the following:

# Redirect a specific file
Redirect /~myoldsite/old.html http://<netid>.w3.uvm.edu/new.html

# Redirect a whole site
Redirect /~myoldsite http://<netid>.w3.uvm.edu/

# Redirect any file ending in `.html`
RedirectMatch (.*)\.html$ http://<netid>.w3.uvm.edu/$1

Proxying page requests

You can keep your existing www.uvm.edu URLs by proxying requests through those servers to your silk site. Create/edit a file named .htaccess in your site on zoo, adding something like the following:

RewriteEngine on
RewriteRule (.*) http://<netid>.w3.uvm.edu/$1 [L,P]

This will make the entire silk site appear for browsers to be served from the URL where these rules are specified.

Particularly complex proxy rules might have needs beyond the capabilities of .htaccess files. If the above is not sufficient for your site (for example, if your site performs page redirects), contact SAA for assistance.