How to Move Your CRUD PHP Application to a New Server?
Complete Server Migration & Domain Change Guide

You can reinstall PHPCG as many times as you want without any restriction.
The Reinstall function restores PHP CRUD Generator to its original version and automatically opens the installer, ready for a fresh setup.


How to reinstall PHP CRUD Generator

Reinstalling is useful if you want to start over with a clean setup, or if your server fingerprint changed (moved installation, renamed folder, ...) and you need to reconfigure your database connection.

  1. Open the CRUD Generator (/generator/generator.php) in your browser and click the button in the top bar.
  2. A confirmation dialog opens. Choose Create a backup first: Yes if you want to keep your work, then confirm.

If you requested a backup, a ZIP archive containing all your data (admin CRUD data, forms, templates, generated classes, generator files and database definitions) is compiled automatically:
the download starts as soon as the reset is complete, and the archive also remains available on the server.

The installer then opens automatically - just follow the wizard:

  1. Step 1 - Requirements & License: the program checks your server settings and your license. If your license is still active on this domain it is detected, you don't need to enter it again.
  2. Step 2 - Database: enter the connection settings of the database you want to use.
  3. Step 3 - Custom settings: project name, logo, ...

If you move PHPCG to another domain (or want to use another slot of your license), deactivate the old domain first from your Polar customer portal, then run the activation again on the new domain.
See also the license terms.


What is preserved, what is reset

Reinstalling never touches your database contents:
your tables, records, users and profiles are kept.

Preserved

  • your database (structure and records)
  • the admin panel core files (navigation bar, homepage, style switcher, ...)
  • your General Settings (conf/user-conf.json)
  • your license record: if the license is still active on this domain, the installer detects it

Reset

  • the generated admin files: CRUD classes, lists, forms, templates and CRUD data (JSON)
  • the generator definitions of your database (generator/database/[db-name])
  • the database connection file /class/database/db-connect.php, which is restored to its original template - you'll enter your connection settings again in the installer

That's why creating a backup first is recommended: the ZIP archive lets you restore your customized lists, forms and templates manually if needed.

PHP CRUD tutorial main page