• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

" '--add' is not a command" error on registering new php_handler

Michael_Zorn

New Pleskian
This is what I get when I try to register a new PHP handler.
Code:
root@km32511:/usr/local/src/php-5.6.7# /usr/local/psa/bin/php_handler -–add -displayname 5.6.7 -path /usr/local/php567/bin/php-cgi -phpini /usr/local/php567/lib/php.ini -type fastcgi -id fastcgi-5.6.7
'-–add' is not a command

I don't get what I'm doing wrong.

Even
Code:
/usr/local/psa/bin/php_handler -–add

returns the same error.

OS Ubuntu 12.04.5 LTS
Plesk version 12.0.18 Update #39, last updated at Mar 27, 2015 07:51 AM
 
Solved my problem by editing /etc/psa/php_versions.json with a texteditor. But
Code:
php_handler --add
still doesn't work on my machine.
 
You have incorrect coding of '--' symbols:

8017926.png

Just replace it with correct --add
 
Back
Top