1. Check your hosting

The cloud server runs separately from your Unity game. Use the server archive included with the release, or the repository's Web folder.

You needWhat to check
PHP 8.3 or newerYour host must run PHP, not just serve static files.
PDO SQLite and mbstringEnable these PHP extensions. SQLite stores the database in a file; no separate database service is needed.
Writable private storageKeep configuration and database files outside the public website folder.
HTTPSRequired for public hosting. HTTP is allowed on localhost for testing.

This backend supports one server deployment with SQLite on local storage. Multiple hosts sharing a database need a different storage integration.

2. Separate public and private files

Upload the server files to a public directory, such as your website's cloud folder. Create a separate private directory for its configuration and database.

Example locationContents
/var/www/cloudThe extracted server PHP files, images, and included .htaccess.
/srv/complete-save-private/config.phpThe configuration created during setup, including administrator credentials and the application identifier.
Private database pathCreated during setup and recorded in CS_DATABASE_PATH inside the configuration.

Set CS_CONFIG_PATH to your private configuration path in both your web server's PHP environment and your terminal. The PHP process must be able to write there. The exact hosting control depends on your provider.

Use the same configuration path everywhere

Setting an environment variable in a terminal does not automatically set it for Apache or PHP-FPM. Ask your host to configure both if needed.

3. Create your administrator account

Choose one of these setup methods. Use a password of at least 12 characters. Setup creates the configuration, database, and application identifier, then locks against another installation.

Try the browser setup locally

Open a terminal in the extracted server folder. These commands create private storage in your home folder and start a local preview:

mkdir -p "$HOME/complete-save-private"
chmod 700 "$HOME/complete-save-private"
export CS_CONFIG_PATH="$HOME/complete-save-private/config.php"
php -S 127.0.0.1:8765 -t .
  1. Open http://127.0.0.1:8765/completesave_setup.php in your browser.
  2. Choose your administrator username and password.
  3. Select Create Cloud Server.
  4. Copy the generated application identifier, then open the dashboard and sign in.

Keep the terminal open while testing. Press Ctrl+C to stop this local preview. Use your hosting provider's PHP service for a public deployment.

Set up a hosted server from the command line

Run the following in Bash from the extracted server folder. Replace the example path with your private configuration path. The password prompt hides your input and passes it through standard input rather than a command-line argument.

export CS_CONFIG_PATH=/srv/complete-save-private/config.php
read -r -s -p "Administrator password: " CS_ADMIN_PASSWORD
printf '\n'
printf '%s\n' "$CS_ADMIN_PASSWORD" | php cloud_admin.php init admin
unset CS_ADMIN_PASSWORD

Replace admin with your preferred username. The installer creates private storage if needed and prints the application identifier. Give the web PHP process access to the generated files.

Browser setup on a remote host requires a configured CS_SETUP_TOKEN and the matching X-CompleteSave-Setup request header. Typing the setup URL into a browser alone does not send that header. The CLI installer is the simpler hosted setup path.

4. Connect Unity

  1. Open Tools → Complete Save System in Unity and configure the cloud service.
  2. Enter your server URL, such as https://your-domain.example/cloud/completesave_api.php.
  3. Copy the application identifier into the web_api_key field and choose your cloud slot.
  4. Add CloudSaveManager to your scene and connect using your game's player credentials.

The dashboard administrator account manages the server. Your game's players use their own credentials. The application identifier selects the game deployment; player sessions authorize access to saves.

Follow connecting and synchronizing a player for the C# calls, login completion, and conflict behavior.

5. Check before sharing the server

  • Use HTTPS and confirm the dashboard login and API are served through it.
  • Keep configuration, database files, and backups outside the public web root.
  • Back up the private configuration and database separately.
  • Test saving and loading from a second client, including a lost connection.
Web server rules and reverse proxies

Apache's included .htaccess disables directory listings and blocks sensitive filenames. nginx needs equivalent rules. Keep private files outside the document root even when access rules are configured.

If a proxy handles TLS, configure the trusted web server to set PHP's HTTPS parameter correctly. The application does not trust arbitrary forwarded headers from requests.

WebGL origins and upload limits

In the private configuration, set CS_ALLOWED_ORIGINS to the exact HTTPS origins that host your game. An origin includes its scheme, host, and port, without a path. Unknown origins receive no CORS permission. An empty list is suitable when cross-origin access is not needed.

Use Settings in the dashboard to change the per-save and per-user limits. Until you save an override, CS_MAX_SAVE_BYTES defaults to 50 MiB per save and CS_MAX_USER_BYTES to 256 MiB per player. Configure web server/proxy request limits to allow the base64-encoded payload and JSON overhead. The API also enforces a request-size limit.

Manage and recover the server

Use the server administration guide for dashboard features, database backups, player password resets, and restoration. Keep the same CS_CONFIG_PATH when running administrator commands.

Recover an administrator account

Stop public access and back up the private configuration first. Replace CS_ADMIN_PASSWORD_HASH with a PHP password_hash of the new password, replace CS_SESSION_SECRET with a new random secret, and restart PHP. Existing administrator sessions then need to sign in again.

Keep the application identifier and database path unchanged when resetting an administrator password. Reopening the installer is not an account recovery method.

Restore a database backup

After restoring a database backup, run php cloud_admin.php new-epoch so clients detect the server revision rollback. Follow the restoration steps while writes are stopped.

If setup does not work

What you seeWhat to check
“HTTPS is required”Use HTTPS on the hosted server. For local testing, connect through 127.0.0.1.
“Use the CLI installer”Remote browser setup needs the setup header. Use the command-line method above.
Configuration cannot be createdCheck the private parent directory exists, PHP can write there, and a configuration is not already present.
Setup succeeds but login returns to setupThe web process and installer may have different CS_CONFIG_PATH values.
“Could not find driver”Enable PDO SQLite for the PHP installation serving the website as well as the CLI.
WebGL works locally but fails on your websiteCheck HTTPS, allowed origins, and request limits.