Apps and runtimes
APOLO runs PHP websites with the PHP version each website chooses, and Node.js, Python and .NET apps as services behind Nginx. This page covers installing the runtimes, running apps, Laravel and Composer, deploying from Git and the website builder.
Installing runtimes
Administrators manage the runtimes under Server → PHP, Node.js, Python and .NET. Each version is installed side by side with the others; websites keep their version when you add another.

PHP versions
- PHP 8.4 and 8.3 come with the installation; older and newer versions can be installed from the list (from the Remi packages, with the common extensions WordPress and Laravel need).
- Each installed version runs its own PHP-FPM service, and each website its own pool as its owner. Websites pick their version under Environment.
- A version no website uses is marked Not used, so you know it can be removed.
- PHP extensions: installed extensions can be turned on per website in Environment; each website loads only the ones it uses.
- PHP settings of a version: Defaults for new websites (the values new websites on this version start with; a website keeps its own values after it is created, unless you choose Also set on existing websites) and php.ini directives every website on the version gets, written before the website's own settings. Only directives that can't weaken the isolation of websites are offered.
The highest values a hosting user may set for their website are under Settings → General (Limits for users), and the functions PHP code may not call under Disabled PHP functions; see PHP settings.
Node.js, Python and .NET
- Node.js versions (the current LTS lines) for Node.js apps.
- Python versions from the distribution's packages, for Flask, Django, FastAPI and other apps.
- .NET: Microsoft's ASP.NET Core runtime (which includes the .NET runtime), downloaded, checked against its SHA-512 and installed in
/opt/apolo/dotnet. The .NET SDK (about 230 MB) is needed only to build apps on the server, for exampledotnet publishin a Git deploy.
Node.js apps
Add a website of type Node.js and choose the version, the Start command (for example npm start or node server.js), the App port and Environment variables (NODE_ENV=production is added for you).
- The app runs in the website's
appfolder as a service of its own, as the website's owner, listening on 127.0.0.1 on its port. APOLO picks a free port; your app should read it from thePORTvariable. - Nginx serves HTTPS and forwards requests to the app; it restarts the app if it crashes. Apps always run behind Nginx, never Apache.
- The website's Environment tab changes the version, the start command, the port and the variables, and has Restart; its Logs show the app's output.
- An account's processes can't take the ports of the server's services or of other accounts' apps (Reserved ports).

Python apps
Like Node.js: choose the Python version, a start command that runs your app in the app folder (for example gunicorn app:app --bind 127.0.0.1:$PORT) and the port. Your app should read the port from the PORT variable. Install its packages over SSH in a virtual environment in the website's folder.
.NET apps
An ASP.NET Core app published with dotnet publish: the start command runs in the app folder, for example dotnet MyApp.dll. APOLO sets ASPNETCORE_URLS, so Kestrel listens on the website's port. The app starts once you upload or deploy it.
Laravel
A Laravel website serves only its public folder, so the rest of the project stays private. When adding it:
- New project, latest version: APOLO creates the Laravel project and its database, writes the database into
.envand runs the migrations. - Your own project, the folder stays empty: upload it or deploy it with Git, then install its packages in Environment → Composer.
The Redis object cache can serve Laravel's cache and sessions (Caching), and Laravel's scheduler runs as a cron job with the website's PHP (Cron jobs).
Composer
Environment → Composer works on the composer.json in the document root or a folder above it, with the website's own PHP version:
- Install packages
composer install: the versions incomposer.lock. Without development packages for production.- Update packages
composer update: the newest versionscomposer.jsonallows, written tocomposer.lock. A live website can break when a package changes, so try it on a staging copy first.- Rebuild the autoloader
composer dump-autoload.
The output appears when it finishes, usually within a few minutes. Composer is installed with APOLO; if it is missing, run the installer again.
Deploy from Git
The Git tab connects a repository on GitHub, GitLab, Bitbucket, Gitea or any Git server. Each deploy puts the files of the branch into the website, then runs your commands.

- Repository: enter its address. An SSH address (
git@github.com:company/site.git) uses this website's own deploy key: Create deploy key, add it to the repository with read access (GitHub: Settings → Deploy keys; GitLab: Settings → Repository → Deploy keys; Bitbucket: Repository settings → Access keys; Gitea: Settings → Deploy keys), then Check access. An HTTPS address works for public repositories, and for private ones with an Access token (stored on the server and never shown again; for Bitbucket the user name isx-token-auth). - Branch and folder: the branch to deploy (for example
main) and the folder of the website that gets the files (for examplepublic_html), optionally with Submodules. - Commands after a deploy: for example
composer install --no-dev,npm ci && npm run buildorphp artisan migrate --force; Use the usual commands for this website fills in the common ones. Restart the app after the deploy for Node.js, Python and .NET apps. - Save and deploy. Then copy the Webhook address (and its Secret) into the repository's webhook settings: with Deploy on every push on, every push to the branch deploys it. The repository's test call shows up under Last call.
- Deploys lists each deploy with its commit, who started it, its state and its log. Deploy this commit again takes the website back to an earlier commit; the next push deploys the newest commit as usual.
- Files in the folder that the repository also has are overwritten; other files stay. With Delete files the repository doesn't have, uploads and other files that aren't in the repository (or its
.gitignore) are deleted at each deploy, so list the folders the website writes to (uploads, cache) in.gitignore. - One deploy runs at a time; another waits for the one before it.
- Turn off Git deploy stops the webhook and removes the deploy key and the copy of the history from the server; the website's files stay as they are.
Static websites
A Static website serves HTML, CSS, JavaScript and images straight from disk with browser caching headers and compression; nothing runs on the server. Upload the files in Files, over SFTP or with Git. A static website can become a PHP website later on its Overview.
Website builder
A Website builder website is designed in the browser by dragging blocks (sections, text, images, buttons, forms), without code, and published as a fast static website. Open the builder from the website's Overview; publishing writes the pages into the website's folder.
If an app doesn't start
- Open the website's Logs → App: the app's own error is there.
- Check that the start command runs in the
appfolder and that the app listens on the port fromPORTon 127.0.0.1 (a 502 error means Nginx gets no answer on that port). - Install the app's packages (
npm ci,pip install) over SSH or in the Git deploy's commands, then Restart. - A stopped or suspended website's app stays stopped; start the website first.
Something missing or unclear? Ask support or report a bug.