• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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