• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Custom PHP Handler : A bytes-like object is required, not str

decanet

Basic Pleskian
Server operating system version
Debian 10
Plesk version and microupdate number
18.0.46.1
Hi,

I've tried to add a custom PHP Handler (PHP 7.0 on Debian 10 with Plesk 18.0.46.1)

Code:
plesk bin php_handler --add -displayname "7.0.33" -path /opt/php/7.0.33/sbin/php-fpm -clipath /opt/php/7.0.33/bin/php -phpini /opt/php/7.0.33/etc/php.ini -type fpm -service php70-fpm -poold /opt/php/7.0.33/etc/pool.d -id php70-fpm

PHP Handler has been successfully added and PHP-FPM service is started.

When I try to select the handler in Plesk subscription PHP settings, I've this error:

phpinimng failed: a bytes-like object is required, not 'str'<br><a href='?metaId=5e88d2f22f8c84e78d45fe552e5af4e5&messageId=bfa9610bcc830624b7e7265b25f1e789&file=Agent.php&line=196&type=PleskUtilException&version=18.0.46&message=phpinimng+failed%3A+a+bytes-like+object+is+required%2C+not+%27str%27' target='_blank'>Search for related Knowledge Base articles</a>

Do you have an idea about what's wrong and what I need to test to fix it?
I've seen this thread : Issue - plesk repair fs shows error: ERROR:a bytes-like object is required, not 'str' but not sure this is the same bug.

Thanks
Benjamin
 
OK I wasn't sure, PPPM-13691 is about fs repair tool, but yes, I've the same result.
Thank you for your help :)
 
Back
Top