
I recently came across and issue trying to install PHP modules from PECL, where /tmp is mounted noexec phpize refuses to run.
The workaround is to create the temporary directories in another location and symlink them into /tmp
First, create the new directories in a location that isn't noexec (here I have used /root but this can be replaced with anywhere that isnt noexec.
mkdir /root/tmp.pear mkdir /root/tmp.pear-build-root
Now lets remove any old temporary pear directories.
Now lets symlink those dirs into /tmp (Again if need be replace /root with the location of your choice)
ln -s /root/tmp.pear /tmp/pear ln -s /root/tmp.pear-build-root /tmp/pear-build-root
Thanks to 'twhite' on the cPanel forums for this one.
Hi, thanks for this tip. How do you control the folder PECL downloads to? Mine always goes into something like: /tmp/tmpFQtrbE/gnupg-1.3.1/
HTML tags allowed in comments are: strong,em,ul,ol,li, URL's are automatically converted to links so no need to use <a>.