• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

" '--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