FastPanel: PHP version and settings

In the examples 203.0.113.10 is your server address and my-site.com is your domain. The panel address, login and password are in the VPS activation e-mail.

PHP modes

ModeWhen to choose
Apache moduleOne system PHP version. .htaccess works.
FastCGIAny PHP version. .htaccess works. Fits most cases.
PHP-FPMAny version, faster. .htaccess does not work — rules go into nginx.
CGIFallback.

Change the version

  1. Site card → "Settings" → backend.
  2. Mode: FastCGI or PHP-FPM. PHP version: the one you need.
  3. Click "Save".

PHP 5.3–8.5 is installed on the server. A new site is created on a recent version. An old site (WordPress, OpenCart of past years) often works only on PHP 7.4 — if you get a blank page or a 500 error after moving, lower the version.

Site settings → backend: PHP mode and version
Site settings → backend: PHP mode and version

Site php.ini settings

Site card → "PHP settings". Useful parameters: memory_limit, upload_max_filesize, post_max_size, max_execution_time.

A heavy site (WooCommerce, a large catalog) that sometimes opens and sometimes returns 500 almost always lacks memory. Raise memory_limit to 512M.

Site PHP settings
Site PHP settings

PHP in cron

Use the full path to the version: /opt/php83/bin/php /var/www/<user>/data/www/my-site.com/cron.php.