Skip to content

PHP sites

Host PHP applications on a per-site PHP-FPM version.

Who can use this page? Site Manager to create; assigned users with access can work in files and linked resources.

Choose PHP

On Create a site, select PHP and a PHP version (8.5, 8.4, 8.3, 8.2, older available for existing sites).

Each site’s Nginx vhost points at the matching FPM upstream — versions are independent per site.

Document root

Default document root is under the site path (commonly /var/www/<domain>/public). Upload application code there via File Manager or SFTP.

Upload a PHP application

  1. Create the site and choose a PHP version compatible with your application.
  2. Upload its files through File Manager or SFTP. The panel's Git Deployment flow currently supports Node.js, Python, and Dockerfile apps.
  3. Create and link a database if the application needs one, then configure its database connection.
  4. Set required environment variables and follow the application's installation steps.
  5. Make only the directories the application needs writable. Do not use blanket 777 permissions.
  6. Issue SSL, then visit the domain and complete the application's installer if it has one.

For Laravel and other frameworks with a separate public/ directory, have your site manager configure the document root to expose only that directory. Keep application secrets and non-public source files outside the served directory. Composer installation, migrations, and other framework commands require a suitable shell or support-assisted deployment; they are not provided by the Node app actions.

PHP extensions (all versions)

bcmath calendar exif gd gettext intl mbstring mysqli opcache pdo_mysql pdo_pgsql soap sockets tidy xml zip imagick redis memcached

See PHP versions for pool and ini notes.

Caching

  • FastCGI for full-page cache
  • Redis if the framework supports it
  • Purge after deploys — Cache settings

Promote to WordPress

If the docroot already contains WordPress, the panel may offer Promote to WordPress to enable WordPress tooling without recreating the site.

Customer documentation · Nusite IT Consulting Limited