• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

Issue Unable to install extension for PHP

Thomas Oryon

Basic Pleskian
Server operating system version
Redhat 9
Plesk version and microupdate number
18.0.76
Hello

We need your advice on how to fix a PECL package installation issue in Plesk.

When we try to install the gzip package for PHP 8.4 from the Plesk panel, we receive a warning saying that /tmp is mounted with noexec, so the installation may fail.

+++
Failed to install PHP extension 'gzip':
WARNING: PECL temp_dir '/tmp' is mounted with 'noexec'. Extension installation will most likely fail. Remount the FS with 'exec' option or configure a new directory using '/opt/plesk/php/8.4/bin/pear config-set temp_dir ... system'.
No releases available for package "pecl.php.net/gzip"
install failed
+++

Our server is set this way for security, so we do not want to change /tmp to exec.

Could you please advise what is the best and recommended way to solve this in Plesk?

We would like to know:
  1. Should we change the PECL temporary directory to another location instead of changing /tmp?
  2. Is there a proper Plesk-supported way to do this permanently?
  3. Will this affect future Plesk updates, PHP updates, or PECL extension installations?
Please advise the safest and simplest method recommended by Plesk.
 

Attachments

  • Screenshot 2026-03-20 123749.png
    Screenshot 2026-03-20 123749.png
    62.3 KB · Views: 2
What is the output of:
Bash:
mount | grep /tmp

Looks like you have /tmp as a mount with noexec param.

You can manually install the extension or remount /tmp without noexec.
 
You can try the following:
Bash:
mount -o remount,rw,nosuid,nodev,raltime,attr2,inode64,logbufs=8,logbsize=32k,noquota /dev/mapper/vg_system-lv_tmp /tmp

If that doesn't work, because you have running services actually using /tmp, you can have a look in /etc/fstab and remove noexec from the /tmp mount. Then restart the server.
 
Back
Top