Basic PHP layout
- 1Choose PHP as the website type.
- 2Open Files and find public/.
- 3Put the public entry file at public/index.php.
- 4Upload related public assets into public/.
- 5Start the website and test its connected HTTPS address.
<?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.