• 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: 6
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.
 
Hello Raul,

As we mentioned above, we can't change the FSTAB entry for /tmp. Since it is the shared hosting server, we need any other alternative to resolve this issue. Can you check and let us know?

Awaiting your reply.
 
Hi Thomas,

In that case, you will need to manually install the PHP extension after changing the temp_dir:

Bash:
dnf install plesk-php84-devel make gcc cpp <other dependencies>
export PATH=/opt/plesk/php/8.4/bin:$PATH

php -v

pear config-set  temp_dir /var/tmp
pecl install <package>

However, I just noticed that there is no gzip package on pecl.php.net. What are you trying to achieve?
 
Back
Top