• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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