Articles in this section

Can't install PHP modules in Plesk: /usr/bin/sed: not found

Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux

Symptoms

The installation of PHP modules like memcached or APCu fails

running: phpize
/opt/plesk/php/7.4/bin/phpize: line 61: /usr/bin/sed: No such file or directory
grep: write error: Broken pipe
/opt/plesk/php/7.4/bin/phpize: line 62: /usr/bin/sed: No such file or directory
grep: write error: Broken pipe
/opt/plesk/php/7.4/bin/phpize: line 63: /usr/bin/sed: No such file or directory
grep: write error: Broken pipe
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
/opt/plesk/php/7.4/bin/phpize: line 154: /usr/bin/sed: No such file or directory
autoheader: error: AC_CONFIG_HEADERS not found in configure.ac
ERROR: `phpize' failed

Cause

The sed utility, used during the PHP extension installation process, is misconfigured or missing.

Resolution

To fix the problem, reinstall the package.

Note: The package name may differ from the instructions below depending on the operating system

  1. Connect to the server via SSH

  2. Run this command to reinstall sed

    # dnf reinstall sed -y || apt install --reinstall sed -y

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.