このページはまだ翻訳されていません。英語版を表示しています。
ドキュメントに戻る
デプロイ

Static and PHP Sites Without Git

Deploy a static site on Nginx or a PHP 8.3 site on Apache with no repository and no build step, then edit the files in place.

Beginner5 min readUpdated 2026-09-09

When to use these templates

A landing page, a brochure site, or a small legacy PHP script does not need a Git repository, a deploy key and a Dockerfile. The Static Site and PHP Site templates put the files on the server and let you edit them in place.

  • Static Site — HTML, CSS and JavaScript served by Nginx
  • PHP Site — PHP 8.3 running on Apache

Both give you an editable document root, and neither requires a build step.

Deploy the site

  1. Open the server's Apps tab and start the Stack Wizard
  2. Choose Static Site or PHP Site from the templates
  3. Name the app and set the host port
  4. Deploy

Server Compass writes a compose file — nginx:alpine or php:8.3-apache — and mounts a local public directory as the container's document root.

Confirm it is running

The deploy leaves a starter page rather than an empty 403. Open the app URL and you will see the live PHP version and the resolved document root, which confirms the stack is working before you upload anything on top of it.

Replace the starter page

  1. Open the app's Overview tab
  2. Find the Site content card — Edit or upload files in the deployed public directory
  3. Choose Edit site content

That opens the file manager already scoped to the document root. From there you can edit index.php or index.html in place, use Upload Files or Upload Folder, or drag a local build output onto the drop target.

Redeploys keep your files

The starter page is written only when the document root is empty. Once your own files are in place, a redeploy brings the container back up around them and leaves the contents alone.

You can restart the app, change its port, or move it between groups without your site being overwritten.

Add a domain and HTTPS

Attach a domain to the app exactly as you would for any other Server Compass app — see Adding a Domain and SSL Certificates. The certificate is issued and renewed for you.

Screenshots

Static and PHP Sites Without Git - Screenshot 1
Static and PHP Sites Without Git - Screenshot 2
Static and PHP Sites Without Git - Screenshot 3

Frequently Asked Questions

Will a redeploy overwrite my site?

No. The starter page is only written when the document root is empty, so once your own files are there a redeploy leaves them alone.

Which PHP version runs?

PHP 8.3 on Apache, from the official php:8.3-apache image. The starter page prints the exact patch version.

Can I use a static site generator?

Yes. Build locally, then drag the output folder onto the file manager drop target. No CI step is involved.

Related Features

Ready to try Server Compass?

Download the app and deploy your first application in under 5 minutes.

Download Server Compass