HOME » Documents » KUSANAGI 9 Commands » php

php

php

Switches the PHP version. It will also restart the service.

Example

kusanagi php --use php81
kusanagi php

Options

(No options)

Optimizes PHP settings.
Execute this subcommand if you change the instance settings after setting up KUSANAGI.
If "php-fpm" is already running, it will restart "php-fpm".

PHP Version

[--use {installed | php83 | php82 | php81 | php80 | php74}]	
Discontinued options
--use php73 (discontinued as of 9.1.13)

Default: installed

Specifies the PHP version to be used. When one of the following PHP is specified, it will start up.

  • --use installed: currently installed php
  • --use php83: PHP 8.3
  • --use php82: PHP 8.2
  • --use php81: PHP 8.1
  • --use php80: PHP 8.0
  • --use php74: PHP 7.4
  • --use php73 (discontinued as of 9.1.13): PHP 7.3

Reloading Configuration

[--reload]

Reloads configuration without disconnecting the session.

Checking Configuration File

[--test]

Checks the configuration files only.

Displaying Status

[--status]

Displays status of php-fpm.

Output

# kusanagi php
php completed.