===PHP versions and their FPM/CLI/Cron usage===
Under N99panel multiple PHP versions are available. There are three ways PHP is used\\
– FPM (via browser)\\
– CLI (Command Line Interface)\\
– Cron daemon
PHP usage via FPM is handled from within N99panel interface. Each VHost/Website under N99panel can have its own PHP version
When using **PHP CLI via SSH**, ‘[[:gen:enable_full_sshd|Full SSHD flavor]]’ needs to be enabled for the respective user under ‘Manage SSHd/Crond’. Following points/info be considered\\
Multiple PHP versions as accessible via
php70
php71
php72
php73
php74
php80
php81
php82
The default PHP version accessed via php command is PHP 7.4\\
Multiple corresponding composer versions are accessible via
compose70
composer71
composer72
composer73
composer74
composer80
composer81
To use **composer with PHP 8.2**, please use the following command to access composer
php82 /usr/local/bin/composer
When using PHP with Cron daemon or cronjobs, ‘[[:gen:enable_full_sshd|Full SSHD flavor]]’ needs to be enabled along with CronD for the respective user under ‘Manage SSHD/Crond’. For running cronjobs, your can refer to - [[:gen:enable-cron|Enabling Cron Jobs]]
Under cron, Multiple PHP versions are accessible using full paths of php executables as under\\
/usr/bin/php70
/usr/bin/php71
/usr/bin/php72
/usr/bin/php73
/usr/bin/php74
/usr/bin/php80
/usr/bin/php81
/usr/bin/php82
Multiple corresponding composer versions are accessible as under :
/usr/bin/php70 /usr/local/bin/composer
/usr/bin/php71 /usr/local/bin/composer
/usr/bin/php72 /usr/local/bin/composer
/usr/bin/php73 /usr/local/bin/composer
/usr/bin/php74 /usr/local/bin/composer
/usr/bin/php80 /usr/local/bin/composer
/usr/bin/php81 /usr/local/bin/composer
/usr/bin/php82 /usr/local/bin/composer
A typical cron job may look like
*/15 * * * * /usr/bin/php80 /home/user/vhost_public_html/phpscript.php
The above cron will execute the above script every 15 min. Please note that cron jobs under N99panel word as per UTC time zone.
If you require a custom PHP extension, please let us know so that we can make it available for you.