• 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!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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