Good day,
I've added sury.org repo, and installed PHP 7.4 & 7.3. Plesk automatically displayed PHP 7.4 by OS vendor, it works perfectly. PHP 7.3 did not automatically populate.
I added it via CLI:
/usr/local/psa/bin/php_handler --add -displayname 7.3lts -path /usr/bin/php-cgi7.3 -phpini /etc/php/7.3/fpm/php.ini -type fpm -clipath /usr/bin/php7.3 -poold /etc/php/7.3/fpm/pool.d -service php7.3-fpm
Now it appears as an available PHP version. However when I go to set it for a site, I get the error:
---
Any help would be wonderful.
Thanks in advance, Dave
I've added sury.org repo, and installed PHP 7.4 & 7.3. Plesk automatically displayed PHP 7.4 by OS vendor, it works perfectly. PHP 7.3 did not automatically populate.
I added it via CLI:
/usr/local/psa/bin/php_handler --add -displayname 7.3lts -path /usr/bin/php-cgi7.3 -phpini /etc/php/7.3/fpm/php.ini -type fpm -clipath /usr/bin/php7.3 -poold /etc/php/7.3/fpm/pool.d -service php7.3-fpm
Now it appears as an available PHP version. However when I go to set it for a site, I get the error:
Code:
Error: phpinimng failed: configuration test '/usr/bin/php-cgi7.3 --test' failed with code 1, and message:
Error in argument 1, char 1: no argument for option -
Usage: php-cgi7.3 [-q] [-h] [-s] [-v] [-i] [-f <file>]
php-cgi7.3 <file> [args...]
-a Run interactively
-b <address:port>|<port> Bind Path for external FASTCGI Server mode
-C Do not chdir to the script's directory
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-f <file> Parse <file>. Implies `-q'
-h This help
-i PHP information
-l Syntax check only (lint)
-m Show compiled in modules
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-v Version number
-w Display source with stripped comments and whitespace.
-z <file> Load Zend extension <file>.
-T <count> Measure execution time of script repeated <count> times.
---
Any help would be wonderful.
Thanks in advance, Dave