• 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.

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