Skip to content
🚀 Unlimited+ €3.99/month! Get unlimited credits, auto-renewals, one-click max-out, +5 Discord bot slots, up to 8GB RAM & 200% CPU, +5 email addresses/domain & +2 email domains!
X Systems Hosting
X Systems Hosting
X Systems Help Center

Deploy a PHP website

Use the public document directory and keep framework configuration outside the web root.

Help Center / Web Hosting
On this page
  1. Basic PHP layout
  2. Framework projects
  3. Database connections
  4. Common errors

Basic PHP layout

  1. 1Choose PHP as the website type.
  2. 2Open Files and find public/.
  3. 3Put the public entry file at public/index.php.
  4. 4Upload related public assets into public/.
  5. 5Start the website and test its connected HTTPS address.
public/index.php
<?php
header("Content-Type: text/plain; charset=utf-8");
echo "My PHP website is online";

Framework projects

For frameworks such as Laravel, keep the application files, vendor dependencies and secrets at the project level and expose only the intended public directory. Match the framework’s expected directory structure to the runtime.

Prepare dependencies using a compatible PHP version and the project’s documented Composer workflow. Do not assume that typing composer into the panel Console opens a shell or installs packages. Contact support if the runtime lacks a required extension or deployment capability.

Database connections

Use a database service you are authorized to access and enter its hostname, port, database name and credentials in the application configuration. A database feature is available only if your plan/panel actually exposes it; PHP hosting does not itself guarantee a preconfigured database.

Keep a separate database export when backing up a database-backed application. A file backup alone may not include an external database.

Common errors

  • A raw source-code download is not a healthy PHP response; stop exposing that file and contact support.
  • A 500 error needs the application error details with secrets removed.
  • Check PHP extension and framework-version requirements.
  • Do not make every file world-writable to work around an unrelated configuration error.