• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue php pecl install - phpize failed: Cannot find autoconf

jsonmson

New Pleskian
Hi,

I am trying to install memcached but I can't get it working.
This notice is not only for memcached but noticed on any module I am trying to install via /opt/plesk/php/7.4/bin/pecl

OS: ‪Ubuntu 18.04.4 LTS‬
Product: Plesk Obsidian 18.0.27
PHP Version: 7.4.6

running: phpize
Configuring for:
PHP Api Version: 20190902
Zend Module Api No: 20190902
Zend Extension Api No: 320190902
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

ERROR: `phpize' failed

Already tried:
# apt install autoconf automake gcc libmemcached-dev libhashkit-dev pkg-config plesk-php74-dev zlib1g-dev
# mv /usr/bin/autoconf{,.bkp}
# ln -s /usr/bin/autoconf268 /usr/bin/autoconf
# journalctl -u plesk-php74-fpm (looks fine)

# /opt/plesk/php/7.4/include/php# /opt/plesk/php/7.4/bin/phpize -v
Configuring for:
PHP Api Version: 20190902
Zend Module Api No: 20190902
Zend Extension Api No: 320190902

Things i've read and tried:


Hope someone knows how to solve this problem :D
 
Why you replace default autoconf with something else?
In CentOS 7 I have compiled it without any problems with

# yum install gcc make plesk-php74-devel libmemcached libmemcached-devel
# /opt/plesk/php/7.4/bin/pecl install memcached

There is OS vendor's autoconf:

# rpm -qf /usr/bin/autoconf
autoconf-2.69-11.el7.noarch
 
I am not sure how that happened?
Its already giving the autoconf notice from the start I try to install memcached.
What I did is reading everything on the forum and just tried solutions given by others.

# apt-get update && apt-get install gcc make autoconf
autoconf is already the newest version (2.69-11).
make is already the newest version (4.1-9.1ubuntu1).
gcc is already the newest version (4:7.4.0-1ubuntu2.3).

# whereis autoconf
autoconf: /usr/bin/autoconf /usr/bin/autoconf.bkp /usr/local/bin/autoconf /usr/share/autoconf /usr/share/man/man1/autoconf.1.gz

# echo $PHP_AUTOCONF
:/usr/bin/autoconf

Still gives the notice:
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
 
Try to install complete Development Tools with

# apt-get install build-essential
 
It's already installed, tried to reinstall it, but still the same with autoconf.

Just tried on another server with same specs and clean install of plesk there installed it succesfully.

I think it might have gone wrong since I did these steps:
# mv /usr/bin/autoconf{,.bkp}
# ln -s /usr/bin/autoconf268 /usr/bin/autoconf
# mv /usr/bin/autom4te{,.bkp}
# ln -s /usr/bin/autom4te268 /usr/bin/autom4te

Which are noted in this post:

Not sure how to undo these steps for as far as I already tried.
 
Back
Top