Unable to install WordPress using Plesk WordPress Toolkit on CloudLinux : Call to undefined function json_encode()




  • Avatar
    Unknown User

    Need to ensure cagefs is updated / restart your alt-php service or you may experience a post install issue of WordPress saying the mysql extension is missing


    cagefsctl --force-update-etc
    cagefsctl --force-update
    cagefsctl --rebuild-alt-php-ini
    service alt-php71-fpm restart

  • Avatar
    Lars-Erik H.Bergland

    You dont need to log in to ssh, you can go to Tools & Settings > PHP Settings and enable mbstring, json and mysqli there :)

  • Avatar
    Ivan Postnikov

    Hello @Lars-Erik,

    Thank you for notice.

    This article's author will review it soon.

  • Avatar

    Do you have some resolution for CloudLinux 6?


  • Avatar
    Denis Bykov


    We have yet to encounter this issue on CloudLinux 6, but the same logic must apply - enable required PHP extensions.
    If the issue still persists, provide us with the new error message from '/var/log/plesk/panel.log'.

Please sign in to leave a comment.

Have more questions? Submit a request