• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • 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.

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