- Plesk for Linux
- The error similar to below occurs on attempt to use pecl install command:
# /opt/plesk/php/7.1/bin/pecl install memcached
shtool at '/tmp/memcached/build/shtool' does not exist or is not executable.
Make sure that the file exists and is executable and then rerun this script.
ERROR: `phpize' failed
/tmpdirectory is mounted with the
# mount | grep /tmp
tmpfs on /tmp type tmpfs (rw,nosuid,noexec,noatime)
Installation of PHP modules fails because of the
noexec flag on the
/tmp with exec flag with the following command:
# mount -o remount,exec /tmp
If the solution above is not possible, use the following steps:
- Create another temporary directory on the partition that mounted with
# mkdir /root/tmp
- Change temporary directory for pecl with one of the following commands:
# /opt/plesk/php/7.1/bin/pear config-set temp_dir /root/tmp
# /opt/plesk/php/7.1/bin/pecl config-set temp_dir /root/tmp
- Install module once again.