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:
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.
Adapt your site to silk.
- 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.
Like zoo, the silk hosting service no longer supports PHP 5.3, and any PHP pages migrated to silk will need to work with a newer version of PHP. 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.