• 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

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