PHP and static sites
PHP and Static websites run your own code instead of WordPress. Create a server of that type first, then add websites to it.
PHP websites
Section titled “PHP websites”A PHP website runs your PHP application on the server’s PHP, behind Nginx.
- Database: optional. When you add the website, Create a MySQL-compatible database (MariaDB) is ticked; untick it if you don’t need one. Its name, user and password are shown under Databases. A website created without a database has no Databases section.
- Starting point: a placeholder page.
index.phpis served first. - Web server: Nginx only, so
.htaccessfiles are ignored. Set redirects under Redirects. - PHP settings: choose the PHP version and limits under PHP. See PHP settings.
Static websites
Section titled “Static websites”A static website is HTML, CSS, JavaScript and other files, served directly by Nginx.
- No PHP and no database. The website has no PHP or Databases section.
- Starting point: a placeholder page.
index.htmlis served first. - Web server: Nginx serves the files on either web server, so
.htaccessfiles are not read.
Put your code on the website
Section titled “Put your code on the website”You have three ways to replace the placeholder:
- Upload with SFTP using the website’s login under SSH / SFTP. Your files go in
htdocs, the website’s web root. - Use the file manager to upload, edit and unpack files in the browser.
- Deploy from Git under Deployments. See Deploy from Git. A PHP website can use the PHP or Laravel preset, and a static website the Static preset. The PHP and Static presets run no build commands. For a site that needs one, add build commands such as
composer installornpm ciandnpm run build, and set the Publish directory to the folder to serve, such aspublicordist. Node.js is available to the build when a build command usesnpm,npxornode.
What is not available yet
Section titled “What is not available yet”Staging, cloning, moving to another server and import and export are WordPress-only for now. Backups work as for every website.