PanelAlpha Documentation
Back Home
Live Demo Get Started

Projects

Documentation

    # Projects

    A project is one hosting account: one website or application. Everything else on the engine belongs to a project: its domains, its databases, its files, its FTP logins.

    Backups have their own page: Backups.

    # Creating one

    You create a project in one request, together with its code. Creating a project from a repository is the deploy: Connecting with Git. WordPress you already host is covered on WordPress.

    The code can come from any of these:

    • A git repository. For a private repository over HTTPS, the assistant asks for a token on a paste page. An SSH address ([email protected]:team/app.git) needs a deploy key, and the engine refuses it without one. The assistant has the engine make the key and shows you its public half. You add it to the repository as a read-only deploy key. Then the project is created. The engine keeps the private half and never shows it. For a git server other than GitHub, GitLab.com or Bitbucket, the engine also reads and remembers that server's SSH host key when it makes the deploy key.
    • An archive. A .zip, .tar.gz or .tgz file. The assistant either uploads it first or gives the engine a web address to download it from. An upload that nobody uses expires after 24 hours and is deleted.
    • A copy of another project. It is made in the background, with its databases if you ask for them. It is the same copy as Cloning.
    • A new WordPress site. On traditional PHP hosting. The request needs a title (up to 255 characters) and the administrator's login, email and password. The login is 1 to 60 letters, digits, spaces or _ . @ -. The password has at least 8 characters. You can also name a language (de_DE) and a WordPress version (6.6.2). The default is the latest release in en_US. The engine keeps the password out of its task records. If the install fails, the project is removed.
    Create a project called tshop from https://example.com/files/shop.tar.gz.
    
    Create a project called tapp from [email protected]:team/app.git. Make a
    deploy key for it first and show me the public half.
    
    Create a WordPress site called tblog titled "My blog", with admin [email protected].
    

    A project created with nothing to deploy is an empty container project. To get traditional PHP hosting instead, ask for it: "Create it on traditional PHP hosting." The engine refuses a request with a field it does not know, or one that does not fit the source (a build recipe for an empty project, say). It names the field, and nothing is created.

    You can give an empty container project its code later. Ask for a git repository or an archive as its source, and the engine deploys it. An archive replaces the files in ~/project. The engine refuses an archive on a traditional PHP project, and on a project that deploys from a git repository. For a git project, push the change to the repository and rebuild instead.

    Use this repository as the source of tshop.
    

    To see what you already have:

    List the projects on this engine.
    

    Projects on traditional PHP hosting are reported as WordPress or as plain PHP. When the engine installed WordPress into a subfolder of the site's folder, such as <domain>/blog, the project is reported as WordPress with that folder. The WordPress operations use that folder when you give none. Ask the assistant for the project's app type.

    # Inspecting one

    Inspecting tells you what a project contains right now, without redeploying anything.

    Inspect this project. Tell me the stack, and whether it still matches the last
    deploy.
    

    The check against the last deploy compares how the app would be run now (strategy, platform, runtime, port) and the commit with what the last deploy recorded. A difference means the files changed after the deploy, for example over FTP, or a different commit is checked out. It does not compare file contents. When a site behaves unexpectedly and nobody deployed recently, check this first.

    # The application's login

    Many ready-made applications start with an administrator account. The engine makes up the username and a strong password, sets the application up with them and keeps them. A rebuild does not change them.

    What is the admin login for this project?
    

    The assistant answers with the sign-in address, the username and the password. If the application has no generated login, it says so. The password is the one the application started with. If you changed it inside the application later, the engine does not know the new one. The password is never written to the deploy log. An assistant set to readonly cannot read it: How far it may go.

    # Rebuilding

    A rebuild runs the last successful deploy again on the current files. A project connected to git gets a fresh clone of its branch, so anything changed in ~/project on the server is replaced by what the repository holds.

    Rebuild this project.
    

    Use it in three cases: you changed files directly on a project without a repository, you changed an environment variable, or a site has degraded and you want it put back the way it shipped.

    A rebuild runs in the background, and so does deploying an uploaded archive. The engine answers at once, and the assistant follows the deploy until it ends, however long the build takes. If you ask again while one is running, the engine refuses and points at the one under way. A slow deploy is never started twice.

    On the server, pae project:deploy-archive queues the deploy and follows it. Add --no-wait to print the task and return, or --timeout to stop watching after that many seconds (1800 by default). Pressing Ctrl-C stops only the printing: the deploy carries on.

    A rebuild does not wipe what the application keeps. For applications with a ready-made recipe, the passwords and keys the engine generated and the files people uploaded stay as they were. A project you set up yourself keeps only the storage you declared for it.

    After a rebuild, the engine checks what the site actually serves, not only whether the process started. A rebuild that "succeeded" but left a broken page is marked partial, with the reason. See What the engine checks.

    # Staging

    Staging is a linked copy of a live site, for trying changes where visitors cannot see them.

    Make a staging copy of this project.
    

    You get a second project with its own hostname. The hostname is staging. in front of the live one's. A project on a free panelalpha.online name gets a new name there instead. Break it freely. When you are happy:

    Push the staging copy live.
    

    You can push in either direction between the pair: staging to live to release changes, or live to staging to refresh your test copy with real data.

    A project can have one staging copy, and a staging copy cannot itself have one. A staging copy is refused while the live project is busy, for example during a deploy.

    On a traditional PHP project, the copy gets its own databases. Every MySQL database the project owns is copied into the staging copy, with new database users, new passwords and the same permissions. The staging copy then serves the copied site, not a placeholder page. A database the project does not own is not copied, and the assistant says so. To leave the databases out:

    Make a staging copy of this project without its databases.
    

    A WordPress site on a traditional PHP project is the exception. Its copy is pointed at the databases copied for it, so the engine refuses a staging copy or a clone of it without its databases, before anything is copied.

    To point the copy at its own databases, the engine rewrites the wp-config.php of the copied WordPress, and the addresses the copy answers on. It looks in the WordPress directory, a subdirectory included. If it cannot find a wp-config.php there, it refuses the copy, so the copy never keeps writing to the live database.

    A WordPress the engine did not install itself is looked for up to three folders below the document root, and remembered as the project's WordPress directory. The engine refuses the copy before anything is copied when it finds more than one WordPress there, or a wp-config.php that no WordPress loads.

    A push replaces the other side's files and databases. Both are pushed unless you say otherwise.

    • A domain's own PHP settings (pae domain:php-directives) are the project's own, so a push does not carry them. Each side keeps its set: a push neither clears the other side's nor brings its own there.
    • Before it replaces a database, the engine saves a copy of the one it is about to overwrite. It puts that copy back if the push fails.
    • On a container project the pushed app has to come up. If it keeps restarting, is stopped or still listens on no port after the time a deploy gives it to start, the push fails and the other side is put back as it was.
    • Once the other side is running the pushed site, the push is done. If the engine then fails to remove a leftover copy, it reports a warning on the push, and nothing is put back.
    • The other project keeps its own database users and passwords, so the site there keeps connecting.
    • A database the other side does not have yet is created there, and its users get the permissions the pushed project's users had on it. If the push fails, that database is dropped again and those permissions are taken back.
    Push the staging copy live, files only.
    Push the staging copy live, databases only.
    

    On a traditional PHP project you can also push only some tables, and leave the rest of the other side's database as it is. Ask what differs first:

    Which database tables differ between this project and its staging copy? Then
    push only those tables.
    

    You name each table you push by its database and its name. After a full database push, the diff can still list tables. On a WordPress site, the push keeps the other side's own site address, so the data there differs from the pushed side by that address.

    Container projects have no table push. For them, databases covers two things. The MySQL database the engine made for the app is pushed on its own, so a databases-only push carries it. The stored data volumes go only together with the files, so a push with both left on carries both. A databases-only push from a container project that has no such database has nothing to carry. The engine refuses it before either app is stopped. The project's deploy settings, such as how it is built and which commit it runs, go with the files. A databases-only push leaves the other side's own.

    Only the volumes your compose file names are copied. An anonymous volume is left out of a staging copy, a clone and a push. Two examples are the data directory a database image declares for itself when the compose file gives that service no volume, and an entry that gives only the path inside the container (- /var/lib/mysql). The result's warnings name each one that held data. Name the volume in your compose file to have it copied.

    A container project's environment variables go with its files. A staging copy starts with the live project's variables, and a push that includes the files gives the other side the pushed project's variables, so a later rebuild keeps them. A value that names the project's own address or the database the engine made for it is changed to the copy's, both in the stored variables and in the copied .env files, so the copy answers as itself from the start.

    # Cloning

    A clone is an independent copy, with no ongoing link and no later push.

    The clone gets a hostname of its own: clone. in front of its source's. A project on a free panelalpha.online name gets a new name there instead. A clone never takes the staging. address, so you can still make a staging copy of the same project afterwards. If you give the clone an address when you make it, it uses that.

    Clone this project.
    

    It copies the files, the stored data, the environment variables and the plan limits. On a traditional PHP project it also copies the MySQL databases, with new users, new passwords and the same permissions, and the clone serves the copied site. To leave the databases out, say so: "Clone this project without its databases." A WordPress site on a traditional PHP project cannot be cloned without them, as for staging.

    It does not copy subdomains, or FTP or SFTP accounts. On a container project it does not copy MySQL databases either: the application's own stored data is copied (unless you ask to leave the databases out, which leaves that data out too), but a database you created for it is not, so create one on the clone. Use clone as a starting template, not as a backup.

    # Suspending

    Suspending takes a site offline without deleting anything. The usual reason is non-payment.

    Suspend this project.
    Unsuspend this project.
    

    A suspended project is also skipped by the engine's automatic health checks, because an application stopped deliberately is not a fault to report.

    # Protecting

    A project can be marked protected. While it is, an assistant or any other tool using a token cannot delete the project, suspend it, stop or restart it, rebuild or redeploy it, change its environment variables or push into it. The engine refuses with project_protected and nothing runs. It also refuses starting the project (up) when that would write its run file again from the compose file, so environment variables saved without applying them cannot be applied that way.

    Only you can turn protection on or off, on the server, so a tool cannot lift it. The assistant can read the setting but not change it.

    A staging copy, a clone or a push from a protected project is still allowed. A container project is paused while its data is copied and then started again exactly as it was: environment variables saved without applying them stay unapplied.

    pae project:settings:set protected on --project=<name>
    pae project:settings:unset protected --project=<name>
    

    Your own pae commands on the server are not affected. Details: CLI commands.

    # System projects

    A system project is the engine's own application, such as the PanelAlpha panel that --full-privileges installs. No token sees it. It is left out of every project list, task list and API access list. A call that names it, its domains or its tasks gets the same answer as for a project that does not exist.

    The one exception is the project's own API token. It still reaches the project by name, so the application can manage its own domains. Even that token does not find it in a list.

    A system project is always protected (Protecting), and protection cannot be turned off while it is a system project. Only you can turn it on or off, on the server:

    pae project:settings:set system on --project=<name>
    pae project:settings:unset system --project=<name>
    

    --full-privileges makes the panel a system project once it is live. An engine update does the same for a panel installed earlier with that flag: a protected project with an API token for every project.

    An application reads its own project name from GET /api/tokens/current. The answer has project for the token its API access holds, and null for any other token.

    # Overlays

    An overlay is a piece of HTML, such as a banner, a notice or a script, that the engine's webserver writes into every page a site serves. The application is not changed. There is one global overlay for every project, and each project can have its own.

    Put a banner reading "Maintenance tonight at 22:00" at the bottom of every site.
    Add a "Staging copy" banner to tshop only.
    Do not show the global banner on tshop.
    
    • The overlay goes directly before </body> by default, or directly before </head> (position: head_end) for a stylesheet or a script.
    • On a project's pages the global overlay comes first, then the project's own. A project can hide the global one.
    • Only HTML pages (text/html) get it, on the project's addresses on ports 80 and 443. A page without the closing tag is left as it is. Files, JSON and other answers are left as they are, and so are extra ports, redirects and a suspended project's page.
    • The webserver asks the application for uncompressed pages, so it can find the tag. It then compresses the page for the visitor.
    • An overlay does not change how a Cloudflare tunnel reaches the site. A tunnel goes straight to the application, so its visitors do not see the overlay, unless a site password already routes the tunnel through the engine's webserver.
    • The HTML is written as you give it, up to 16 KB. The visitor's browser runs any script in it on the site's own address, so give it only HTML you trust.

    The pages change within seconds: the webserver reloads in the background.

    # Deleting

    Delete this project.
    

    This removes the entire hosting account: its database records, the MySQL user its phpMyAdmin sign-in created, its configuration and its home directory with every file in it. There is no undo. Take a backup first if there is any doubt. The assistant lists what will be lost and asks you to confirm before it deletes.

    A live project that still has a staging copy is not deleted: delete the staging copy first. A project deleted while a command such as pae project:rebuild --all is running is skipped by it, not rebuilt.

    # Environment variables

    Environment variables are settings your application reads when it starts: a database connection string, an API key, a mode switch.

    Set APP_ENV to production on this project.
    

    If the assistant cannot change these, those tools have been turned off: Decide what the assistant may do.

    The engine stores the value and restarts only the parts of the application that use the changed variable, without a rebuild. Almost every application reads these once at startup, so the restart is what makes the new value take effect. A value the build itself reads still needs a rebuild: ask for one after the change.

    A website made only of files (a static site) gets them too: the container serving it loads .env from the project folder when it starts, so a rebuild keeps them.

    Only the keys you name are changed; the rest are left alone. To see what is set, ask the assistant to list the project's environment variables. Values are hidden in the list.

    If your repository commits its own .env file, the engine leaves that file exactly as committed. Your environment variables go into a separate file, .env.panelalpha. It also holds a generated value for each of the app's own secrets (such as JWT_SECRET or SESSION_SECRET) that your .env.example names and the committed .env leaves out. Each service that loads .env loads this file after it, so your values win.

    Two things do not see your variables: code that reads .env straight from disk, and a build step that reads .env while the site is being built, as Vite and Next.js do. Only the running application's environment has them. If you need a value at build time, either stop committing .env, or make the build read the value from the environment rather than from the file.

    The .env, .env.default and .env.panelalpha files the engine creates in the project folder are readable only by the project's own user. So is a project-folder .env that an app config's files put there. Compose reads them as that user and hands the values to the application.

    A .env the engine creates in a subfolder is readable by every user on the account, secrets included. This covers one made from that folder's .env.example, and one made empty because a compose env_file: names it. The reason is that a Docker image may copy it in and read it as a user other than root.

    No other project can read either kind. A symlink to another project's file does not make the engine read it for a project: detection, inspection and the deploy all refuse a file that a link puts in another project's home. A file that already exists keeps its permissions and is never made more readable, so a subfolder .env you made private stays private.

    If your application refuses to start because a setting is missing or still has a placeholder value, the engine recognises that specifically and says so: Reading errors.

    # A secret of the project's own

    Every project's application is served from /app, the same path on every project on the server. An application that builds a salt, a key or a session name from its own install path therefore builds the same one everywhere. Kirby's content salt and Atheos's session cookie name are two examples.

    So the engine gives every project's application PA_INSTANCE_SECRET: 64 hexadecimal characters, different for every project and the same on every deploy and rebuild of that project. Use it, or a hash of it, where the application would otherwise use its path. In PHP, read it with getenv('PA_INSTANCE_SECRET'). Under Apache it is not in $_SERVER.

    You cannot set it yourself: names starting with PA_ belong to the engine. Three kinds of project do not receive it: services from your own Docker Compose file, apps from the general build (railpack in the log), and websites made only of files. It changes only if the engine's own key changes.

    # Sending mail through the server

    The engine hands a container project's application the server's own mail relay. An application that sends mail does not have to be told an address or reach out to a mail provider. Projects built from a recipe (PHP, Node.js, Python, Ruby and the other detected stacks), from the repository's own Dockerfile and from your own Docker Compose file receive it. Apps from the general build (railpack in the log) and websites served as plain files (static or fallback in the log) do not. The relay is given as two variables:

    • PA_SMTP_HOST is the relay's address. It is the gateway of the network the server's projects run on. The server's mail service listens there, beside its loopback, and an application reaches it from inside the project. The engine reads it from the server when the project is deployed, so it differs between installs. It is not the server's docker0 address or host.docker.internal. Each project has its own Docker inside it, whose own bridge usually takes Docker's default first address, so on most servers that address leads back into the project itself.
    • PA_SMTP_PORT is 25.

    In PHP, read them with getenv('PA_SMTP_HOST') and getenv('PA_SMTP_PORT'). The connection is plain SMTP: no user name, no password, no TLS. It never leaves the server.

    A project deployed from your own Docker Compose file receives both in .env.panelalpha, which the engine's app service loads after .env, so a value of either name in your own .env or in the project's environment variables does not replace it. Names starting with PA_ belong to the engine here too.

    The address is only the relay. Whether the message arrives is decided by the outgoing-mail settings: the smarthost or relay configured for the server, and the sender domain's SPF, DKIM and DMARC records. Mail a domain has no records for is refused, bounced or filed as spam by the receiver.

    The relay decides which sender address leaves. A message whose sender address is at a domain this project owns, one of its domains or aliases, leaves unchanged. The envelope sender and the From:, Reply-To: and Sender: headers all keep that address, and the display name in front of it.

    Adding a domain to a project checks only how the name is written. So the relay keeps a domain only when the engine can show it is this server's, which is the case when one of these holds:

    • it is below the server's sites base domain or its own name (cert_domain, else its .panelalpha.direct name);
    • a tunnel of the project holds it (the only way a panelalpha.online name counts);
    • its A or AAAA record names one of this server's addresses.

    The engine checks every minute and asks DNS about a domain at most every 10 minutes. A domain whose DNS was pointed here a moment ago keeps its sender within about 10 minutes, and one pointed away loses it as quickly.

    Any other sender address is replaced by the same mailbox name at the server's own sending name. That name is the sender domain set in the server's mail settings, else the name the server's own certificate is issued for, else the address-derived .panelalpha.direct name of the server. A server with none of the three sends as panelalpha-sender.invalid, a reserved name no receiver accepts, and never as the mail service's internal host name. A project cannot send as another project's domain, as a domain nobody here serves or as someone else's domain it added without pointing it here, so a receiver is never asked to verify a domain that is not this server's.

    The receiver still checks three things that the engine does not provide: an SPF record for that sending domain that names this server's address or the relay's, a DKIM signature from this server or its relay, and a reverse DNS name (PTR) on the address the message leaves from. Publish SPF, DKIM and DMARC for every domain a project sends as, as the mail DNS records describes, and give the server's own address a PTR that names it. Without them, the message leaves with a sender that exists and resolves, and a receiver may still refuse it or file it as spam.

    A project on traditional PHP hosting receives no environment from the engine, so it cannot read these two: its PHP's own mail() (and anything else using sendmail) already goes through the same relay from inside the account.

    # Limits

    Every project has plan limits: disk, memory, CPU, bandwidth and how many databases, FTP accounts, subdomains and domains it may have.

    The bandwidth limit is reported, not enforced. The engine measures each project's transfer every hour and shows this month's total against the limit (bandwidth.usage against bandwidth.maximum in the project's usage). A project that goes past it keeps serving: nothing slows it down, suspends it or sends a warning. If going over should have consequences, the software that sells the plan has to read the usage and act on it.

    Show this project's limits. Raise its memory limit to 2048 MB and rebuild.
    

    -1 means unlimited. Every limit except memory takes -1 for unlimited, a number of 0 or more, or nothing (null), which means no limit was set. The engine refuses any other negative number. It stores and answers -1 as it is: an unlimited project reports disk.limit_bytes: -1, and its usage reports -1 as the maximum. pae project:limit:get prints "no limit" for both. An unlimited CPU or disk I/O limit is left out of the project's container settings.

    The rebuild is not optional. The new limit is written into the running application when it is deployed, so changing the number without rebuilding changes nothing you can see.

    On a traditional PHP project, the rebuild recreates the site's container when a limit changed. The site does not answer for a few seconds while the new container starts. A rebuild with no change does not restart the site.

    A container project's CPU limit applies at once. It is put on the running project without a rebuild, and removing it gives the running project every CPU of the server again. When the engine's root broker cannot change the running project, the limit is still saved and applies the next time the project's container is recreated. The answer says so. A limit changed before 2.3.0 may never have reached the running project. pae project:cpu-limit:apply --all applies it, and the update runs that command.

    Every project has a memory limit. The minimum is 6 MB, the least Docker starts a container with. For a container project the minimum is 256 MB, because its account runs its own Docker. In measurements, that Docker was stopped for lack of memory at 112 MB and barely ran a small static site at 128 MB.

    The maximum for a project is the server's RAM less what is kept for the engine, 512 MB by default. On a 4 GB server that is about 3.3 GB. A project created without a limit gets exactly that maximum. How much memory is free at the moment does not matter: the engine does not refuse a project because others are using memory, so projects together can be given more than the server has. Ask for the server's current metrics to see the numbers. They are under memory_budget.

    To keep more for the engine, or for other things the server runs, set DEPLOY_ENGINE_MEMORY (in MB) in the engine's environment; that lowers the maximum for every project. DEPLOY_PROJECT_MEMORY_DEFAULT gives projects created without a limit a smaller default.

    The application gets a little less than the number you set. The project itself needs some memory to keep running, so a 2048 MB limit leaves the application with about 1792 MB. That is expected. A compose file that gives a service more (mem_limit, mem_reservation or deploy.resources) is lowered to that figure. A size set through a variable (${APP_MEMORY:-8g}) is lowered only when every value the variable can take from .env, .env.example or the project's environment variables is larger.

    Memory limits are the ones that bite. A build that runs out of memory fails with a message that looks like a code problem but is not: Reading errors.

    A build gets the server's build memory, not the whole server. When DEPLOY_BUILD_MEMORY in .env-core is left empty, the default, a build gets 8192 MB. Whether it is set or not, a build never gets more than half the server's RAM, and never more than the server's RAM less DEPLOY_ENGINE_MEMORY (512 MB by default). Setting DEPLOY_BUILD_MEMORY fixes the figure for every build on the server, up to that ceiling. Whatever the figure, if memory runs out while a build runs, the kernel stops the build first, before the application.

    Frontend assets, Java, Rust and PHP dependencies are often built on the server, in a separate build container, before the application starts. That build does not use the project's memory limit: it gets the build memory above, and only one such build runs at a time. The deploy log states the figure, and where it came from, in a line starting Host build container memory.

    The image a project builds itself, from its Dockerfile, its compose file or an automatic build, is built inside the project. It gets the same build memory, but never more than the project's own memory limit. The deploy log states the figure in a line starting Image build memory.

    If a build runs out of memory, raise the project's memory limit when that is the lower of the two, otherwise raise DEPLOY_BUILD_MEMORY (it helps up to that ceiling), or deploy on a server with more RAM.

    # Cron jobs

    Scheduled commands that belong to the application, such as clearing a cache, sending a digest or running a queue worker.

    List the cron jobs on this project.
    Create one that runs /usr/bin/php /home/tshop/script.php every hour, on the hour.
    

    On a project deployed into its own container (from a repository or an archive), each cron job runs in one of the project's services, so name the service as well:

    Every five minutes, run php artisan schedule:run in the app service of this project.
    

    The command runs in that service's running container, as that container's own user and in its own working directory, so it sees the application's files and environment. A job never overlaps itself: while a run is still going, the next one is skipped. If the service is not running when a job is due, that run is skipped too. Every run, and every skipped one, is written to ~/.panelalpha/cron/cron.log in the project's home, together with the command's output. The schedule is in UTC.

    On traditional PHP hosting the job runs inside the project's own container, as the project's own user and in its home directory, so it sees the project's files. Its output goes to the same log: every run is appended to ~/.panelalpha/cron/cron.log in the project's home, with the time it started and the status it exited with. Read it in the panel's file manager, in .panelalpha/cron in the project's home. It holds both streams of the run.

    Nothing is mailed there. Cron would send a failing job's output to the bare account name, which the mail server refuses, so the engine turns that mail off. The log is where a job that produced nothing on the site explains itself.

    A command never overlaps itself: while a run is still going, the next is skipped and the log says so. Two jobs with the same command count as one here, even on different schedules.

    A command can be up to 640 bytes. On traditional PHP hosting, a job written before the engine logged its runs may have a longer command. It keeps running as it did, but its runs are not logged. A container project has no cron jobs until its first deploy has run, and the engine refuses a job asked for before that. The log rolls over at 1 MB.

    On traditional PHP hosting, write a % in a command as it is: the engine writes it so cron does not read it as a line break.

    Describe the schedule in plain words and the assistant will work out the timing for you. If the assistant cannot manage cron jobs, see Decide what the assistant may do.

    This is not a backup schedule. Backups have their own schedule, set per project. See Backups.

    # Troubleshooting

    "That name is taken" when creating a project. The domain you specified is already in use, or is not allowed. Leave the domain out and let the engine assign a name, then attach your domain afterwards: Looking after your project.

    A project name is refused although the project is gone. An account, a home folder, a project folder or a container from an earlier create or delete still holds the name, and the refusal names which. pae project:orphan:list shows each such name, and pae project:orphan:delete <name> --force frees it. It leaves alone anything the engine did not make.

    "Project already has a staging." One staging copy per project. Push to the existing pair, or delete the existing staging copy first.

    "Project is busy". A staging copy or a push is already running on this project. Wait for it to finish and try again.

    "A copy of it needs its own databases" (wordpress_copy_needs_databases). You asked for a staging copy or a clone of a WordPress site on a traditional PHP project without its databases. Without them the copy would use the live site's database. Ask again with the databases.

    "There is more than one WordPress below ..." or "... is loaded by no WordPress" (wordpress_install_unclear). The engine could not tell which WordPress on the traditional PHP project to point at its own database: there are several up to three folders below the document root, or a wp-config.php there belongs to none of them. Move each extra WordPress into a project of its own, or remove the wp-config.php no site uses, then ask again.

    "The copy of ... holds no wp-config.php of its WordPress". The engine points a WordPress copy at the databases copied for it by rewriting that WordPress's wp-config.php, which it finds in the project's WordPress directory, a subdirectory included. It found none in the copy, so the copy was stopped rather than left on the live site's database. Check that the copied project's WordPress directory holds wp-config.php, then make the copy again.

    I cloned a project and the site cannot reach its database. A clone of a container project does not copy MySQL databases. Create the database and user on the clone, then update its environment variables to point at the new one: Databases. A traditional PHP project is copied with its databases, unless you asked for them to be left out. The copy has new database names and passwords, so a site that stores the old ones in its own files needs them updated.

    A push fails with "the copied home holds a symbolic link at its top level". The top level of a project's home holds only what the engine puts there, and the engine never puts a link there. A link at that level of the pushed project is refused before anything on the other side is replaced. Remove the named link from /home/<project>/ on the server, then push again.

    My staging copy or clone starts with an empty database. The database kept its data in an anonymous volume, which a copy leaves out; the copy's warnings name it. Give that service a named volume in your compose file (for example db_data:/var/lib/mysql). The redeploy starts it on that new, empty volume, so export the data first and import it afterwards. Then make the copy again.

    A push or a delete is refused with "project_protected". The project is protected. Turn it off on the server, then ask again: Protecting.

    I changed an environment variable and nothing happened. The application reads that value while it is being built, so it needs a rebuild. See Environment variables.

    I raised the memory limit and the application still runs out. You did not rebuild, or the application needs more than the limit you set. See Limits. The application gets a little less than the number you chose. If it is the build that runs out, check the deploy log for Host build container memory or Image build memory: they say how much the build was given and why. See Limits.

    The assistant says stored secrets cannot be decoded. Ask the assistant to list the affected secrets and check the engine's system information. The engine's encryption key, APP_KEY in /opt/panelalpha/shared-hosting/.env-core, may be invalid or may have changed since the secrets were stored. The project's environment variables, Git token, Cloudflare token, registry login or site password then read as empty. The next save of the project, a redeploy included, stores them empty. Put the previous APP_KEY back before you change or redeploy the project. If you no longer have it, ask the assistant to set each named secret again. The application's database password is the exception. The engine keeps it and refuses deploys until it can read it, because a new one would lock the application out of its own database.

    # More requests to try

    Mode is the lowest permission mode that allows it: read, modify or full (Decide what the assistant may do). Examples assume a project named tshop.

    What is on this engine

    List the projects on this engine, with their domain names. Then give me the
    short summary view of the same thing.
    

    Mode: read. Tools: project_list (with per_page), project_list_all (with with_domain_names), project_list_summary. Check: the three views agree on the set of projects, and the paged one is paged.

    One project in full

    Show everything about project tshop: domain, template, limits, deploy status.
    

    Mode: read. Tools: project_get. Check: the domain, the template and the deployment status match what domain_list and deploy_log_get say.

    Change a limit and make it real

    Show tshop's limits. Raise its memory limit to 2048 MB, its FTP accounts to 3
    and its databases to 2, then rebuild.
    

    Mode: modify. Tools: project_get, project_update, project_rebuild, task_get. Check: the new numbers read back from project_get, the rebuild completes and a value above the server's maximum is refused.

    Usage against limits

    How close is tshop to its limits this month? Include transfer.
    

    Mode: read. Tools: project_usage. Check: bandwidth.usage against bandwidth.maximum (-1 means unlimited, null means no limit was set), and the log disk use is shown.

    Offline and back

    Suspend tshop. Check that the site no longer opens. Then unsuspend it.
    

    Mode: modify. Tools: project_suspend, project_unsuspend, project_get. Check: nothing is deleted, the project reads suspended and after the unsuspend the site opens again.

    Site password

    Put the password ShopTest-2026 on tshop. Check that the site asks for it.
    Then remove it.
    

    Mode: modify to set it, full to remove it. Tools: project_password_set, project_password_unset. Check: while set, an anonymous request to the site is refused and the page says "This site is password protected." After the removal it opens without a prompt. The password is not repeated in the assistant's answer.

    Banner on every site

    Put a fixed banner reading "Maintenance tonight at 22:00" at the bottom of every site.
    Then hide it on tshop and give tshop its own "Staging copy" banner.
    

    Mode: modify. Tools: system_overlay_set, project_overlay_set, project_overlay_get. Check: a page of another project shows the maintenance banner directly before </body>, a page of tshop shows only its own and project_overlay_get reads show_global: false. Remove them with project_overlay_delete and system_overlay_delete (mode: full).

    Settings of a project

    List the settings of tshop, read one, change it, then clear it.
    

    Mode: full. Tools: project_setting_list, project_setting_get, project_setting_set, project_setting_delete. Check: a secret value comes back redacted, and the list says whether a value is present. Clearing a Cloudflare token while tunnels exist is refused unless forced: Cloudflare.

    Generated login

    What is the admin login for tshop?
    

    Mode: modify (held back in readonly). Tools: app_credentials_get. Check: the answer has the sign-in address, the username and the password or says the application declares none. In readonly mode the tool is not offered.

    Environment variables without a rebuild

    Show the environment variables of tshop, then set APP_DEBUG to false.
    

    Mode: modify. Tools: env_var_list, env_var_set, task_get. Check: the list hides the values, the change finishes as a task without a rebuild, and the new value reads back. The same request on a traditional PHP project is refused.

    Clone

    Clone tshop as tshopcopy. List what was not copied.
    

    Mode: modify. Tools: project_clone, project_get, domain_list, mysql_database_list, ftp_account_list. Check: the copy has the same limits and files, a staging-style domain (a new panelalpha.online name when the source has one), and no subdomains or FTP or SFTP accounts. A traditional PHP project's databases are copied under the new prefix with new users; a container project's are not.

    Staging and back

    Make a staging copy of tshop called tshopstage. When it is ready, push staging
    live. Later, push live back to staging.
    

    Mode: modify. Tools: project_staging, project_get (until the staging copy is completed), project_push with target, project_get (until the push is completed). Check: the pair is linked, a second staging copy of the same project is refused, and a push while another runs is answered "busy".

    Staging and push with databases

    On the traditional PHP project tphpsite, make a staging copy called tphpstage
    with its databases. Then push only the files from live to staging, and then
    only the databases.
    

    Mode: modify. Tools: project_staging with copy_databases, mysql_database_list, project_push with files and databases. Check: the copy lists databases under its own prefix, the pushed side keeps its own database users, and a push with both files and databases off is refused as "nothing to push".

    Push only some tables

    On tphpsite, list the database tables that differ from tphpstage, then push
    only the changed tables to staging.
    

    Mode: read for the first part, modify for the push. Tools: project_push_diff, project_push with tables. Check: the list names the differing tables, each one sent to project_push with its database and name, only those are replaced and a container project is refused. After a full database push on a WordPress site the diff may still list tables, because the other side keeps its own site address.

    A protected project

    Delete tshop. Then turn protection on tshop off.
    

    Mode: full. Tools: project_delete, project_setting_set. Check: with pae project:settings:set protected on --project=tshop run on the server first, the delete, a rebuild or a stop sent by the assistant is refused as project_protected, and the assistant cannot turn protection off.

    Name checks

    Create a project called x with no repository.
    

    Mode: modify. Tools: project_verify_name, project_create. Check: a too-short name is refused with the rule (3 to 15 lowercase letters and digits, starting with a letter), and nothing is created.

    Cron jobs

    On the traditional PHP project tphpsite, list the cron jobs, add one that runs
    /usr/bin/php /home/tphpsite/cron.php every hour on the hour, change it to every
    30 minutes, then delete it.
    

    Mode: full. Tools: cron_job_list, cron_job_create, cron_job_update, cron_job_delete. Check: the job is addressed by its hash, and the schedule reads back as asked.

    Cron jobs in a container project

    On the container project tshop, add a cron job that runs date every minute in
    its app service, show me what it wrote after two minutes, then delete it.
    

    Mode: full. Tools: container_list, cron_job_create, cron_job_list, file_download, cron_job_delete. Check: the job lists with service: app, ~/.panelalpha/cron/cron.log in the project's home shows a start and an exit 0 line for it, and a job without a service is refused with the reason.

    Create from an archive address

    Create a project called tarch from the archive at https://github.com/FreshRSS/FreshRSS/archive/refs/heads/edge.zip. Follow the deploy and open the site.
    

    Mode: modify. Tools: project_create with an archive source and url, task_get. Check: the project is created as a container project, the deploy completes and the site answers.

    Create from git over SSH with a deploy key

    Create a project called tapp from [email protected]:team/app.git. Make a deploy
    key first and show me the public half. I will add it to the repository, then you
    create the project.
    

    Mode: modify. Tools: vault_deploy_key_create, project_create with a git source and a deploy key. Check: the assistant shows only the public key and waits for you, the private half is never printed and an SSH address without a deploy key is refused with the reason. Skip when you have no repository that takes a deploy key.

    Upload an archive first

    Upload the archive https://github.com/FreshRSS/FreshRSS/archive/refs/heads/edge.zip
    to the engine without creating a project yet. Show me when the upload expires,
    then delete it.
    

    Mode: modify for the upload, full for the delete. Tools: upload_create, upload_get, upload_delete. Check: the upload reads back with its file name and an expiry about 24 hours away, and after the delete upload_get finds nothing.

    Copy a project in one request

    Create tcopy as a copy of tshop, without its databases.
    

    Mode: modify. Tools: project_create with a project source, task_get. Check: the copy runs in the background and finishes as a task, and the copy has the files and limits of tshop.

    WordPress in one request

    Create a WordPress site called tblog on traditional PHP hosting, titled "Test
    blog", with administrator [email protected]. Choose a strong password for the
    administrator and tell me it once.
    

    Mode: modify. Tools: project_create with a WordPress source, task_get. Check: the site opens and the administrator can sign in with that password.

    Give an empty project its code

    Create an empty project called tempty. Then use the archive at
    https://github.com/FreshRSS/FreshRSS/archive/refs/heads/edge.zip as its source.
    

    Mode: modify. Tools: project_create, project_source_set, task_get. Check: the empty project is a container project and the archive is deployed into it.

    A cron job in a service, refused before the first deploy

    On the empty container project tempty, add a cron job that runs date every minute.
    

    Mode: modify. Tools: cron_job_create. Check: the job is refused, with the reason that the project has not been deployed yet.

    Staging and delete order

    Make a staging copy of tshop. Then try to delete tshop.
    

    Mode: full. Tools: project_staging, project_delete. Check: the delete of the live project is refused and says to delete the staging copy first; deleting the staging copy and then tshop works.

    Delete

    Delete the project tshopcopy and everything in it.
    

    Mode: full. Tools: project_delete, project_list. Check: the assistant states that there is no undo and asks first. The project is gone from the list and its address no longer answers.

    # From the server

    Most of this is available as a pae command: CLI commands.