Moving your sim to Spectre
Spectre is web-based cooperative writing for sims, on your own hosting. This guide takes a GM from an old sim site to Spectre, start to finish: what to have ready, installing Spectre at a temporary address, the import wizard screen by screen, what to check, putting Spectre on your sim's own address, and what to do after the move. Your old site keeps running, unchanged, until you switch over, and you can always go back.
Spectre is in development and not yet released. Inside Spectre, this guide is under Help, as Moving from your old site.
Before you start: checklist
Have these in hand before you begin. The boxes are for you to tick on a printout.
- Access to the old site's hosting control panel: its file manager (or an FTP program and login) and its database tool.
- The old site's data, one of two ways (which one): A. the database export file, ending in
.sqlor.sql.gz(recommended; how to get it), or B. the old database's login: server, database name, user and password (for a database on the same hosting account, or an export too big to upload). - A copy of the old site's files, downloaded to your computer (how).
- The old site's web address, as people visit it, such as
https://yoursimname.comorhttps://yoursimname.com/sim. Needed both ways: the pictures and the look are fetched from it. - Hosting for Spectre with PHP 8.3 or newer and MySQL 5.7 or newer (or MariaDB 10.3 or newer), on an Apache or LiteSpeed web server (almost every shared host). The installer checks the rest: the PHP extensions PDO MySQL, Mbstring, OpenSSL, Fileinfo, cURL, XML, DOM, Ctype, Tokenizer, JSON and Zip, GD or Imagick for pictures, and that its folders and settings file can be written to. It can be the same hosting account as the old site.
- Room on the hosting: there is no fixed figure. Allow about twice the size of your old database's export (the backup the wizard makes holds a copy of it), plus your old site's pictures twice over (once in that backup, once in Spectre), plus the Spectre download unzipped.
- A temporary address for Spectre: a subdomain such as
new.yoursimname.com, or a folder such asyoursimname.com/spectre. A subdomain is simplest. - An empty database for Spectre, with a database user and its password (how).
- The Spectre download: [SPECTRE DOWNLOAD LINK: to be added].
- An email address for your Commanding Officer account, and a password for it.
- Your sim's starting sim date: the date in your story today. The installer asks for it, and the sim clock starts on it.
- Whether Spectre will keep your sim's address (take over the old site's address) or have one of its own. The wizard asks (Keeping the same address).
- Time. As a guide, from our test migration of a sim with 1,007 posts, 152 characters and about 650 picture addresses on ordinary shared hosting: loading the export and the scan took a few seconds, the data import about 30 seconds, the pictures about 3 to 4 minutes, the links under a second and the Look step under 20 seconds. Making the backup takes about as long as the pictures. Installing Spectre takes about ten minutes. A bigger sim takes longer; every step shows its progress, and you can close the page and carry on later.
- OptionalA note to your crew that the sim is moving, and roughly when.
Two ways to bring the data over
A. Upload an export file (recommended)
- One file ending in
.sqlor.sql.gz, made with your old host's database tool (how). Your host can make one for you. - You never share the old database's login.
- The wizard's upload box says how big a file your host takes. A bigger one is copied into
storage/app/import/inside Spectre's folder with the file manager or FTP, and picked from a list.
B. Enter the old database's login
- For an old database on the same hosting account as Spectre, or an export too big to upload.
- You type its server, port, database name, user, password (and table prefix if asked). The login is kept, encrypted, only for the few hours the import needs.
- The connection only reads. Spectre writes its own copy of the old database into the backup zip.
Both ways need the old site's web address (the pictures and the look are fetched from it), and both go through the wizard's Back up step before anything is imported.
1. Back up the old site and export its database
Nothing in the move changes your old site, but keep your own copy of it anyway.
The database export (way A)
- Sign in to the old site's hosting control panel and open its database tool (often under Databases).
- Pick the old site's database in its list. If you are not sure which one it is, the old site's database settings file names it (often
application/config/database.phpin the old site's folder). - Open the tool's Export screen. Choose the whole database, structure and data, in SQL format. If it asks about compression, choose none or gzip (a
.zipis not accepted). - Start the export. The file downloads to your computer. Keep it as it is: don't open or change it.
If your host has a Backups page instead, download a backup of the database from there.
A copy of the old site's files
The program files and settings files of the old site can't be reached over the web, so no backup Spectre makes can hold them. Download them yourself:
- In the old site's control panel, open the file manager (or connect with an FTP program).
- Find the folder the old site lives in (the one with its
index.phpandapplicationfolder). - Compress it into a zip if the file manager offers that, and download the zip. Otherwise download the folder.
Keep the export and the files somewhere safe, away from the web space. With them, and the old site's database left as it is on the host, you can always put the old site back.
2. Install Spectre at a temporary address
Install Spectre at its own address first, while the old site stays where it is: the wizard fetches the pictures and the look from the old site, so it must still be up.
Make the temporary address
In your hosting control panel, add a subdomain (such as new.yoursimname.com) under Domains or Subdomains. The panel gives it a folder, its document root: the folder whose files the address shows, such as public_html/new (public_html is the usual name of the main web folder). Or use a new folder inside the main web folder, such as public_html/spectre, for yoursimname.com/spectre.
Upload and unzip Spectre
- Get the Spectre download: [SPECTRE DOWNLOAD LINK: to be added]. It is one zip file.
- Open the hosting file manager, go into the temporary address's folder, and upload the zip there.
- Select the zip and choose Extract (some file managers call it Unzip). If the files land inside a folder of their own, move everything in it up into the address's folder.
- Check the address's folder now holds
index.php,.htaccessand the foldersapp,public,storageandvendor, side by side. The.htaccessfiles are hidden files: many file managers have a setting to show hidden files. - Delete the zip from the folder.
If the file manager can't unzip: unzip the file on your computer and upload everything inside it, hidden .htaccess files included, with the file manager or an FTP program.
Which folder the address points at. Either works:
- Best: point the address's document root at the
publicfolder inside the upload (in the control panel: Domains, then the domain's document root or root directory). - Or leave it pointing at the folder you uploaded into. The
index.phpand.htaccessat the top of the upload send visitors to the right place and keep private files (such as.envandstorage) from being downloaded. This needs an Apache or LiteSpeed server, which almost every shared host uses.
Make an empty database
- In the control panel, open the databases page (often MySQL Databases).
- Create a new database. Note its full name: many hosts put your account name in front of it.
- Create a database user with a strong password, and note both.
- Add the user to the database with all privileges.
Run the installer
Open the temporary address in your browser: until Spectre is installed, every page goes to the installer, so new.yoursimname.com opens it (or open new.yoursimname.com/install; installed in a folder, yoursimname.com/spectre/install). Finish it in one go: until it is finished, anyone who finds the address could open it.
- Welcome: the server check. Anything marked FIX needs fixing first (the line says what); then Check again, and Continue. (The link Set up a fleet instead, which opens
yourfleetname.com/install/fleet, is for a fleet site, not a sim.) - Database: type Database server (usually
localhost), Port (3306), Database name, Database user and Database password from the step above, and click Connect and set up. Here the MySQL or MariaDB version is checked. - Start: choose Bringing a sim from another platform, then Save and continue.
- Sim: pick the Genre, then type Sim name, Registry, Fleet, the Sim date (the date in your story today; the sim clock starts on it), Site timezone and Site address (filled in with the temporary address: keep it). There is no starter pack when you bring a sim over: its departments and ranks come from the old site. Save and continue.
- Commanding Officer account: your name, email address and password (and, if you like, your character's first and last name). Create account and continue. If the email address is also your account on the old site, the import matches it to this account.
- Email: Built-in (recommended) works on most hosts; or type your SMTP server's details. You can send yourself a test email. Save and continue.
- Ready to finish: check the summary and click Finish installation.
The last page says Spectre and its version is installed. Click Sign in and start the import and sign in with your Commanding Officer account: the import wizard opens. Later you find it under Command › Upkeep › Import from another platform (the address new.yoursimname.com/admin/import at the temporary address). It is for the Commanding Officer only.
3. Run the import wizard
The wizard reads your old site's data, backs it up, brings over what you choose, copies the pictures, offers the old site's look as a theme, and updates the links. Each step shows its progress. You can close the page at any time: open the wizard again and click Resume, and it carries on from where it stopped. Running it again never brings anything over twice.
- Introduction. Read Before you start and click Start.
- Connect. The page offers the two ways side by side.
- A: under Upload a database export, choose the export file under The export file, type Your old site's web address, and click Upload and continue. A file bigger than your host lets you upload (the page says how big) can be copied with the file manager or FTP into
storage/app/import/inside Spectre's folder, then picked from the list on this page. - B: under Or connect to the old site's database, open the form, type the old database's server, port, name, user and password and Your old site's web address, click Test connection, then Connect and continue.
- A: under Upload a database export, choose the export file under The export file, type Your old site's web address, and click Upload and continue. A file bigger than your host lets you upload (the page says how big) can be copied with the file manager or FTP into
- Load (A only). The file is read a piece at a time into a private temporary copy. It is never run: anything in it that is not your old site's tables and data is skipped and listed in the report. If the file holds more than one sim, pick yours under Which sim?.
- Scan. Shows what the old data holds, what is worth knowing and what stays on the old site. Nothing is imported yet. Click Continue.
- Back up. Click Make the backup. Spectre makes one zip with your database (A: the export exactly as uploaded; B: a dump Spectre writes through the read-only login) and every picture and file the import will use from the old site's address (character pictures, rank insignia, award, episode, specification and tour pictures, the pictures inside posts, news, the wiki and bios, and the old site's look), kept as the old site sends them, with a
MANIFEST.txtlisting every file and anything that could not be fetched. Click Download the backup, open the zip, and type the code from the top of itsREADME.txt; tick I've saved this backup somewhere safe and click Continue. The wizard goes no further until you have. The rest of the import uses these copies instead of fetching the files again. The backup is also kept on the server for 7 days after the import, then deleted by itself. It can't hold the old site's program files: that is what your own copy is for. - Choose.
- What to bring over: everything is ticked; untick what you don't want. The numbers are what would be added.
- Departments, positions and ranks: Use the ones already here when the name matches (merge) uses this site's department, position or rank of the same name instead of a second copy. Keep them side by side adds everything from the old site as its own, even when a name is taken. On a fresh install brought over from another platform there is nothing here yet, so it makes no difference. Choose side by side when the site already runs another sim, or your old site's ranks would never bring their own insignia.
- Episode dates: Decide by the year (recommended) unless you know all the old dates are in-story or all real-world.
- Options: leave Replace this site's own settings with the old site's off unless you want the old site's values over yours; Make the old site's admins Executive Officers is off by default (recommended): you give roles yourself.
- Image files: tick Copy image files and keep Fetch them from the old site's address.
- Will Spectre take over your old site's address? Yes or No (Keeping the same address).
- The old site's address is filled in from Connect.
- Confirm. Shows exactly what will be written. Click Start the import.
- Import. The data, then the pictures. Keep the page open (closing it only pauses the work). Stop ends this import: what came over stays, and running the import again later skips it.
- Look. Click Fetch the look. Side by side shows your old site next to the same kind of page in Spectre, in a theme made from the old site's look. Use this theme makes it the site's default theme (Put back undoes it), or Skip.
- Report. What came over, anything to check, the message to send your crew, Your old site's address (and how many old links will redirect), the backup, and Update links to the old site: click Look for links, then Update N links. Links to old posts, bios, the wiki and the other pages that came over then point at their pages in Spectre (or, when Spectre will take over the old address, at those pages on the old address). A copy of each changed item is kept first.
4. Check the result
Open your old site in one browser tab and Spectre in another, and compare.
- Crew: the manifest lists everyone in the right departments and positions; open a few bios. Players keep their email addresses but not their passwords (each uses Forgot your password? once).
- Posts: open a few episodes and posts, old and recent. The report's counts should match the old site's.
- Awards: the awards and who received them.
- Pictures: character pictures, rank insignia, awards, the tour and specifications, and pictures inside the wiki and news. The report lists any the old site didn't have; upload those by hand if you have them.
- The wiki: a few pages, including their tables and in-page links.
- Ranks needing names: the report's Needs a name list; give each a name in Ranks.
- Episodes needing dates: the report's Needs a date list; give each a start date.
- Roles: nobody got admin rights; give roles in Users.
- The look: the theme from the Look step, or another one in Site Settings.
Something wrong? Fix it on the old site if it is wrong there, and run the import again: it adds only what is not there yet.
5. Switch over: Spectre on your sim's own address
Skip this if Spectre keeps its own address. Otherwise, once everything is checked, move Spectre onto the old site's address with a Sim Backup. Pick a quiet time and tell your crew first.
- On Spectre (the temporary address): open Command › Upkeep › Sim Backup, type your password, click Make a backup and download the zip. (Tick the connection settings box and choose a passphrase if you want your mail and Discord settings to come along.)
- Keep the old site safe: you have its files and database export from step 1, and the import's backup zip. Leave the old site's database on the host as it is.
- Empty the old address's folder: in the file manager, move the old site's files out of the folder the old address uses, into a folder outside the web space (such as
old-site-filesnext topublic_html), or delete them once you are sure your downloaded copy is complete. From now until the end of this list the old address shows nothing. - Upload Spectre there, as in step 2, and make a new empty database with its user (as before).
- Open the old address and run the installer: Welcome, Database (the new empty database), then on Start choose Restore from a Spectre backup.
- Upload the Sim Backup zip and click Upload and check it (a zip too big to upload can go into
storage/app/restore/). Check Site address is the old address, then click Restore this backup. - Update links to the old address: the links still naming the temporary address (pictures inside pages, for one) are counted. Click Update N links.
- Unlock the connection settings with your passphrase, or skip and fill them in. Then sign in: everyone keeps the password they set at the temporary address.
- Check a few pages again, and an old link or two (see After the move).
If the old site is with another host than Spectre, the domain itself must be pointed at Spectre's host instead (in the domain's DNS settings, at the company you registered it with); your host's help pages say how. Then do steps 4 to 9 at Spectre's host.
The temporary address can stay as it is until you are happy, then be deleted with its database.
6. After the move
- Tell the crew. The report has a message ready: the sim's address, and how to set a new password with Forgot your password? using the email address they used on the old site.
- Old links keep working. When Spectre took over the old address, the old site's page addresses (in bookmarks, search engines and other sites' links, with or without
index.php) are sent to the same pages in Spectre with a permanent redirect: an old post to its post, an old bio to the bio, the old list pages to the same pages. An old address with no match goes to the nearest section page, or a Not found page with a search box. Spectre's own pages always come first. It can be turned off in Site Settings › Old site links. - Tidy up. On the import report, delete the old site's backup from the server once you have your copy (it goes by itself after 7 days). Delete the export file under Export files on this site on the wizard's first page when you no longer need it.
- Going back. Nothing of the old site was changed. To put it back: move Spectre's files out of the old address's folder (keep them), put the old site's files back from your copy, and the old site runs again on its own database, as it was before the move. Anything written on Spectre since is not on the old site.
Keeping the same address
The wizard's Choose step asks Will Spectre take over your old site's address? (you can change the answer on the report).
- Yes: do the whole import at the temporary address while the old site is still up, because the pictures and the look are fetched from it. Then switch over. The links step points links in posts, bios and the wiki at the matching pages on the old address, not the temporary one, so they are right after the switch; and once Spectre is there, old links redirect.
- No: Spectre keeps its own address. Links are pointed at its pages there, and the old address can go on showing the old site or anything else.